/* Page background */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #000000; 
  color: #e5e7eb;
}

/* Header */
header {
  background: #020617;
  padding: 14px 20px;
  display: flex;
  justify-content: center; /* Center the title */
  align-items: center;
  position: relative; /* So we can position header-right absolutely */
  border-bottom: 1px solid #1e293b;
}



.header-right {
  position: absolute;
  right: 30px;
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 1;
}

header h2 {
  font-size: 32px;
  font-weight: bold;
  color: #fffdfd;
  margin: 0;
  animation: neonPulse 4s ease-in-out infinite;
}

/* Games grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Game card */
.game-tile {
  background: #ffffff; /* dark card */
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

/* Game name */
.game-tile h3 {
  margin: 0 0 5px;
  font-size: 20px;
  color: #000000;
}

/* Game text */
.game-tile p {
  margin: 4px 0;
  font-size: 14px;
  color: #000000;
}

/* Play button */
.game-tile button {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
}

.game-tile button:hover {
  opacity: 0.9;
}

/* Logout button */
.logout-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: #dc2626;
  color: white;
  cursor: pointer;
}

/* Search bar container */
.search-container {
  display: flex;
  justify-content: center;
  margin: 20px 0 10px;
}

/* Search input */
.search-container input {
  width: 320px;
  max-width: 90%;
  padding: 10px 14px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid #334155;
  outline: none;
  background: #020617;
  color: #e5e7eb;
}

.search-container input::placeholder {
  color: #94a3b8;
}

.search-container input:focus {
  border-color: #facc15;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2);
}

/* ================= LOGIN PAGE ================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.login-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #000000fd, #000000);
}

/* Login card */
.login-container {
  width: 380px;
  max-width: 92%;
  padding: 26px 28px 28px;
  border-radius: 18px;
  background: #ece8e8;
  /* box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8); */
  text-align: center;
}

/* Title */
.login-container h2 {
  margin-bottom: 20px;
  font-size: 25px;
  font-weight: bold;
  color: #000000;
}

/* Inputs */
.login-input {
  display: block;
  width: 100%;
  height: 44px;              
  padding: 0 14px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #020617;
  color: #dfe5f0;
  margin-bottom: 14px;
}

.login-input::placeholder {
  color: #ffffff;
}

.login-input:focus {
  outline: none;
  border-color: #facc15;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.25);
}

/* Password wrapper */
.password-wrapper {
  position: relative;
  width: 100%;
}

/* Password input spacing */
.password-wrapper .login-input {
  padding-right: 44px;
}

/* Eye icon */
.toggle-password i {
  color: #94a3b8;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  transition: color 0.2s ease;
}

.toggle-password:hover i {
  color: #31eb40;
}


/* Login button */
.login-container button {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
}

.login-container button:hover {
  opacity: 0.9;
}

/* Error */
#error {
  margin-top: 10px;
  font-size: 18px;
  font-weight: bold;
  color: #0000009c;
}

/* Brand container */
.brand {
  position: absolute;
  top: 18%;
  width: 100%;
  text-align: center;
  pointer-events: none;
}


.brand h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #f3f3f3;

  text-shadow:
    0 0 20px rgba(250, 204, 21, 0.35),
    0 4px 30px rgba(0, 0, 0, 0.8);

  /* animation:
    brandFloat 4s ease-in-out infinite,
    brandGlow 3s ease-in-out infinite; */
}
@keyframes brandFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes brandGlow {
  0%, 100% {
    text-shadow:
      0 0 18px rgba(250, 204, 21, 0.25),
      0 4px 30px rgba(0, 0, 0, 0.8);
  }
  50% {
    text-shadow:
      0 0 34px rgba(250, 204, 21, 0.6),
      0 6px 42px rgba(0, 0, 0, 0.9);
  }
}

/* Filter bar */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 20px;
}

/* Filter buttons */
.filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #334155;
  background: #020617;
  color: #e5e7eb;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: #facc15;
  color: #facc15;
}

/* Active filter */
.filter-btn.active {
  background: #facc15;
  color: #020617;
  font-weight: bold;
}

/* Game thumbnail */
.thumb-wrapper {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  background: #020617;
  margin-bottom: 10px;
}

.thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
