/* ============================================================
   FLOYD CENTRAL ATHLETICS — DESIGN SYSTEM  (fc.css)
   One system. Twenty sports. Every Highlander spotlighted.

   Theme a sport by overriding --sport-accent + --sport-motif
   on the <body>. Everything else stays unmistakably FC.
   ============================================================ */

:root {
  /* --- Brand core (never change per sport) --- */
  --fc-green:        #004823;
  --fc-green-deep:   #00301a;
  --fc-green-hi:     #00602f;
  --fc-gold:         #FECB0D;
  --fc-gold-soft:    #ffdd57;
  --fc-white:        #ffffff;
  --fc-black:        #0b1410;

  /* --- Neutrals (green-biased, chosen not defaulted) --- */
  --fc-paper:        #ffffff;
  --fc-ink:          #101d16;
  --fc-ink-soft:     #46564c;
  --fc-tint:         #eef3ef;
  --fc-line:         #d6ded8;

  /* --- Per-sport accent (default = gold; sports override) --- */
  --sport-accent:    var(--fc-gold);
  --sport-accent-ink:#00301a;

  /* --- Type --- */
  --font-display: Rockwell, "Rockwell Nova", "Roboto Slab", Georgia, serif;
  --font-body:    "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;

  /* --- Space + shape --- */
  --step: 0.5rem;
  --radius: 12px;
  --radius-sm: 7px;
  --shadow: 0 18px 44px rgba(0,40,20,0.12);
  --shadow-lg: 0 30px 70px rgba(0,40,20,0.22);
  --maxw: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fc-paper: #0b150f; --fc-ink: #e9efe9; --fc-ink-soft: #9db5a5;
    --fc-tint: #10201724; --fc-line: #21382b;
    --fc-green: #0c3a22; --fc-green-deep: #071f13;
  }
}
:root[data-theme="dark"] {
  --fc-paper: #0b150f; --fc-ink: #e9efe9; --fc-ink-soft: #9db5a5;
  --fc-tint: #10201724; --fc-line: #21382b;
  --fc-green: #0c3a22; --fc-green-deep: #071f13;
}
:root[data-theme="light"] {
  --fc-paper: #ffffff; --fc-ink: #101d16; --fc-ink-soft: #46564c;
  --fc-tint: #eef3ef; --fc-line: #d6ded8;
  --fc-green: #004823; --fc-green-deep: #00301a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--fc-paper); color: var(--fc-ink);
  font-family: var(--font-body); line-height: 1.6; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Typography ---------- */
.fc-display { font-family: var(--font-display); }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; text-wrap: balance; }
.fc-eyebrow {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 0.76rem; color: var(--sport-accent);
}
.fc-lede { font-size: 1.15rem; color: var(--fc-ink-soft); max-width: 60ch; }
.fc-section { padding: clamp(3rem, 7vw, 5.5rem) 1.4rem; }
.fc-wrap { max-width: var(--maxw); margin: 0 auto; }
.fc-center { text-align: center; }

/* ---------- Tartan rule (the signature FC divider) ---------- */
.fc-tartan {
  height: 14px;
  background:
    repeating-linear-gradient(90deg, transparent 0 40px, var(--sport-accent) 40px 44px, transparent 44px 70px, rgba(255,255,255,0.35) 70px 72px, transparent 72px 112px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.28) 0 3px, transparent 3px 9px),
    linear-gradient(var(--fc-green), var(--fc-green-deep));
}

