/*
 * Design tokens — the single source of truth for colour, type, spacing, radius and elevation.
 * Bootstrap's own variables are mapped onto these in theme.css; component styles should use tokens, not literals.
 */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal-Gz7AlRl.woff2") format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal-1Br77OV.woff2") format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Typography */
  --mc-font-sans: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mc-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Spacing scale (4px base) */
  --mc-space-1: 0.25rem;
  --mc-space-2: 0.5rem;
  --mc-space-3: 0.75rem;
  --mc-space-4: 1rem;
  --mc-space-5: 1.5rem;
  --mc-space-6: 2rem;
  --mc-space-7: 3rem;

  /* Shape */
  --mc-radius-sm: 6px;
  --mc-radius: 10px;
  --mc-radius-lg: 14px;

  /* Layout */
  --mc-sidebar-w: 264px;
  --mc-sidebar-w-collapsed: 72px;
  --mc-topbar-h: 60px;

  /* Colour — brand (taken from the orange of the Multiplayer Classroom logo) */
  --mc-brand: #c2410c;
  --mc-brand-hover: #9a3412;
  --mc-brand-active: #7c2d12;
  --mc-brand-rgb: 194, 65, 12;
  --mc-brand-soft: #fff1e8;
  --mc-brand-on: #ffffff;
  --mc-accent: #f97316;

  /* Colour — neutrals (light) */
  --mc-bg: #f6f7f9;
  --mc-surface: #ffffff;
  --mc-surface-2: #f1f3f6;
  --mc-border: #e4e7ec;
  --mc-border-strong: #cfd4dc;
  --mc-ink: #101828;
  --mc-ink-2: #344054;
  --mc-muted: #667085;

  /* Colour — semantic */
  --mc-success: #067647;
  --mc-success-soft: #e7f6ee;
  --mc-warning: #b54708;
  --mc-warning-soft: #fff4e0;
  --mc-danger: #b42318;
  --mc-danger-soft: #fdecea;
  --mc-info: #175cd3;
  --mc-info-soft: #e8f0fe;

  /* Elevation */
  --mc-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --mc-shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 4px 12px rgba(16, 24, 40, 0.04);
  --mc-shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.16);

  /* Sidebar is always dark, in both colour modes */
  --mc-sidebar-bg: #12151c;
  --mc-sidebar-ink: #c9ced8;
  --mc-sidebar-muted: #7d8595;
  --mc-sidebar-hover: rgba(255, 255, 255, 0.06);
  --mc-sidebar-active: rgba(249, 115, 22, 0.16);
  --mc-sidebar-border: rgba(255, 255, 255, 0.08);

  --mc-focus-ring: 0 0 0 3px rgba(var(--mc-brand-rgb), 0.28);
}

[data-bs-theme='dark'] {
  --mc-brand: #fb923c;
  --mc-brand-hover: #fdba74;
  --mc-brand-active: #fed7aa;
  --mc-brand-rgb: 251, 146, 60;
  --mc-brand-soft: rgba(251, 146, 60, 0.14);
  --mc-brand-on: #1a0f06;

  --mc-bg: #0b0e14;
  --mc-surface: #141923;
  --mc-surface-2: #1b2230;
  --mc-border: #263042;
  --mc-border-strong: #364257;
  --mc-ink: #eef0f4;
  --mc-ink-2: #c4cad6;
  --mc-muted: #98a2b3;

  --mc-success: #4ade80;
  --mc-success-soft: rgba(74, 222, 128, 0.12);
  --mc-warning: #fbbf24;
  --mc-warning-soft: rgba(251, 191, 36, 0.12);
  --mc-danger: #f87171;
  --mc-danger-soft: rgba(248, 113, 113, 0.13);
  --mc-info: #7cb2ff;
  --mc-info-soft: rgba(124, 178, 255, 0.13);

  --mc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --mc-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
  --mc-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);

  --mc-sidebar-bg: #0a0c11;
  --mc-focus-ring: 0 0 0 3px rgba(var(--mc-brand-rgb), 0.35);
}
