/* ==========================================================================
   footbadle content layer — "stadium at night" premium design.
   Mobile-first. AdSense reviewers check mobile first.
   ========================================================================== */

:root {
  --bg: #070b16;
  --bg-2: #0c1324;
  --surface: #111a2e;
  --surface-2: #16213a;
  --surface-3: #1d2a47;
  --text: #eef2fb;
  --text-soft: #c3cde0;
  --muted: #8593ad;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --pitch: #2fd47a;
  --electric: #5b8bff;
  --gold: #f5c451;

  --accent: var(--electric);      /* overridden per category */
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --measure: 720px;

  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 10px 30px -16px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(91, 139, 255, 0.18), transparent 60%),
    radial-gradient(900px 560px at 8% 4%, rgba(47, 212, 122, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
  background-attachment: fixed;
  font: 17px/1.75 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--electric); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, .brand, .card-title, .btn {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* ---------- Sticky header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px max(20px, calc((100% - var(--maxw)) / 2 + 24px));
  background: rgba(7, 11, 22, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 800; font-size: 21px; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.brand .dot { color: var(--pitch); }
.links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.links a {
  color: var(--muted); font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s;
}
.links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.links a.active { color: var(--text); }
.links a.play {
  color: #05210f; font-weight: 700;
  background: linear-gradient(135deg, var(--pitch), var(--electric));
}
.links a.play:hover { filter: brightness(1.06); background: linear-gradient(135deg, var(--pitch), var(--electric)); }

/* ---------- Layout ---------- */
.site-main { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 72px; }

/* ---------- Page / blog hero ---------- */
.page-head {
  position: relative; margin: 8px 0 36px; padding: 56px 0 8px;
  text-align: center;
}
.page-head .eyebrow {
  display: inline-block; color: var(--pitch); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px;
}
.page-head h1 {
  font-size: clamp(34px, 6vw, 58px); line-height: 1.05; margin: 0 auto 16px;
  max-width: 16ch;
  background: linear-gradient(180deg, #ffffff, #b9c6e6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head p { color: var(--text-soft); max-width: 60ch; margin: 0 auto 22px; font-size: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  --accent: var(--electric);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  color: var(--text); padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; transition: .15s;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chip:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }

/* ---------- Article card grid ---------- */
.grid {
  display: grid; gap: 20px; margin-top: 8px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  --accent: var(--electric);
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, var(--surface), var(--surface) 60%, var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px 20px; color: var(--text); overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}
.card:hover {
  transform: translateY(-4px); border-color: var(--line-strong);
  box-shadow: var(--shadow); text-decoration: none;
}
.card-cat { color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.card-title { font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--text); }
.card-desc { color: var(--muted); font-size: 15px; flex: 1; }
.card-date { color: var(--muted); font-size: 13px; margin-top: 4px; opacity: .8; }
.empty { color: var(--muted); }

/* ---------- Breadcrumbs ---------- */
.crumbs { color: var(--muted); font-size: 14px; margin: 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

/* ---------- Article ---------- */
.post { max-width: var(--measure); margin: 0 auto; }
.post-hero {
  --accent: var(--electric);
  max-width: var(--measure); margin: 0 auto; padding: 40px 0 8px; text-align: center;
}
.post-hero .crumbs { justify-content: center; margin-bottom: 18px; }
.cat-pill {
  display: inline-block; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.post-hero h1 {
  font-size: clamp(30px, 5.2vw, 48px); line-height: 1.1; margin: 0 0 16px;
  background: linear-gradient(180deg, #ffffff, #c2cee8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.post-hero .byline { color: var(--muted); font-size: 14.5px; margin: 0 0 8px; }
.post-hero .rule { width: 64px; height: 3px; margin: 26px auto 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), transparent); }

.post-body { max-width: var(--measure); margin: 0 auto; }
.post-body > p:first-of-type { font-size: 19px; color: var(--text-soft); }
.post-body h2 {
  font-size: 27px; margin: 44px 0 14px; padding-top: 6px;
}
.post-body h2::before {
  content: ""; display: block; width: 40px; height: 3px; border-radius: 3px;
  background: var(--accent); margin-bottom: 14px;
}
.post-body h3 { font-size: 21px; margin: 30px 0 10px; }
.post-body p { margin: 0 0 20px; color: var(--text-soft); }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 26px; color: var(--text-soft); }
.post-body li { margin: 8px 0; }
.post-body li::marker { color: var(--accent); }
.post-body a { color: var(--electric); text-decoration: underline; text-underline-offset: 2px; }
.post-body strong { color: #fff; font-weight: 600; }
.post-body blockquote {
  margin: 26px 0; padding: 16px 22px; border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: 0 14px 14px 0; color: var(--text-soft);
  font-size: 18px;
}
.post-body code {
  background: var(--surface-3); padding: 2px 7px; border-radius: 6px; font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

/* CTA card at the foot of an article */
.cta-card {
  --accent: var(--electric);
  margin: 48px auto 0; max-width: var(--measure);
  background: linear-gradient(135deg, color-mix(in srgb, var(--pitch) 16%, var(--surface)), var(--surface));
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 28px 26px; text-align: center; box-shadow: var(--shadow-soft);
}
.cta-card h3 { margin: 0 0 8px; font-size: 22px; }
.cta-card p { margin: 0 0 18px; color: var(--text-soft); }
.btn {
  display: inline-block; font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  color: #05210f; background: linear-gradient(135deg, var(--pitch), var(--electric));
  box-shadow: 0 10px 28px -10px rgba(47, 212, 122, 0.5);
}
.btn:hover { text-decoration: none; filter: brightness(1.06); transform: translateY(-1px); }

.back-link { display: inline-block; margin: 36px auto 0; color: var(--muted); font-weight: 600; }
.back-link:hover { color: var(--text); }

/* ---------- Prose pages (about, contact, legal) ---------- */
.prose { max-width: var(--measure); margin: 0 auto; padding-top: 32px; }
.prose h1 {
  font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 0 0 8px;
  background: linear-gradient(180deg, #ffffff, #c2cee8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.prose h2 { font-size: 25px; margin: 38px 0 12px; }
.prose h3 { font-size: 20px; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--text-soft); }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 26px; margin: 0 0 18px; }
.prose li { margin: 7px 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: #fff; }

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 14px; max-width: 540px; margin: 24px 0; }
.contact-form label { font-weight: 600; font-size: 14px; color: var(--text); }
.contact-form input, .contact-form textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--text); border-radius: 12px; padding: 13px 15px; font: inherit;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--electric); box-shadow: 0 0 0 3px rgba(91, 139, 255, 0.2);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button {
  align-self: flex-start; background: linear-gradient(135deg, var(--pitch), var(--electric));
  color: #05210f; font-weight: 700; border: 0; border-radius: 999px;
  padding: 13px 26px; cursor: pointer; font-size: 15px;
}
.contact-form button:hover { filter: brightness(1.06); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 40px;
  background: rgba(7, 11, 22, 0.5);
}
.site-footer .foot-wrap { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 56px; color: var(--muted); font-size: 14px; }
.foot-brand { font-family: "Sora", sans-serif; font-weight: 800; font-size: 20px; color: var(--text); margin-bottom: 14px; }
.foot-brand .dot { color: var(--pitch); }
.foot-cols { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: 24px; }
@media (min-width: 640px) { .foot-cols { grid-template-columns: 2fr 1fr 1fr; } }
.foot-col h4 { font-family: "Sora", sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-soft); margin: 0 0 12px; }
.foot-col a { display: block; color: var(--muted); padding: 4px 0; }
.foot-col a:hover { color: var(--text); text-decoration: none; }
.foot-col p { margin: 0; max-width: 38ch; }
.disclaimer { font-size: 12.5px; line-height: 1.65; border-top: 1px solid var(--line); padding-top: 18px; margin: 6px 0 10px; }
.copyright { font-size: 13px; }
.copyright a { color: var(--text-soft); }
