/**
 * EPL Table Explorer — Design Tokens & Theme Custom Properties
 */

:root {
  /* Brand Palette (Premier League Broadcast Purple & Pitch Green) */
  --pl-purple-950: #16001a;
  --pl-purple-900: #240029;
  --pl-purple-800: #37003c;
  --pl-purple-700: #4b0052;
  --pl-purple-600: #670e70;

  --pl-mint-500: #00ff85;
  --pl-mint-600: #00d66f;
  --pl-mint-700: #049653;

  --pl-cyan-500: #05f0ff;
  --pl-pink-500: #e90052;

  /* Light Mode Surfaces & Typography (Default) */
  --bg-page: #f3f4f8;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f8f9fc;
  --bg-surface-hover: #f0eff7;
  --bg-surface-selected: #ebe4f5;
  --bg-elevated: #ffffff;

  --text-primary: #14081c;
  --text-secondary: #4a3f54;
  --text-muted: #6e6278;
  --text-on-brand: #ffffff;

  --border-subtle: #e3dfe8;
  --border-strong: #cbc3d4;

  --accent-primary: #37003c;
  --accent-Interactive: #500057;
  --accent-highlight: #048749;
  --accent-focus: #7c3aed;

  /* Qualification & Relegation Zone Colours */
  --zone-ucl: #059669;
  --zone-ucl-bg: rgba(5, 150, 105, 0.06);
  --zone-uel: #0284c7;
  --zone-uel-bg: rgba(2, 132, 199, 0.05);
  --zone-relegation: #dc2626;
  --zone-relegation-bg: rgba(220, 38, 38, 0.06);

  /* Form / Result Semantic Colours */
  --result-win-bg: #10b981;
  --result-win-text: #ffffff;
  --result-draw-bg: #94a3b8;
  --result-draw-text: #ffffff;
  --result-loss-bg: #ef4444;
  --result-loss-text: #ffffff;

  /* Positive / Negative Numeric Colours */
  --num-pos: #047857;
  --num-neg: #dc2626;

  /* Shadows & Radius */
  --shadow-sm: 0 1px 3px rgba(20, 8, 28, 0.06), 0 1px 2px rgba(20, 8, 28, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 8, 28, 0.08);
  --shadow-lg: 0 14px 34px rgba(20, 8, 28, 0.18);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --container-max: 1340px;
}

/* Dark Theme Overrides */
html[data-theme="dark"] {
  --bg-page: #0d0514;
  --bg-surface: #170a23;
  --bg-surface-alt: #1e0e2d;
  --bg-surface-hover: #27133a;
  --bg-surface-selected: #33184c;
  --bg-elevated: #211030;

  --text-primary: #f6f2fa;
  --text-secondary: #cbbcd6;
  --text-muted: #9886a6;
  --text-on-brand: #ffffff;

  --border-subtle: #2d193d;
  --border-strong: #432659;

  --accent-primary: #00ff85;
  --accent-Interactive: #00d66f;
  --accent-highlight: #00ff85;
  --accent-focus: #00ff85;

  --zone-ucl: #00ff85;
  --zone-ucl-bg: rgba(0, 255, 133, 0.06);
  --zone-uel: #38bdf8;
  --zone-uel-bg: rgba(56, 189, 248, 0.06);
  --zone-relegation: #f87171;
  --zone-relegation-bg: rgba(248, 113, 113, 0.07);

  --num-pos: #34d399;
  --num-neg: #f87171;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 42px rgba(0, 0, 0, 0.65);
}