/* ---------- Buttons ---------- */
.fc-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  padding: 0.8rem 1.5rem; border-radius: var(--radius-sm); border: 0; text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.fc-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.fc-btn:focus-visible { outline: 3px solid var(--sport-accent); outline-offset: 2px; }
.fc-btn--gold { background: var(--sport-accent); color: var(--sport-accent-ink); }
.fc-btn--green { background: var(--fc-green); color: #fff; }
.fc-btn--ghost { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.fc-btn--outline { background: none; color: var(--fc-ink); border: 1px solid var(--fc-line); }
.fc-btn--sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ---------- Top nav ---------- */
.fc-nav {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--fc-green) 92%, transparent);
  color: #fff; border-bottom: 3px solid var(--sport-accent);
}
.fc-nav__in { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: 0.7rem 1.4rem; }
.fc-nav__brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: #fff; }
.fc-nav__brand img { width: 38px; height: 38px; }
.fc-nav__brand b { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: 0.02em; line-height: 1.1; }
.fc-nav__brand span { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--sport-accent); }
.fc-nav__links { margin-left: auto; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.fc-nav__links a { color: #d9e7de; text-decoration: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.fc-nav__links a:hover { color: var(--sport-accent); }
.fc-nav__links a { white-space: nowrap; }
.fc-nav__cta { margin-left: 0.4rem; flex: none; }
@media (max-width: 820px) {
  .fc-nav__in { flex-wrap: wrap; gap: 0.5rem 1rem; }
  .fc-nav__cta { margin-left: auto; }
  .fc-nav__links {
    order: 3; width: 100%; margin-left: 0; gap: 1.1rem;
    overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch;
    padding-bottom: 2px; scrollbar-width: none;
  }
  .fc-nav__links::-webkit-scrollbar { display: none; }
}

/* ---------- Hero ---------- */
.fc-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 460px at 82% -12%, color-mix(in srgb, var(--sport-accent) 22%, transparent), transparent 60%),
    linear-gradient(155deg, var(--fc-green-hi) 0%, var(--fc-green) 45%, var(--fc-green-deep) 100%);
  padding: clamp(3rem, 8vw, 6rem) 1.4rem clamp(2.5rem, 6vw, 4.5rem);
}
.fc-hero__wm { position: absolute; right: -8%; top: -22%; width: 54%; aspect-ratio: 1; opacity: 0.08; background: center/contain no-repeat; transform: rotate(-8deg); pointer-events: none; }
.fc-hero__in { position: relative; max-width: var(--maxw); margin: 0 auto; }
.fc-hero h1 { font-size: clamp(2.6rem, 8vw, 5rem); letter-spacing: -0.01em; }
.fc-hero h1 .accent { color: var(--sport-accent); }
.fc-hero__sub { color: #cfe0d5; font-size: 1.12rem; max-width: 54ch; margin: 1rem 0 1.6rem; }
.fc-hero__cta { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* ---------- Stat strip ---------- */
.fc-stats { display: flex; flex-wrap: wrap; gap: 1.2rem 2.6rem; border-top: 1px solid rgba(255,255,255,0.22); padding-top: 1.4rem; margin-top: 2rem; }
.fc-stat b { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--sport-accent); display: block; line-height: 1; font-variant-numeric: tabular-nums; }
.fc-stat span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: #cfe0d5; font-weight: 600; }

/* ---------- Cards / grids ---------- */
.fc-grid { display: grid; gap: 1.1rem; }
.fc-grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.fc-grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.fc-card {
  background: var(--fc-paper); border: 1px solid var(--fc-line); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.3rem; box-shadow: var(--shadow);
}
.fc-card--accent { border-top: 4px solid var(--sport-accent); }
.fc-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.fc-card p { color: var(--fc-ink-soft); font-size: 0.94rem; margin: 0; }

/* ---------- Match / schedule rows ---------- */
.fc-match { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 0.9rem 1.1rem; border: 1px solid var(--fc-line); border-radius: var(--radius-sm); background: var(--fc-paper); }
.fc-match + .fc-match { margin-top: 0.6rem; }
.fc-match__date { font-family: var(--font-display); font-weight: 700; color: var(--fc-green); text-align: center; line-height: 1; }
:root[data-theme="dark"] .fc-match__date { color: var(--sport-accent); }
.fc-match__date span { display: block; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fc-ink-soft); }
.fc-match__opp b { font-family: var(--font-display); }
.fc-match__opp small { color: var(--fc-ink-soft); }
.fc-match__res { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.fc-badge { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.18rem 0.45rem; border-radius: 4px; }
.fc-badge--w { background: var(--sport-accent); color: var(--sport-accent-ink); }
.fc-badge--home { background: var(--fc-tint); color: var(--fc-ink-soft); }

/* ---------- Roster ---------- */
.fc-player { border: 1px solid var(--fc-line); border-radius: var(--radius); overflow: hidden; background: var(--fc-paper); }
.fc-player__top { background: linear-gradient(160deg, var(--fc-green), var(--fc-green-deep)); color: #fff; padding: 1.1rem; display: flex; justify-content: space-between; align-items: flex-start; }
.fc-player__num { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--sport-accent); line-height: 1; }
.fc-player__pos { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: #cfe0d5; }
.fc-player__body { padding: 0.9rem 1.1rem; }
.fc-player__body b { font-family: var(--font-display); font-size: 1.05rem; }
.fc-player__body span { color: var(--fc-ink-soft); font-size: 0.82rem; }

/* ---------- Sponsor tiers ---------- */
.fc-tier { border: 1px solid var(--fc-line); border-radius: var(--radius); overflow: hidden; background: var(--fc-paper); display: flex; flex-direction: column; }
.fc-tier--feature { border: 2px solid var(--sport-accent); box-shadow: var(--shadow-lg); }
.fc-tier__cap { background: var(--fc-green); color: #fff; padding: 1.2rem 1.3rem; }
.fc-tier--feature .fc-tier__cap { background: linear-gradient(150deg, var(--fc-green-hi), var(--fc-green-deep)); }
.fc-tier__name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.fc-tier__price { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--sport-accent); line-height: 1; margin-top: 0.3rem; }
.fc-tier__price small { font-size: 0.8rem; color: #cfe0d5; font-weight: 400; }
.fc-tier__body { padding: 1.1rem 1.3rem; flex: 1; }
.fc-tier__body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.fc-tier__body li { padding-left: 1.4rem; position: relative; font-size: 0.9rem; color: var(--fc-ink-soft); }
.fc-tier__body li::before { content: "✓"; position: absolute; left: 0; color: var(--sport-accent); font-weight: 700; }
.fc-tier__foot { padding: 0 1.3rem 1.3rem; }

/* ---------- On-green section ---------- */
.fc-on-green { background: linear-gradient(150deg, var(--fc-green-hi), var(--fc-green-deep)); color: #fff; }
.fc-on-green .fc-eyebrow { color: var(--sport-accent); }
.fc-on-green .fc-lede { color: #cfe0d5; }

/* ---------- Footer ---------- */
.fc-footer { background: var(--fc-green-deep); color: #bcd2c4; padding: 2.6rem 1.4rem; }
.fc-footer__in { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.fc-footer b { font-family: var(--font-display); color: #fff; }
.fc-footer a { color: var(--sport-accent); text-decoration: none; }

/* ---------- Renderer-shared helpers (used by every sport site) ---------- */
.sec-h { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0.4rem 0 1.4rem; }
.pitch-stripes { position: absolute; inset: 0; opacity: 0.12; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.18) 0 60px, transparent 60px 120px); }
.news-tag { color: var(--sport-accent); font-family: var(--font-display); font-weight: 700; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.13em; }
.activation { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 0.8rem; }
.act { border: 1px solid var(--fc-line); border-radius: var(--radius-sm); padding: 1rem; }
.act b { font-family: var(--font-display); display: block; margin-bottom: 0.2rem; }
.act span { font-size: 0.85rem; color: var(--fc-ink-soft); }

/* ---------- Utilities ---------- */
.fc-mt { margin-top: 1.4rem; } .fc-mt2 { margin-top: 2.4rem; }
.fc-muted { color: var(--fc-ink-soft); }
.fc-note { font-size: 0.8rem; color: var(--fc-ink-soft); }
