/* ========================== */
/* == Games Index Page == */

#games-index-page {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0 20px 40px;
}

/* ========================== */
/* == Hero Banner == */
#games-banner {
  width: 100%;
  min-height: 300px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background-image: url("/banner.gif");
  background-size: cover;
  background-position: center;
}

#games-banner .banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.45) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 36px;
  text-align: center;
}

#games-banner .banner-title {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

#games-banner .banner-subtitle,
#games-banner .banner-tagline {
  margin: 12px 0 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.4);
  max-width: 600px;
}

#games-banner .banner-discord {
  margin: 16px 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ========================== */
/* == Section Header == */
.games-section-header {
  width: 100%;
  text-align: center;
  padding-top: 8px;
}

.games-section-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin: 0;
  letter-spacing: 0.02em;
}

.games-section-header p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ========================== */
/* == Games Grid == */
#games-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, 280px);
  justify-content: center;
  gap: 20px;
  width: 100%;
}

#games-container > .empty-state {
  grid-column: 1 / -1;
}

/* ========================== */
/* == Game Card == */
.game-card {
  width: 280px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 32px 16px;

  background-color: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: white;

  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;

  text-decoration: none;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.06);
}

/* Glow accent line at top of card on hover */
.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.game-card:hover::before {
  opacity: 1;
}

/* ========================== */
/* == Game Card Content == */
.game-card-image {
  width: 200px;
  height: 120px;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.25s ease;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card:hover .game-card-image {
  transform: scale(1.08);
}

.game-card-name {
  width: 100%;
  min-height: 2.6em;
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.3;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card-hint {
  width: 100%;
  margin-top: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.game-card:hover .game-card-hint {
  opacity: 1;
  transform: translateY(0);
}

/* ========================== */
/* == Empty State == */
#games-container .empty-state {
  text-align: center;
  padding: 60px 20px;
}

#games-container .empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

#games-container .empty-state-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

#games-container .empty-state-hint {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ========================== */
/* == Responsive == */
@media (max-width: 800px) {
  #games-banner {
    min-height: 220px;
  }

  #games-banner .banner-title {
    font-size: 2rem;
  }
}

@media (max-width: 500px) {
  #games-banner {
    min-height: 180px;
  }

  #games-banner .banner-title {
    font-size: 1.6rem;
  }

  #games-banner .banner-subtitle,
  #games-banner .banner-tagline {
    font-size: 0.9rem;
  }
}
