/* style.css — HR AI Tracker Design System
   Custom palette: Bloomberg-terminal-meets-analytics.
   Dark sidebar (navy/charcoal), light content area, monochromatic blue accents.
*/

/* ============================================
   FONTS
   ============================================ */
:root {
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
}

/* ============================================
   TYPE SCALE (fluid)
   ============================================ */
:root {
  --text-xs:   clamp(0.6875rem, 0.65rem + 0.2vw, 0.75rem);
  --text-sm:   clamp(0.75rem, 0.72rem + 0.2vw, 0.8125rem);
  --text-base: clamp(0.8125rem, 0.78rem + 0.2vw, 0.875rem);
  --text-lg:   clamp(0.9375rem, 0.88rem + 0.3vw, 1.0625rem);
  --text-xl:   clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-2xl:  clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
  --text-3xl:  clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem);
}

/* ============================================
   4px SPACING SYSTEM
   ============================================ */
:root {
  --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;
  --space-32: 8rem;
}

/* ============================================
   COLOR PALETTE — Custom: Bloomberg Analytics
   Monochromatic blues on light. Dark sidebar.
   ============================================ */
:root, [data-theme="light"] {
  /* --- Surfaces (Cool Gray) --- */
  --color-bg:             #f4f5f7;
  --color-surface:        #ffffff;
  --color-surface-2:      #f9fafb;
  --color-surface-offset: #eef0f3;
  --color-surface-offset-2: #e5e8ed;
  --color-surface-dynamic: #dde0e6;
  --color-divider:        #d1d5db;
  --color-border:         #c5cad3;

  /* --- Text --- */
  --color-text:           #1a1d23;
  --color-text-muted:     #6b7280;
  --color-text-faint:     #9ca3af;
  --color-text-inverse:   #f9fafb;

  /* --- Primary Accent (Steel Blue) --- */
  --color-primary:        #2563eb;
  --color-primary-hover:  #1d4ed8;
  --color-primary-active: #1e40af;
  --color-primary-highlight: #dbeafe;
  --color-primary-soft:   #eff6ff;

  /* --- Semantic --- */
  --color-success:        #059669;
  --color-success-hover:  #047857;
  --color-success-highlight: #d1fae5;
  --color-error:          #dc2626;
  --color-error-hover:    #b91c1c;
  --color-error-highlight: #fee2e2;
  --color-warning:        #d97706;
  --color-warning-highlight: #fef3c7;

  /* --- Data Viz Blues --- */
  --color-blue-100: #dbeafe;
  --color-blue-200: #bfdbfe;
  --color-blue-300: #93c5fd;
  --color-blue-400: #60a5fa;
  --color-blue-500: #3b82f6;
  --color-blue-600: #2563eb;
  --color-blue-700: #1d4ed8;
  --color-blue-800: #1e40af;
  --color-blue-900: #1e3a5f;

  /* --- Sidebar (Dark) --- */
  --sidebar-bg:           #111827;
  --sidebar-surface:      #1f2937;
  --sidebar-text:         #e5e7eb;
  --sidebar-text-muted:   #9ca3af;
  --sidebar-text-faint:   #6b7280;
  --sidebar-active-bg:    #2563eb;
  --sidebar-hover-bg:     #374151;
  --sidebar-border:       #374151;

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

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

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

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
  --color-bg:             #0f1117;
  --color-surface:        #1a1d27;
  --color-surface-2:      #21242f;
  --color-surface-offset: #161923;
  --color-surface-offset-2: #252836;
  --color-surface-dynamic: #2e3140;
  --color-divider:        #2e3140;
  --color-border:         #3b3f4f;

  --color-text:           #e5e7eb;
  --color-text-muted:     #9ca3af;
  --color-text-faint:     #6b7280;
  --color-text-inverse:   #1a1d23;

  --color-primary:        #60a5fa;
  --color-primary-hover:  #3b82f6;
  --color-primary-active: #2563eb;
  --color-primary-highlight: #1e3a5f;
  --color-primary-soft:   #172554;

  --color-success:        #34d399;
  --color-success-hover:  #10b981;
  --color-success-highlight: #064e3b;
  --color-error:          #f87171;
  --color-error-hover:    #ef4444;
  --color-error-highlight: #450a0a;
  --color-warning:        #fbbf24;
  --color-warning-highlight: #451a03;

  --color-blue-100: #172554;
  --color-blue-200: #1e3a5f;
  --color-blue-300: #1e40af;
  --color-blue-400: #2563eb;
  --color-blue-500: #3b82f6;
  --color-blue-600: #60a5fa;
  --color-blue-700: #93c5fd;
  --color-blue-800: #bfdbfe;
  --color-blue-900: #dbeafe;

  --sidebar-bg:           #0a0c14;
  --sidebar-surface:      #111422;
  --sidebar-text:         #e5e7eb;
  --sidebar-text-muted:   #9ca3af;
  --sidebar-text-faint:   #6b7280;
  --sidebar-active-bg:    #2563eb;
  --sidebar-hover-bg:     #1f2335;
  --sidebar-border:       #1f2335;

  --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);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0f1117;
    --color-surface:        #1a1d27;
    --color-surface-2:      #21242f;
    --color-surface-offset: #161923;
    --color-surface-offset-2: #252836;
    --color-surface-dynamic: #2e3140;
    --color-divider:        #2e3140;
    --color-border:         #3b3f4f;
    --color-text:           #e5e7eb;
    --color-text-muted:     #9ca3af;
    --color-text-faint:     #6b7280;
    --color-text-inverse:   #1a1d23;
    --color-primary:        #60a5fa;
    --color-primary-hover:  #3b82f6;
    --color-primary-active: #2563eb;
    --color-primary-highlight: #1e3a5f;
    --color-primary-soft:   #172554;
    --color-success:        #34d399;
    --color-success-hover:  #10b981;
    --color-success-highlight: #064e3b;
    --color-error:          #f87171;
    --color-error-hover:    #ef4444;
    --color-error-highlight: #450a0a;
    --color-warning:        #fbbf24;
    --color-warning-highlight: #451a03;
    --color-blue-100: #172554;
    --color-blue-200: #1e3a5f;
    --color-blue-300: #1e40af;
    --color-blue-400: #2563eb;
    --color-blue-500: #3b82f6;
    --color-blue-600: #60a5fa;
    --color-blue-700: #93c5fd;
    --color-blue-800: #bfdbfe;
    --color-blue-900: #dbeafe;
    --sidebar-bg:           #0a0c14;
    --sidebar-surface:      #111422;
    --sidebar-text:         #e5e7eb;
    --sidebar-text-muted:   #9ca3af;
    --sidebar-text-faint:   #6b7280;
    --sidebar-active-bg:    #2563eb;
    --sidebar-hover-bg:     #1f2335;
    --sidebar-border:       #1f2335;
    --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);
  }
}
