/* ==========================================================================
   stakesportsbetting.ca — Design System
   Stake-inspired dark theme · mobile-first · independent affiliate site
   ========================================================================== */

:root {
  --bg: #0f1923;
  --bg-2: #0c141d;
  --surface: #16242f;
  --card: #1b2c39;
  --card-2: #213847;
  --border: #26394a;
  --border-soft: #1f303d;

  --text: #ffffff;
  --muted: #9fb0c3;
  --muted-2: #74879b;

  --blue: #1475e1;
  --blue-d: #0f5fbd;
  --blue-l: #3a90ee;
  /* brand accent is blue; legacy --green names repoint to blue so all references stay consistent */
  --green: #1475e1;
  --green-d: #0f5fbd;

  --accent: var(--blue);       /* overridden per sport page via [data-accent] */
  --accent-soft: rgba(20, 117, 225, .16);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-soft: 0 4px 18px rgba(0, 0, 0, .25);
  --maxw: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Per-sport accent themes */
[data-accent="cricket"] { --accent: #17a2b8; --accent-soft: rgba(23,162,184,.16); }
[data-accent="ufc"]     { --accent: #e23636; --accent-soft: rgba(226,54,54,.16); }
[data-accent="nba"]     { --accent: #e8761a; --accent-soft: rgba(232,118,26,.16); }
[data-accent="nhl"]     { --accent: #39a0ed; --accent-soft: rgba(57,160,237,.16); }
[data-accent="f1"]      { --accent: #e10600; --accent-soft: rgba(225,6,0,.16); }
[data-accent="esports"] { --accent: #8b5cf6; --accent-soft: rgba(139,92,246,.16); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.85rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin-top: 0; }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1rem; color: #d7e0ea; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

section { padding: 46px 0; }
.section-tight { padding: 30px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .98rem;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--blue-l), var(--blue));
  color: #ffffff; box-shadow: 0 6px 18px rgba(20,117,225,.32);
}
.btn-primary:hover { box-shadow: 0 8px 26px rgba(20,117,225,.46); color: #ffffff; background: linear-gradient(180deg, var(--blue), var(--blue-d)); }
.btn-accent {
  background: var(--accent); color: #ffffff; font-weight: 800;
  box-shadow: 0 6px 18px var(--accent-soft);
}
.btn-accent:hover { color: #ffffff; filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--card); }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(12, 20, 29, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand .brand-tag { font-weight: 800; font-size: 1.02rem; color: #fff; letter-spacing: -.02em; }
.brand .brand-tag span { color: var(--green); }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  color: var(--muted); font-weight: 600; font-size: .92rem;
  padding: 8px 11px; border-radius: 8px; display: block; white-space: nowrap;
}
.nav-list a:hover, .nav-list a.active { color: #fff; background: var(--card); text-decoration: none; }

.header-cta { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.lang-switch {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden;
  font-size: .78rem; font-weight: 700;
}
.lang-switch a { padding: 6px 11px; color: var(--muted); }
.lang-switch a.on { background: var(--card-2); color: #fff; }
.lang-switch a:hover { text-decoration: none; color: #fff; }

.nav-toggle {
  display: none; margin-left: auto; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; width: 44px; height: 40px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: #fff; position: relative;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 75% -10%, var(--accent-soft), transparent 60%),
              radial-gradient(700px 380px at 0% 110%, rgba(20,117,225,.12), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 38px; align-items: center; padding: 54px 0 48px; }
.hero-inner.hero-solo { grid-template-columns: 1fr; max-width: 720px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 6px 13px; border-radius: 999px; font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px;
}
.hero h1 { margin-bottom: .45em; }
.hero p.lead { font-size: 1.12rem; color: #c7d3df; max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-media { position: relative; }
.hero-media img, .hero-media .svg-hero {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-note { font-size: .8rem; color: var(--muted-2); margin-top: 14px; }

/* ---------- Promo / code box ---------- */
.codebox {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: linear-gradient(135deg, var(--card-2), var(--card));
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--border));
  border-radius: var(--radius); padding: 16px 18px; flex-wrap: wrap;
}
.codebox .code { font-size: 1.5rem; font-weight: 900; letter-spacing: .08em; color: #fff; }
.codebox .code small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.copy-btn { position: relative; }
.copy-btn.copied::after {
  content: "Copied!"; position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  background: #06121b; color: var(--green); font-size: .72rem; font-weight: 700;
  padding: 4px 9px; border-radius: 6px; white-space: nowrap;
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-soft);
}
.card h3 { margin-top: 0; }
.card.accent-top { border-top: 3px solid var(--accent); }

.sport-card {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; transition: transform .15s ease, border-color .2s ease;
}
.sport-card:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }
.sport-card .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); margin-bottom: 4px; }
.sport-card .ico svg { width: 22px; height: 22px; }
.sport-card strong { color: #fff; font-size: 1.05rem; }
.sport-card span { color: var(--muted); font-size: .9rem; }

.bonus-card { border-top: 3px solid var(--green); }
.bonus-card .amount { font-size: 1.6rem; font-weight: 900; color: var(--green); }

.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .fico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); display: grid; place-items: center; }
.feature .fico svg { width: 22px; height: 22px; color: var(--accent); }
.feature h3 { font-size: 1.05rem; margin: 0 0 4px; }
.feature p { margin: 0; font-size: .94rem; color: var(--muted); }

/* Pros / cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.proscons .col { border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); }
.proscons .pros { background: rgba(20,117,225,.07); border-color: rgba(20,117,225,.32); }
.proscons .cons { background: rgba(226,54,54,.06); border-color: rgba(226,54,54,.28); }
.proscons h3 { display: flex; align-items: center; gap: 8px; }
.proscons ul { margin: 0; padding-left: 0; list-style: none; }
.proscons li { position: relative; padding: 6px 0 6px 26px; font-size: .94rem; color: #d7e0ea; border-bottom: 1px solid var(--border-soft); }
.proscons li:last-child { border-bottom: 0; }
.proscons .pros li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.proscons .cons li::before { content: "–"; position: absolute; left: 4px; color: #e26a6a; font-weight: 900; }

/* Quick answer box */
.quickbox {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-left: 4px solid var(--accent); border-radius: var(--radius-sm);
  padding: 16px 18px; margin: 0 0 22px;
}
.quickbox strong { color: var(--accent); display: block; margin-bottom: 4px; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.quickbox p { margin: 0; color: #e3eaf1; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.data { width: 100%; border-collapse: collapse; min-width: 460px; background: var(--card); }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .93rem; }
table.data th { background: var(--card-2); color: #fff; font-weight: 700; }
table.data tr:last-child td { border-bottom: 0; }
table.data td { color: #d2dce6; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.step::before {
  counter-increment: step; content: counter(step);
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #06121b; font-weight: 900;
  display: grid; place-items: center;
}
.step h3 { margin: 0 0 3px; font-size: 1.02rem; }
.step p { margin: 0; font-size: .92rem; color: var(--muted); }

/* Guide figure (centered feature image under a section) */
.guide-figure { margin: 28px auto 0; max-width: 820px; text-align: center; }
.guide-figure img {
  width: 100%; height: auto; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.guide-figure figcaption { margin-top: 12px; font-size: .82rem; color: var(--muted-2); }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; color: #fff; cursor: pointer;
  font-weight: 700; font-size: 1rem; padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq-q .chev { transition: transform .25s ease; flex-shrink: 0; color: var(--accent); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a .faq-a-inner { padding: 0 18px 16px; color: var(--muted); font-size: .94rem; }
.faq-a p { color: var(--muted); margin: 0; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .82rem; color: var(--muted-2); padding: 14px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 6px; color: var(--border); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); }
.crumbs li[aria-current] { color: #fff; }

/* ---------- Notes (light, native) ---------- */
.callout {
  border-radius: var(--radius-sm); padding: 12px 15px;
  border: 1px solid var(--border-soft); border-left: 2px solid var(--accent);
  background: rgba(255,255,255,.018); display: flex; gap: 10px; align-items: flex-start;
}
.callout .ci { flex-shrink: 0; width: 17px; height: 17px; color: var(--accent); margin-top: 2px; opacity: .9; }
.callout.warn { border-left-color: #c9963a; }
.callout.warn .ci { color: #c9963a; }
.callout p { margin: 0; font-size: .86rem; line-height: 1.55; color: var(--muted); }
.callout strong { color: #dbe3ec; font-weight: 600; }

/* Responsible gambling — slim inline strip */
.rg-note {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .82rem; color: var(--muted-2); padding: 11px 15px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  background: rgba(255,255,255,.015);
}
.rg-note .ci { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.rg-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.rg-note a:hover { color: #fff; }
.rg-note .tag { font-size: .68rem; padding: 2px 8px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--card-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px; text-align: center; box-shadow: var(--shadow-soft);
}
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { max-width: 52ch; margin: 0 auto 20px; color: var(--muted); }

/* Prose */
.prose p { margin: 0 0 1rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; color: #d7e0ea; }

/* Section heading */
.sec-head { max-width: 64ch; margin-bottom: 26px; }
.sec-head .eyebrow { color: var(--accent); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.sec-head p { color: var(--muted); margin-top: 6px; }

/* SVG hero placeholder (sports without photos) */
.svg-hero { aspect-ratio: 1200 / 630; width: 100%; }
.svg-hero svg { width: 100%; height: 100%; display: block; }
.img-note { font-size: .72rem; color: var(--muted-2); margin-top: 8px; font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border-soft); padding: 44px 0 26px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--muted); font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 28px; margin-bottom: 12px; }
.footer-brand p { font-size: .88rem; color: var(--muted); max-width: 38ch; }
.footer-disclaimer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-soft); font-size: .8rem; color: var(--muted-2); }
.footer-disclaimer p { font-size: .8rem; color: var(--muted-2); margin: 0 0 8px; }
.rg-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.rg-badges span { border: 1px solid var(--border); border-radius: 7px; padding: 5px 10px; font-size: .74rem; font-weight: 700; color: var(--muted); }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  background: rgba(12,20,29,.96); border: 1px solid var(--border); border-radius: 14px;
  padding: 10px 12px; display: none; align-items: center; justify-content: space-between; gap: 10px;
  box-shadow: 0 -6px 24px rgba(0,0,0,.4); backdrop-filter: blur(8px);
}
.sticky-cta .sc-text { font-size: .82rem; font-weight: 700; }
.sticky-cta .sc-text small { display: block; color: var(--muted); font-weight: 500; }

/* 404 */
.err-wrap { text-align: center; padding: 80px 0; }
.err-wrap .code { font-size: clamp(4rem, 18vw, 9rem); font-weight: 900; line-height: 1; background: linear-gradient(135deg, #6db3ff, var(--blue-d)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--border-soft); border: 0; margin: 0; }
.tag { display: inline-block; background: var(--card-2); border: 1px solid var(--border); color: var(--muted); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .hero p.lead { max-width: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}

@media (max-width: 760px) {
  .nav, .header-cta {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 14px 20px; gap: 10px; margin: 0;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .header-cta { top: auto; inset: auto 0 auto 0; box-shadow: none; }
  .nav-open .nav, .nav-open .header-cta { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav { box-shadow: var(--shadow); }
  .header-cta { position: static; background: none; border: 0; padding: 0; flex-direction: row; opacity: 1; transform: none; pointer-events: auto; }
  /* Put CTA inside the open drawer */
  .nav-open .nav { padding-bottom: 16px; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 12px 12px; font-size: 1rem; border-radius: 8px; }
  .nav-toggle { display: inline-flex; }
  .header-cta-inline { display: none; }
  .nav-drawer-cta { display: flex; flex-direction: column; gap: 10px; padding: 12px 20px 18px; }
}

@media (min-width: 761px) {
  .nav-drawer-cta { display: none; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .proscons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 34px 0; }
  .cta-band { padding: 24px 18px; }
  .sticky-cta { display: flex; }
  body.has-sticky { padding-bottom: 76px; }
}
