/* ============================================
   GAME DETAIL PAGE STYLES
   ============================================ */

/* Hero Section */
.game-hero {
  position: relative;
  height: 85vh;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.game-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  transform: scale(1.05);
  transition: transform 10s ease;
}

.game-hero:hover .game-hero-bg {
  transform: scale(1.0);
}

.game-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,14,26,0.3) 0%,
    rgba(10,14,26,0.0) 30%,
    rgba(10,14,26,0.7) 70%,
    rgba(10,14,26,0.98) 100%
  );
}

.game-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5% 60px;
}

.game-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 40px;
  transition: color 0.3s;
  position: absolute;
  top: 90px;
  left: 5%;
}

.game-back-btn:hover { color: #fff; }

.game-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.game-badge {
  background: rgba(108,99,255,0.2);
  border: 1px solid rgba(108,99,255,0.4);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
}

.game-badge.platform {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  color: var(--text-muted);
}

.game-hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.game-hero-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  max-width: 600px;
  font-style: italic;
}

.game-meta-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.game-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}

.game-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.game-meta-item strong {
  color: #fff;
  margin-left: 2px;
}

.game-score-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: 8px;
  padding: 8px 16px;
}

.score-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.score-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   GAME DETAIL BODY
   ============================================ */
.game-detail {
  background: var(--primary);
}

.game-detail-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 5%;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

/* Main content */
.game-main-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.game-overview {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

.game-features-list {
  margin: 32px 0;
}

.game-features-list h2 {
  margin-bottom: 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-2px);
}

.feature-card-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
  display: block;
}

.feature-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Screenshots */
.game-screenshots {
  margin: 40px 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.screenshot-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.screenshot-item:first-child {
  grid-column: span 3;
  aspect-ratio: 21/9;
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: all 0.4s;
}

.screenshot-item:hover {
  border-color: rgba(108,99,255,0.5);
}

.screenshot-item:hover img {
  filter: brightness(1.0);
  transform: scale(1.03);
}

/* Story */
.game-story {
  margin: 40px 0;
}

.story-block {
  background: rgba(108,99,255,0.05);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  margin: 20px 0;
}

.story-block p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  font-style: italic;
}

/* Reviews */
.game-reviews {
  margin: 40px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.review-source {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.review-score {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gold);
}

.review-quote {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
}

/* ============================================
   GAME SIDEBAR
   ============================================ */
.game-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}

.sidebar-game-cover {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sidebar-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  color: var(--text-muted);
  font-weight: 500;
}

.info-value {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

.sidebar-rating-bar {
  margin-top: 20px;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.rating-label {
  color: var(--text-muted);
  width: 80px;
  flex-shrink: 0;
}

.rating-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 3px;
  transition: width 1s ease;
}

.rating-num {
  color: #fff;
  font-weight: 600;
  width: 28px;
  text-align: right;
}

.sidebar-related h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.related-game-item {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.2s;
}

.related-game-item:last-child { border-bottom: none; }
.related-game-item:hover { padding-left: 4px; }

.related-thumb {
  width: 56px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  filter: brightness(0.8);
}

.related-info-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}

.related-info-genre {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   MORE GAMES SECTION
   ============================================ */
.more-games-section {
  background: var(--secondary);
  padding: 80px 5%;
}

.more-games-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.more-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* ============================================
   RESPONSIVE - GAME DETAIL
   ============================================ */
@media (max-width: 1024px) {
  .game-detail-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .game-sidebar {
    position: static;
  }
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .screenshot-item:first-child {
    grid-column: span 2;
    aspect-ratio: 16/9;
  }
  .more-games-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .game-hero { height: 60vh; }
  .game-hero-title { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .screenshot-item:first-child { grid-column: span 1; aspect-ratio: 16/9; }
  .more-games-grid { grid-template-columns: 1fr; }
  .game-meta-bar { gap: 16px; }
}
