/* ===================================================================
   BANANA.GAMES CLONE — game.css
   Extra styles for individual game pages (loaded alongside main.css)
   =================================================================== */

/* ── GAME HERO ────────────────────────────────────────────────────── */
.game-hero {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 4rem;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.game-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 70% 50%, rgba(255,173,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.game-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--gold); }

.breadcrumb span { color: var(--text); }

.breadcrumb-sep {
  color: var(--text-dim);
  font-size: 0.7rem;
}

.game-type-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.game-hero-info h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.game-hero-info .game-desc {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 520px;
}

.game-hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.game-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-hero-visual img {
  max-width: 380px;
  width: 100%;
  filter: drop-shadow(0 20px 60px rgba(255,173,0,0.2));
  border-radius: var(--radius-lg);
}

.game-thumb-hero {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3/2;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow), var(--glow-gold);
}

/* ── SPECS TABLE ──────────────────────────────────────────────────── */
.game-specs { background: var(--bg); }

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.specs-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border);
}

.specs-table tr:last-child { border-bottom: none; }

.specs-table th {
  padding: 0.875rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 45%;
  background: var(--bg-card);
}

.specs-table td {
  padding: 0.875rem 1rem;
  font-size: 0.925rem;
  font-weight: 600;
  background: var(--bg-card);
}

.specs-table tr:first-child th { border-radius: var(--radius-sm) 0 0 0; }
.specs-table tr:first-child td { border-radius: 0 var(--radius-sm) 0 0; }
.specs-table tr:last-child  th { border-radius: 0 0 0 var(--radius-sm); }
.specs-table tr:last-child  td { border-radius: 0 0 var(--radius-sm) 0; }

.spec-platforms,
.spec-langs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.spec-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
}

.volatility-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.vol-dots {
  display: flex;
  gap: 3px;
}

.vol-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.vol-dot.active { background: var(--gold); }

.specs-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── GAME FEATURES ────────────────────────────────────────────────── */
.game-features { background: var(--bg-alt); }

.features-header { margin-bottom: 2.5rem; }

.features-accordion { max-width: 800px; }

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color var(--transition);
}

.feature-item.open { border-color: var(--gold-border); }

.feature-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition);
}

.feature-trigger:hover { background: #1c1c1c; }
.feature-item.open .feature-trigger { color: var(--gold); }

.feature-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold);
}

.feature-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.feature-item.open .feature-body { max-height: 300px; }

.feature-body-inner {
  padding: 1rem 1.5rem 1rem calc(1.5rem + 26px + 1rem);
  border-top: 1px solid var(--border);
}

.feature-body-inner p { font-size: 0.875rem; }

/* ── DEMO SECTION ─────────────────────────────────────────────────── */
.game-demo { background: var(--bg); }

.demo-label {
  text-align: center;
  margin-bottom: 1.5rem;
}

.demo-label p { font-size: 0.9rem; }

.demo-frame-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), var(--glow-gold);
  aspect-ratio: 16/9;
  background: #000;
}

.demo-iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  inset: 0;
}

/* ── RESPONSIVE — GAME PAGES ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .game-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .game-hero-visual { display: none; }
  .specs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .game-hero-cta { flex-direction: column; }
  .game-hero-cta .btn { width: 100%; text-align: center; }
  .demo-frame-wrap { aspect-ratio: 4/3; }
}
