/* =========================================================================
   Winstaker — Global Stylesheet
   Design language: dark "match analysis" surface, mint accent = a live
   signal / a good price, indigo accent = the AI / data layer.
   Fonts: Space Grotesk (display) + Inter (body)
   ========================================================================= */

:root {
  /* -- Color tokens ------------------------------------------------- */
  --bg:          #0A1220;
  --bg-alt:      #0E1A2E;
  --surface:     #121F35;
  --surface-2:   #16233C;
  --line:        rgba(234, 240, 255, 0.09);
  --text:        #EAF0FB;
  --text-muted:  #92A4C4;
  --accent:      #34E1A1;   /* mint — positive signal */
  --accent-ink:  #06231A;   /* text-on-accent */
  --accent-2:    #6C8CFF;   /* indigo — AI / data */
  --amber:       #F5B942;   /* moderate risk */
  --coral:       #FF7A7A;   /* rare, negative */

  /* -- Type ----------------------------------------------------------- */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* -- Layout ----------------------------------------------------------- */
  --max-w: 1180px;
  --radius: 10px;
  --radius-sm: 6px;
}

/* -- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--text-muted); }
button { font-family: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* -- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #4FEDB1; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* -- Header / Nav --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: var(--max-w); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--text);
}
.primary-nav {
  display: flex; align-items: center; gap: 28px; flex: 1; justify-content: flex-end;
}
.primary-nav ul { display: flex; gap: 26px; }
.primary-nav a:not(.btn) {
  font-size: 0.93rem; font-weight: 500; color: var(--text-muted);
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.primary-nav a:not(.btn):hover,
.primary-nav a.is-active { color: var(--text); border-color: var(--accent); }
.nav-auth { display: flex; gap: 10px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer;
}
.nav-toggle span {
  width: 18px; height: 2px; background: var(--text); margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 20px 24px 26px;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 4px; }
  .primary-nav ul a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-auth { flex-direction: column; margin-top: 14px; }
}

/* -- Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 80px; background: var(--bg-alt); }
.footer-wrap {
  max-width: var(--max-w); margin: 0 auto; padding: 56px 24px 32px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px;
}
.footer-col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.93rem; }
.footer-col a:hover { color: var(--accent); }
.footer-brand p { max-width: 30ch; }
.footer-disclaimer {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
}
.footer-disclaimer p {
  max-width: var(--max-w); margin: 0 auto; font-size: 0.8rem; color: var(--text-muted);
}
.footer-disclaimer a { color: var(--accent-2); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 24px; text-align: center;
}
.footer-bottom p { margin: 0; font-size: 0.8rem; color: var(--text-muted); }

@media (max-width: 800px) {
  .footer-wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-wrap { grid-template-columns: 1fr; }
}

/* -- Generic section utilities --------------------------------------- */
.section { padding: 72px 0; }
.section-head { max-width: 620px; margin-bottom: 40px; }
.eyebrow-note { color: var(--accent-2); font-weight: 600; font-size: 0.85rem; }

/* -- Coming soon page block (used by nba-tips.php / premium-tips.php) - */
.coming-soon {
  min-height: 50vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 80px 24px;
}
.coming-soon h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.coming-soon p { max-width: 46ch; }

/* -- Disclaimer block (content section, distinct from footer strip) -- */
.disclaimer-block {
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 26px 28px;
  background: var(--bg-alt);
}
.disclaimer-block h2 { font-size: 1.1rem; color: var(--text); }
.disclaimer-block p:last-child { margin-bottom: 0; }

/* -- Flash banners (shared: subscribe, contact, auth redirects) -------- */
.flash-banner {
  margin: 20px 0 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.flash-success { background: rgba(52,225,161,0.1); border: 1px solid rgba(52,225,161,0.3); color: var(--accent); }
.flash-error { background: rgba(255,122,122,0.1); border: 1px solid rgba(255,122,122,0.3); color: var(--coral); }