/**
 * Dark Theme — Override tokens for dark mode
 * Phase 1: WCAG AA contrast compliance
 * AI Worker: A11y Cop
 * Health: contrast_audit_pass_rate
 * DoD: All text/bg pairs ≥ 4.5:1 contrast
 */

@media (prefers-color-scheme: dark) {
  :root {
    /* Override only what changes in dark mode */
    --bg: #000000;
    --surface-0: #0A0A0A;
    --surface-1: #111111;
    --surface-2: #1A1A1A;
    
    /* Text contrast boosted for AA */
    --text-0: #FFFFFF;
    --text-1: rgba(255, 255, 255, 0.9);
    --text-2: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
  }
}

/* Manual dark mode class (if user toggles) */
html.dark-mode {
  --bg: #000000;
  --surface-0: #0A0A0A;
  --surface-1: #111111;
  --surface-2: #1A1A1A;
  
  --text-0: #FFFFFF;
  --text-1: rgba(255, 255, 255, 0.9);
  --text-2: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
}
