/* style.css — War Room Dashboard Design Tokens */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Typography */
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Type Scale */
  --text-xs:   clamp(0.6875rem, 0.65rem + 0.18vw, 0.8125rem);
  --text-sm:   clamp(0.8125rem, 0.78rem + 0.16vw, 0.875rem);
  --text-base: clamp(0.875rem, 0.84rem + 0.2vw, 1rem);
  --text-lg:   clamp(1.0625rem, 0.95rem + 0.56vw, 1.375rem);
  --text-xl:   clamp(1.375rem, 1rem + 1.2vw, 2rem);
  --text-2xl:  clamp(1.75rem, 1.1rem + 2vw, 2.75rem);

  /* 4px Spacing System */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode (default & primary) — Navy/Slate base */
:root, [data-theme="dark"] {
  /* Surfaces */
  --color-bg:               #0f172a;
  --color-surface:          #1e293b;
  --color-surface-2:        #283548;
  --color-surface-offset:   #162032;
  --color-surface-offset-2: #0d1322;
  --color-surface-dynamic:  #334155;
  --color-divider:          rgba(148, 163, 184, 0.12);
  --color-border:           rgba(148, 163, 184, 0.18);

  /* Text */
  --color-text:        #f1f5f9;
  --color-text-muted:  #94a3b8;
  --color-text-faint:  #64748b;
  --color-text-inverse:#0f172a;

  /* Primary — Teal */
  --color-primary:          #14b8a6;
  --color-primary-hover:    #0d9488;
  --color-primary-active:   #0f766e;
  --color-primary-highlight: rgba(20, 184, 166, 0.12);

  /* Warning — Amber */
  --color-warning:          #f59e0b;
  --color-warning-hover:    #d97706;
  --color-warning-active:   #b45309;
  --color-warning-highlight: rgba(245, 158, 11, 0.12);

  /* Error — Red */
  --color-error:            #ef4444;
  --color-error-hover:      #dc2626;
  --color-error-active:     #b91c1c;
  --color-error-highlight:  rgba(239, 68, 68, 0.12);

  /* Success — Emerald */
  --color-success:          #10b981;
  --color-success-hover:    #059669;
  --color-success-active:   #047857;
  --color-success-highlight: rgba(16, 185, 129, 0.12);

  /* Data Viz palette */
  --color-blue:    #3b82f6;
  --color-purple:  #a855f7;
  --color-orange:  #f97316;
  --color-gold:    #eab308;
  --color-rose:    #f43f5e;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
}

/* Light Mode (alternate) */
[data-theme="light"] {
  --color-bg:               #f8fafc;
  --color-surface:          #ffffff;
  --color-surface-2:        #f1f5f9;
  --color-surface-offset:   #e2e8f0;
  --color-surface-offset-2: #f8fafc;
  --color-surface-dynamic:  #e2e8f0;
  --color-divider:          rgba(15, 23, 42, 0.08);
  --color-border:           rgba(15, 23, 42, 0.12);

  --color-text:        #0f172a;
  --color-text-muted:  #475569;
  --color-text-faint:  #94a3b8;
  --color-text-inverse:#f8fafc;

  --color-primary:          #0d9488;
  --color-primary-hover:    #0f766e;
  --color-primary-active:   #115e59;
  --color-primary-highlight: rgba(13, 148, 136, 0.1);

  --color-warning:          #d97706;
  --color-warning-hover:    #b45309;
  --color-warning-active:   #92400e;
  --color-warning-highlight: rgba(217, 119, 6, 0.1);

  --color-error:            #dc2626;
  --color-error-hover:      #b91c1c;
  --color-error-active:     #991b1b;
  --color-error-highlight:  rgba(220, 38, 38, 0.1);

  --color-success:          #059669;
  --color-success-hover:    #047857;
  --color-success-active:   #065f46;
  --color-success-highlight: rgba(5, 150, 105, 0.1);

  --color-blue:    #2563eb;
  --color-purple:  #9333ea;
  --color-orange:  #ea580c;
  --color-gold:    #ca8a04;
  --color-rose:    #e11d48;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
}
