/* seo.css - shared styles for the Track Wars content/marketing pages (about, guides,
 * comparisons, FAQ). Deliberately separate from the game's style.css: these are light,
 * static, text-first pages meant to be fast and crawlable. Dark racing theme matching
 * the game palette (accent #ffca28, link blue #29b6f6). */
:root {
  --bg: #0d1117;
  --panel: #161b24;
  --line: #263043;
  --accent: #ffca28;
  --blue: #29b6f6;
  --orange: #ff7043;
  --text: #e6edf3;
  --muted: #8b98a9;
  --maxw: 860px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ---- header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px;
  background: rgba(13, 17, 23, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .5px; color: var(--text); }
.site-header .brand img { height: 30px; width: auto; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 15px; }
.site-nav a { color: var(--muted); font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.site-nav .play-cta { color: #201800; background: var(--accent); padding: 7px 14px; border-radius: 8px; }
.site-nav .play-cta:hover { filter: brightness(1.07); text-decoration: none; }
/* burger - hidden on desktop, revealed in the mobile media query below */
.nav-burger { display: none; }

/* ---- page layout ---- */
main { max-width: var(--maxw); margin: 0 auto; padding: 36px 20px 64px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }

h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.12; letter-spacing: -.5px; margin: 6px 0 14px; }
h2 { font-size: clamp(22px, 3.4vw, 28px); margin: 40px 0 12px; letter-spacing: -.3px; }
h3 { font-size: 19px; margin: 26px 0 8px; }
p { margin: 0 0 16px; }
.lead { font-size: 20px; color: #cdd7e2; margin-bottom: 26px; }
ul, ol { margin: 0 0 18px 22px; }
li { margin: 6px 0; }
strong { color: #fff; }
hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
section { scroll-margin-top: 72px; }

/* ---- CTA button ---- */
.cta {
  display: inline-block; background: var(--accent); color: #201800;
  font-weight: 800; padding: 13px 24px; border-radius: 10px; font-size: 17px;
  box-shadow: 0 6px 20px rgba(255, 202, 40, .22);
}
.cta:hover { filter: brightness(1.07); text-decoration: none; }
.cta-row { margin: 30px 0; }
.cta.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); box-shadow: none; }

/* callout / hero card */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 24px; margin: 24px 0;
}
.card h2, .card h3 { margin-top: 0; }

/* ---- comparison table ---- */
.table-wrap { overflow-x: auto; margin: 22px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #0f141c; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; font-size: 12px; }
tbody tr:hover { background: rgba(255,255,255,.02); }
td.yes { color: #7ee08a; font-weight: 700; }
td.no { color: #ff8a8a; }
table .row-head { color: var(--text); font-weight: 700; }
th .muted { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11px; }

/* FAQ */
.faq-q { font-weight: 700; color: #fff; margin-top: 22px; }
.faq-a { color: #cdd7e2; }

/* related links grid */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 22px 0; }
.related a.tile {
  display: block; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; color: var(--text);
}
.related a.tile:hover { border-color: var(--accent); text-decoration: none; }
.related a.tile b { display: block; margin-bottom: 4px; }
.related a.tile span { color: var(--muted); font-size: 14px; }

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 40px;
  padding: 30px 20px; color: var(--muted); font-size: 14px;
}
.site-footer .inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  main { padding: 24px 16px 48px; }

  /* Collapse the top nav into a burger menu. Pure CSS: the hidden checkbox is
     toggled by the burger label; its :checked state drops the nav open as a
     full-width row below the header (flex-wrap). */
  .site-header { flex-wrap: wrap; }
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 11px; cursor: pointer; border-radius: 8px;
    border: 1px solid var(--line); background: #0f141c;
  }
  .nav-burger span {
    display: block; height: 2px; width: 100%; background: var(--text);
    border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    display: none; flex-basis: 100%; flex-direction: column; align-items: stretch;
    gap: 0; margin: 8px -20px -12px; padding: 4px 0; font-size: 16px;
    border-top: 1px solid var(--line); background: rgba(13, 17, 23, 0.98);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 13px 20px; border-bottom: 1px solid var(--line); }
  .site-nav .play-cta {
    margin: 10px 20px 6px; text-align: center; border-radius: 8px; border-bottom: 0;
  }
}
