/* ============================================================
   Cars.ie v2 — Design Tokens
   All visual primitives live here. Components consume these
   via var(--token-name) and never hard-code values.
   ============================================================ */

:root {
  /* ── Colour ─────────────────────────────────────────────── */
  --color-primary:          #185FA5;
  --color-text-primary:     #0F172A;
  --color-text-secondary:   #64748B;
  --color-text-tertiary:    #94A3B8;
  --color-surface:          #FFFFFF;
  --color-surface-secondary:#F8FAFC;
  --color-border-tertiary:  #E2E8F0;
  --color-border-secondary: #CBD5E1;
  --color-amber-accent:     #EF9F27;
  --color-info-50:          #E6F1FB;
  --color-info-600:         #378ADD;
  --color-info-800:         #0C447C;

  /* ── Spacing (px) ───────────────────────────────────────── */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* ── Radii ──────────────────────────────────────────────── */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* ── Typography ─────────────────────────────────────────── */
  --font-family: Inter, ui-sans-serif, system-ui, -apple-system,
                 BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 Arial, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;

  --text-11: 0.6875rem; /* 11px */
  --text-12: 0.75rem;   /* 12px */
  --text-13: 0.8125rem; /* 13px */
  --text-14: 0.875rem;  /* 14px */
  --text-15: 0.9375rem; /* 15px */
  --text-16: 1rem;      /* 16px */
  --text-18: 1.125rem;  /* 18px */
  --text-22: 1.375rem;  /* 22px */
  --text-24: 1.5rem;    /* 24px */
  --text-32: 2rem;      /* 32px */

  /* ── Transition ─────────────────────────────────────────── */
  --transition-interactive: 150ms ease;
}

/* ── Dark mode overrides ──────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --color-primary:          #5B9FD6;
    --color-text-primary:     #F1F5F9;
    --color-text-secondary:   #94A3B8;
    --color-text-tertiary:    #64748B;
    --color-surface:          #0F172A;
    --color-surface-secondary:#1E293B;
    --color-border-tertiary:  #334155;
    --color-border-secondary: #475569;
    --color-amber-accent:     #FBBF24;
    --color-info-50:          #0C2D4A;
    --color-info-600:         #5B9FD6;
    --color-info-800:         #93C5FD;
  }
}
