/* Sports Pulse — calm, minimal design. Vanilla CSS, mobile-first. No external dependencies. */

:root {
  --bg: #fbfbfd;          /* calm neutral page base */
  --card: #ffffff;        /* clean light surfaces */
  --ink: #1d1d1f;         /* primary text */
  --ink-2: #424245;       /* secondary text */
  --muted: #6e6e73;       /* quiet gray */
  --line: #e8e8ed;        /* hairline borders */
  --accent: #a3e635;      /* volt lime — the ONE accent color */
  --accent-hover: #8fd41f;
  --accent-ink: #1d1d1f;
  --accent-soft: #eef6d3;
  --green-tint: #e8f6ee;  /* flat functional tints, used sparingly */
  --green-text: #166534;
  --amber-tint: #fdf3e2;
  --amber-text: #92400e;
  --live-bg: #fdeeee;
  --live-text: #b91c1c;
  --live-line: #f3c4c4;
  --radius: 18px;         /* calm cards: large corner radii */
  --radius-lg: 24px;      /* hero stat card */
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 12px 32px -16px rgba(17, 24, 39, .12); /* soft, diffused */
  --maxw: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

/* Keep anchored sections visible below the sticky header */
section.sport, main.page { scroll-margin-top: 84px; }

a { color: var(--green-text); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #65a30d;
  outline-offset: 2px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  background: #ffffff;   /* calm solid header — no glassmorphism */
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.015em;
}
.brand svg { flex: none; }
.brand small {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding: .5rem .8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .01em;
  transition: background .15s ease;
}
.main-nav a:hover { background: #f0f0f4; color: var(--ink); }
/* The accent, used sparingly: active tab / current page only */
.main-nav a[aria-current="page"],
.main-nav a.is-active:not([aria-current="page"]) {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
}
.hero-inner { max-width: 44rem; margin: 0 auto; }
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.eyebrow-line { width: 2.4rem; height: 3px; background: var(--accent); border-radius: 2px; }
.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.25rem, 6vw, 3.9rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero p.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto;
}

/* Segmented sport navigation */
.sport-tabs {
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  margin: 2rem auto 1.5rem;
  padding: .3rem;
  background: #f5f5f7;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.sport-tabs a {
  display: inline-flex;
  align-items: center;
  padding: .62rem 1.4rem;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  transition: background .16s ease;
}
.sport-tabs a:hover { background: #ececf1; color: var(--ink); }
.sport-tabs a.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}

.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: #f5f5f7;
  border: 1px solid var(--line);
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
}
.updated-badge .dot {
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--accent);
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
section.sport, main.page { padding: 3.5rem 0 1rem; }

.section-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: .4rem;
}
.section-head svg { flex: none; }
.section-head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.08;
}
.section-sub { color: var(--muted); margin: 0 0 1.75rem; font-size: 1rem; }

.cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 860px) {
  .cols { grid-template-columns: 1fr 1fr; }
}

.subhead {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1rem;
}
.subhead h3 {
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-2);
}
.pill {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .22rem .65rem;
  border-radius: 999px;
}
.pill.results { background: var(--green-tint); color: var(--green-text); }
.pill.fixtures { background: var(--amber-tint); color: var(--amber-text); }

/* Match rows: one calm card per list, rows separated by hairline rules */
.match-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.match {
  padding: 1rem 1.35rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .2rem .9rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.match:last-child { border-bottom: none; }
.match .teams { font-weight: 600; font-size: 1rem; letter-spacing: -.005em; }
.match .meta { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); }
/* Numeric-first hierarchy: bold tabular scores, tight line-height, quiet labels */
.score {
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.015em;
}
.fixture .score {
  font-size: .92rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--muted);
}

/* Live badge for in-progress matches — kept, but calm: no pulsing */
.live-wrap { display: flex; align-items: center; gap: .55rem; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  background: var(--live-bg);
  border: 1px solid var(--live-line);
  color: var(--live-text);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pulse-dot {
  width: .45rem; height: .45rem; border-radius: 50%;
  background: var(--live-text);
}

/* ---------- Dashboard: calm hero stat card + small stat tiles ---------- */
.dash { margin: 2.75rem 0 0; }
.dash-hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 6vw, 4rem);
  flex-wrap: wrap;
}
.dash-stat {
  display: grid;
  justify-items: center;
  gap: .35rem;
  min-width: 7rem;
}
.dash-num {
  font-size: clamp(2.4rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dash-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.dash-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: .75rem;
}
.dash-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1rem;
  text-decoration: none;
  display: grid;
  justify-items: center;
  gap: .3rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.dash-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(17, 24, 39, .05), 0 18px 40px -16px rgba(17, 24, 39, .16);
}
.dash-tile .dash-num { font-size: 1.9rem; color: var(--ink); }
.dash-tile:hover .dash-num { color: var(--ink); }

/* ---------- Info cards ---------- */
.follow-note {
  background: #f5f5f7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.5rem;
  margin: 0 0 2rem;
}
.follow-note h4 {
  margin: 0 0 .45rem;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink);
}
.follow-note p { margin: .35rem 0; font-size: .93rem; color: var(--ink-2); }

.also-today {
  font-size: .9rem;
  color: var(--ink-2);
  margin: 0 0 2rem;
}
.also-today strong { color: var(--ink); }
.also-today a { font-weight: 600; white-space: nowrap; }

.api-note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.4rem;
  margin: 2.5rem 0;
  font-size: .9rem;
  color: var(--ink-2);
}
.api-note strong { color: var(--ink); }
.api-note code {
  background: var(--accent-soft);
  color: var(--green-text);
  padding: .12rem .4rem;
  border-radius: 5px;
  font-size: .85em;
}

.data-notice {
  font-size: .85rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

/* ---------- Prose pages ---------- */
.page h1 {
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.25rem; font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.25rem; }

.contact-form { max-width: 34rem; margin-top: 1.5rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%;
  padding: .72rem .85rem;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  font: inherit;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  border-color: #65a30d;
  box-shadow: 0 0 0 3px rgba(163, 230, 53, .35);
  outline: none;
}
.field textarea { min-height: 9rem; resize: vertical; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  padding: .8rem 1.8rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  letter-spacing: .02em;
  font-size: .95rem;
  cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: #f5f5f7;
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 3.5rem;
  padding: 2.75rem 1.25rem 1.5rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h3 {
  color: var(--ink);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 0 0 .7rem;
}
.site-footer p { font-size: .88rem; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  max-width: var(--maxw);
  margin: 1.75rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
