/* ============================================================
   CourtFlow Design System — Colors & Type
   Source of truth: getcourtflow/design → design.md
   "Industrial with warmth. Linear's information density meets
    scoreboard energy."
   ============================================================ */

/* ---- Fonts (official CDNs) -------------------------------- */
/* Clash Display 600 (display) + Satoshi 400/500/700 (body/UI) — Fontshare */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@600&f[]=satoshi@400,500,700&display=swap');
/* Geist Mono — all numbers, times, currency, stats — Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- Core palette ------------------------------------- */
  --bg:          #fafaf9; /* warm white, primary background */
  --surface:     #ffffff; /* cards, panels */
  --fg:          #1c1917; /* warm near-black text */
  --fg-muted:    #78716c; /* secondary text */
  --fg-faint:    #a8a29e; /* labels, timestamps */
  --border:      #e7e5e4; /* default borders */
  --border-light:#f5f5f4; /* subtle dividers */

  /* ---- Brand -------------------------------------------- */
  --brand:       #264414; /* deep forest green */
  --brand-hover: #2e5218; /* green hover state */
  --accent:      #DDE255; /* electric lime */

  /* ---- Semantic ----------------------------------------- */
  --success:     #16a34a;
  --warning:     #d97706;
  --error:       #dc2626;

  /* ---- Lesson type colors ------------------------------- */
  --lesson-private:      #F35695;
  --lesson-private-bg:   #fde8f0;
  --lesson-private-text: #c43a72;
  --lesson-group:        #F98805;
  --lesson-group-bg:     #fef2de;
  --lesson-group-text:   #c06a04;
  --lesson-academy:      #DDE255;
  --lesson-academy-bg:   #f8f9e0;
  --lesson-academy-text: #6a7a18;
  --lesson-mini:         #F8DBDB;
  --lesson-mini-bg:      #fef5f5;
  --lesson-mini-text:    #a07070;

  /* ---- Type families ------------------------------------ */
  --font-display: 'Clash Display', 'Satoshi', sans-serif;
  --font-body:    'Satoshi', system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, monospace;

  /* ---- Type scale (px) ---------------------------------- */
  --text-xs:      10px;
  --text-sm:      12px;
  --text-base:    14px;
  --text-lg:      16px;
  --text-xl:      20px;
  --text-2xl:     24px;
  --text-3xl:     32px;
  --text-display: 36px;

  /* ---- Spacing (base 4px) ------------------------------- */
  --space-2xs: 2px;
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* ---- Radius ------------------------------------------- */
  --radius-sm:   4px; /* small elements */
  --radius-md:   6px; /* buttons, inputs */
  --radius-lg:   8px; /* cards */
  --radius-pill: 20px; /* tags, badges */

  /* ---- Shadows (warm, text-color base #1c1917) ---------- */
  --shadow-xs: 0 1px 2px rgba(28,25,23,0.04);
  --shadow-sm: 0 1px 3px rgba(28,25,23,0.06), 0 1px 2px rgba(28,25,23,0.04);
  --shadow-md: 0 4px 12px rgba(28,25,23,0.08);
  --shadow-lg: 0 8px 24px rgba(28,25,23,0.12);

  /* ---- Motion ------------------------------------------- */
  --motion-micro:  80ms ease-out;
  --motion-short:  200ms ease-out;
  --motion-medium: 320ms ease-in-out;

  /* ---- Backdrop ----------------------------------------- */
  --backdrop: rgba(28,25,23,0.5); /* warm black modal scrim */
}

/* ============================================================
   Semantic type roles
   Display/Hero → Clash Display. Body/UI → Satoshi.
   Numbers/times/currency/stats → Geist Mono ("data cockpit").
   ============================================================ */

.cf-display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.cf-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-3xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.cf-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.cf-h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xl);
  line-height: 1.25;
  color: var(--fg);
}

.cf-body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--fg);
}

.cf-body-muted {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--fg-muted);
}

/* Labels: small, uppercase, tracked — the "scoreboard" voice */
.cf-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* Data: numbers, times, currency, stats — always mono */
.cf-data {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--text-base);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.cf-data-lg {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--text-2xl);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.cf-mono-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  color: var(--fg-muted);
}
