/* =====================================================
   GAMES PAGE SPECIFIC STYLES
   games.css
   ===================================================== */

/* =====================================================
   GAMES HERO
   ===================================================== */
.games-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.games-hero__bg {
  position: absolute;
  inset: 0;
  background:
  z-index: 0;
}

/* Animated highlight */
.games-hero__bg::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: url('images/samuraibundle.png') center/cover no-repeat, transparent 70%);
  animation: hero-orb 12s ease-in-out infinite alternate;
}

.games-hero__bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 1;
}

@keyframes hero-orb {
  from { transform: translate(0, 0) scale(1); opacity: 0.6; }
  to   { transform: translate(-30px, 30px) scale(1.1); opacity: 1; }
}

/* Horizontal scan line overlay */
.games-hero__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.06) 3px,
    rgba(0,0,0,0.06) 4px
  );
  z-index: 1;
  pointer-events: none;
}

.games-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.85) 0%,
    rgba(10,10,10,0.5) 60%,
    transparent 100%
  );
  z-index: 2;
}

.games-hero__inner {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.games-hero__badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: hero-fade-in 0.8s ease 0.2s both;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 2px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge--pegi {
  background: #003087;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.badge--esrb {
  background: #cc0000;
  color: #ffffff;
}

.badge--award {
  background: linear-gradient(135deg, #b8860b, #daa520);
  color: #000000;
  font-size: 10px;
}

.games-hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  animation: hero-fade-in 0.8s ease 0.3s both;
}

.games-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
  max-width: 700px;
  animation: hero-fade-in 0.8s ease 0.4s both;
}

.games-hero__title em {
  font-style: normal;
  color: var(--accent);
}

.games-hero__description {
  font-size: 16px;
  color: var(--gray-light);
  max-width: 520px;
  line-height: 1.7;
  animation: hero-fade-in 0.8s ease 0.5s both;
}

.games-hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: hero-fade-in 0.8s ease 0.6s both;
}

.games-hero__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  animation: hero-fade-in 0.8s ease 0.7s both;
}

/* =====================================================
   GAMES CATALOG SECTION
   ===================================================== */
.games-catalog {
  background: var(--bg-primary);
  padding: 100px 24px;
}

.games-catalog__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.games-catalog__link {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--transition);
  flex-shrink: 0;
}

.games-catalog__link:hover {
  gap: 14px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Game card */
.game-card {
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(255,255,255,0.04);
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  border-color: rgba(230, 57, 70, 0.25);
}

.game-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}

.game-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-card__img img {
  transform: scale(1.06);
}

.game-card__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  transition: background var(--transition);
}

.game-card:hover .game-card__img-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
}

/* Placeholder background patterns per game */
.game-img--climb {
  background: linear-gradient(135deg, #0d1a0d 0%, #1a3a1a 50%, #0a2a0a 100%);
}
.game-img--robinson {
  background: linear-gradient(135deg, #0d1a0a 0%, #1a2d0d 50%, #0a1a05 100%);
}
.game-img--ryse {
  background: linear-gradient(135deg, #1a0d0d 0%, #3a1a0d 50%, #2a1005 100%);
}
.game-img--crysis3 {
  background: linear-gradient(135deg, #0a0d1a 0%, #0d1a2d 50%, #051020 100%);
}
.game-img--crysis-trilogy {
  background: linear-gradient(135deg, #0a1a1a 0%, #0d2a2a 50%, #052020 100%);
}

.game-card__img-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.game-card__img-label svg {
  width: 40px;
  height: 40px;
  fill: rgba(255,255,255,0.1);
}

.game-card__img-label span {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.12);
}

.game-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.game-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}

.game-card__desc {
  font-size: 13px;
  color: var(--gray-mid);
  line-height: 1.6;
  flex: 1;
}

.game-card__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.platform-badge {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  color: var(--gray-light);
  border: 1px solid rgba(255,255,255,0.08);
}

.game-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.game-card__link {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.game-card__link:hover {
  gap: 10px;
}

/* =====================================================
   GAMES PAGE RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: 1fr;
  }

  .games-catalog__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .games-hero__overlay {
    background: rgba(10,10,10,0.7);
  }

  .games-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .games-hero__title {
    font-size: 36px;
  }
}
