/* ============================================================
   site.css — Shared design system for game pages + portfolio
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0e1712;
  --bg2:        #131f17;
  --bg3:        #1a2b20;
  --border:     #243328;
  --teal:       #2AB090;
  --teal-dim:   #1d7b65;
  --orange:     #FFA217;
  --orange-dim: #c47b0b;
  --text:       #e4ede8;
  --text-muted: #7a9688;
  --font-mono:  'IBM Plex Mono', monospace;
  --font-head:  'Raleway', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────────── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
nav.site-nav.scrolled {
  background: rgba(14, 23, 18, 0.85);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}
.nav-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
}
.nav-name span { color: var(--orange); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }

/* ─── HERO ─────────────────────────────────── */
.hero {
  position: relative;
  padding: 9rem 3rem 4rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 30%, rgba(42,176,144,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 80%, rgba(255,162,23,0.06) 0%, transparent 65%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(42,176,144,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,176,144,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; }

.breadcrumb {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--text-muted); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; margin-bottom: 2rem;
  transition: color 0.2s;
}
.breadcrumb:hover { color: var(--teal); }
.breadcrumb .arrow { transition: transform 0.2s; }
.breadcrumb:hover .arrow { transform: translateX(-3px); }

.hero-title {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1;
  letter-spacing: -0.02em; color: var(--text);
  margin-bottom: 1.2rem;
}
.hero-title em { font-style: normal; color: var(--orange); }
.hero-tagline {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 1.75rem;
}

/* CTA buttons */
.hero-cta { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem; letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-steam {
  background: linear-gradient(180deg, #1a9fff 0%, #1474c8 100%);
  color: #fff; font-weight: 600;
  box-shadow: 0 4px 16px rgba(26,159,255,0.25), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.btn-steam:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(26,159,255,0.4), 0 0 0 1px rgba(255,255,255,0.12) inset; }
.btn-itch {
  background: linear-gradient(180deg, #fa5c5c 0%, #d63838 100%);
  color: #fff; font-weight: 600;
  box-shadow: 0 4px 16px rgba(250,92,92,0.25), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.btn-itch:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(250,92,92,0.4), 0 0 0 1px rgba(255,255,255,0.12) inset; }
.btn svg { width: 18px; height: 18px; }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: rgba(42,176,144,0.1); transform: translateY(-1px); }

/* Meta strip */
.meta-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
}
.meta-item .meta-label {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.4rem;
}
.meta-item .meta-value {
  font-size: 0.85rem; color: var(--text); line-height: 1.4;
}
.meta-item .meta-value sub {
  color: var(--text-muted); font-size: 0.75rem; vertical-align: baseline;
}
.meta-item .meta-value.status {
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.meta-item .meta-value.status::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 8px var(--teal);
  animation: pulseDot 1.6s ease-in-out infinite;
}
.meta-item .meta-value.status.paused::before {
  background: var(--orange); box-shadow: 0 0 8px var(--orange);
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

/* ─── SECTIONS ─────────────────────────────── */
section.content { padding: 5rem 3rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--text); line-height: 1.1; margin-bottom: 2rem;
}
.section-title em { font-style: normal; color: var(--orange); }
.section-body p {
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.8;
  max-width: 760px; margin-bottom: 1rem;
}
.section-body p strong { color: var(--text); }

/* Goal/outcome list */
.goal-list {
  list-style: none;
  max-width: 760px;
  margin: 1.5rem 0;
}
.goal-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}
.goal-list li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--teal);
  font-family: var(--font-mono);
  font-weight: 600;
}
.goal-list li:last-child { border-bottom: none; }

/* Trailer */
.trailer-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(42,176,144,0.05) inset;
}
.trailer-frame .ratio {
  position: relative; width: 100%; padding-bottom: 56.25%;
}
.trailer-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0;
}

/* Image gallery */
.img-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}
.img-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.img-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg3);
  transition: border-color 0.3s, transform 0.3s;
}
.img-card:hover { border-color: rgba(42,176,144,0.4); transform: translateY(-3px); }
.img-card img {
  display: block; width: 100%; height: auto;
}
.img-card.contain img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #0a0d0b;
}
.img-card.light-bg { background: #fff; }
.img-card.light-bg img { padding: 1.5rem; background: #fff; }
.img-caption {
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0 3rem;
}
section.content.alt { background: var(--bg2); }

/* Pagination footer */
.page-end {
  padding: 5rem 3rem;
  text-align: center;
}
.back-link {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem; letter-spacing: 0.08em;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.2s;
}
.back-link:hover {
  background: rgba(42,176,144,0.1);
  transform: translateY(-1px);
}
.back-link .arrow { transition: transform 0.2s; }
.back-link:hover .arrow { transform: translateX(-4px); }

/* Footer */
footer.site-footer {
  padding: 3rem;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 2rem;
}
.footer-logo {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  opacity: 0.75; transition: opacity 0.2s;
  text-decoration: none;
}
.footer-logo:hover { opacity: 1; }
.footer-logo img { height: 180px; width: auto; filter: brightness(0.9); }
.footer-logo span {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
}
.footer-meta {
  display: flex; justify-content: space-between; width: 100%; align-items: center;
}
.footer-meta p {
  font-size: 0.75rem; color: var(--text-muted);
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  nav.site-nav { padding: 1rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 3rem; }
  section.content { padding: 3.5rem 1.5rem; }
  .section-divider { margin: 0 1.5rem; }
  .img-grid.cols-2 { grid-template-columns: 1fr; }
  footer.site-footer { padding: 2rem 1.5rem; }
  .footer-meta { flex-direction: column; gap: 0.5rem; }
}
