/* css/games.css */
.games-page {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #ffffff;
}

.games-content {
  display: flex;
  position: absolute;
  top: 90px;
  left: 0;
  width: 100%;
  height: calc(100% - 90px);
}

.game-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #ffffff;
  transition: var(--transition-smooth);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.game-card:last-child {
  border-right: none;
}

/* Card Top Section (Background + Logo) */
.game-card-top {
  position: relative;
  height: 55%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.game-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.5s ease;
}

.game-card:hover .game-bg,
.game-card.focused .game-bg {
  transform: scale(1.03);
}

.game-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0.8) 20%, rgba(255, 255, 255, 0) 100%);
  z-index: 2;
}

.game-logo {
  position: relative;
  z-index: 3;
  width: 85%;
  max-width: 320px;
  object-fit: contain;
  margin-bottom: 15px;
  /* Diposisikan lebih tinggi agar tidak terpotong */
  transition: transform 0.3s ease;
  filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.15));
}

.game-card:hover .game-logo,
.game-card.focused .game-logo {
  transform: translateY(-5px) scale(1.02);
}

/* Info Section */
.game-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 40px 20px 40px;
  text-align: center;
  z-index: 4;
  background-color: #ffffff;
}

.game-desc {
  font-size: 16px;
  color: #8a8a8a;
  line-height: 1.6;
  margin-bottom: auto;
  font-weight: 500;
  max-width: 380px;
}

/* Stats Section */
.game-stats {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  gap: 40px;
  padding-top: 25px;
  border-top: 1px solid #f0f0f0;
  margin-top: 25px;
}

.game-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: 10px;
  color: #a0a0a0;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 15px;
  color: #333333;
  font-weight: 800;
}

/* Action Section (Bottom Bar) */
.game-action {
  height: 80px;
  background-color: #fff0f2;
  display: flex;
  justify-content: center;
  cursor: pointer;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
}

.action-text {
  color: #d11f35;
  font-weight: 800;
  font-size: 18px;
  transition: color 0.3s ease;
}

.action-icon {
  width: 24px;
  height: 24px;
  color: #d11f35;
  transition: color 0.3s ease;
}

.game-card:hover .game-action,
.game-card.focused .game-action {
  background-color: #d11f35;
}

.game-card:hover .action-text,
.game-card.focused .action-text,
.game-card:hover .action-icon,
.game-card.focused .action-icon {
  color: #ffffff;
}

/* Focus Outline overrides for card */
.game-card.focused {
  outline: none;
  box-shadow: inset 0 0 0 4px var(--ariston-red);
}