/* eGeek Games / Night Shift Heist — Public Site Styles */

/* ── Reset ───────────────────────────────────────────── */

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Design tokens ───────────────────────────────────── */

:root {
  --bg-dark:       #0b0e11;
  --bg-card:       #12161b;
  --bg-card-alt:   #171c22;
  --border:        #1d2530;
  --border-hover:  #2a3a4d;
  --accent:        #3ecfcf;
  --accent-dim:    #2a9090;
  --accent-glow:   rgba(62, 207, 207, 0.07);
  --text-primary:  #d8e2ec;
  --text-muted:    #6e8299;
  --text-heading:  #ecf2f8;
  --font:          system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max-width:     860px;
  --radius:        6px;
  --radius-lg:     10px;
}

/* ── Base ────────────────────────────────────────────── */

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ──────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 14, 17, 0.95);
  backdrop-filter: blur(8px);
}

.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header .brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-heading);
}

.site-header .brand span {
  color: var(--accent);
}

nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-left: 1.25rem;
  transition: color 0.15s;
}

nav a:hover,
nav a:focus {
  color: var(--accent);
}

/* ── Main layout ─────────────────────────────────────── */

main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  width: 100%;
}

/* ── Footer ──────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.site-footer a {
  margin: 0 0.5rem;
  transition: color 0.15s;
}

.site-footer a:hover {
  color: var(--accent);
}

/* ── Sections ────────────────────────────────────────── */

section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}

/* ── Hero ────────────────────────────────────────────── */

.hero {
  padding: 4rem 0 3.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -60px;
  width: 480px;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(62, 207, 207, 0.055) 0%, transparent 68%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ── Badges ──────────────────────────────────────────── */

.badge-coming-soon {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius);
}

/* ── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  box-shadow: 0 0 14px rgba(62, 207, 207, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent-dim);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--accent-glow);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(62, 207, 207, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover,
.btn-ghost:focus {
  color: var(--accent);
  border-color: var(--accent-dim);
}

/* ── Inline link ─────────────────────────────────────── */

.inline-link {
  color: var(--accent);
  transition: color 0.15s;
}

.inline-link:hover {
  color: var(--text-heading);
}

/* ── Generic card ────────────────────────────────────── */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.6rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.card p,
.card li {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Featured game card ──────────────────────────────── */

.game-card-featured {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.game-card-featured:hover {
  border-color: var(--border-hover);
}

.game-card-image {
  background: var(--bg-card-alt);
  border-bottom: 1px solid var(--border);
  line-height: 0;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.game-card-body {
  padding: 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-card-meta {
  margin-bottom: 1rem;
}

.game-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

.game-card-tagline {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.game-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.game-card-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Focus / About grid ──────────────────────────────── */

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.focus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.15s, background 0.15s;
}

.focus-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-card-alt);
}

.focus-icon {
  color: var(--accent);
  font-size: 0.85rem;
  line-height: 1;
}

.focus-card strong {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 700;
}

.focus-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Feature list (NSH page) ─────────────────────────── */

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.feature-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.feature-list li::before {
  content: "▸";
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ── Capsule image (NSH page) ────────────────────────── */

.capsule-section {
  margin-bottom: 2.5rem;
}

.capsule-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
  max-height: 320px;
}

/* ── Trailer placeholder ─────────────────────────────── */

.trailer-placeholder {
  background: var(--bg-card-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.trailer-placeholder p {
  margin-bottom: 0.25rem;
}

/* ── Pending notice ──────────────────────────────────── */

.notice {
  background: var(--bg-card);
  border-left: 3px solid var(--accent-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.notice strong {
  color: var(--text-primary);
}

/* ── Bug report list ─────────────────────────────────── */

.report-list {
  list-style: none;
  counter-reset: report;
}

.report-list li {
  counter-increment: report;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.report-list li:last-child {
  border-bottom: none;
}

.report-list li::before {
  content: counter(report, decimal-leading-zero);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 22px;
  padding-top: 0.15em;
}

.report-list strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.report-list span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Build info table ────────────────────────────────── */

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.info-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.info-table td:first-child {
  color: var(--text-muted);
  width: 45%;
}

.info-table td:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Page header (inner pages) ───────────────────────── */

.page-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-header .back-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  transition: color 0.15s;
}

.page-header .back-link:hover {
  color: var(--accent);
}

.page-header h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.page-header p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Utility ─────────────────────────────────────────── */

.text-muted   { color: var(--text-muted); }
.text-accent  { color: var(--accent); }
.text-primary { color: var(--text-primary); }
.text-small   { font-size: 0.8rem; }
.mt-1         { margin-top: 0.5rem; }
.mt-2         { margin-top: 1rem; }
.mt-3         { margin-top: 1.5rem; }

/* ── Desktop: game card two-column ───────────────────── */

@media (min-width: 640px) {
  .game-card-featured {
    grid-template-columns: 1fr 1fr;
  }

  .game-card-image {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
}

/* ── Mobile ──────────────────────────────────────────── */

@media (max-width: 639px) {
  main {
    padding: 2rem 1rem 4rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .focus-grid {
    grid-template-columns: 1fr 1fr;
  }

  .game-card-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  nav a:first-child {
    margin-left: 0;
  }
}
