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

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

/* ========================== */
/* == 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);
}


