/* style.css — Design Tokens for Sentinel Threat Dashboard */

/* ============================================
   TYPE SCALE (fluid)
   ============================================ */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);
}

/* ============================================
   SPACING (4px base)
   ============================================ */
: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;
}

/* ============================================
   FONT FAMILIES
   ============================================ */
:root {
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-display: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ============================================
   COLOR PALETTE (dark mode default)
   ============================================ */

/* Dark mode is the DEFAULT for this dashboard */
:root, [data-theme="dark"] {
  /* --- Surfaces --- */
  --color-bg:             #111014;
  --color-surface:        #19181d;
  --color-surface-2:      #1e1d23;
  --color-surface-offset: #1a1920;
  --color-surface-offset-2: #212027;
  --color-surface-dynamic: #2a2930;
  --color-divider:        #2a2933;
  --color-border:         #38374a;

  /* --- Text --- */
  --color-text:           #cdccd2;
  --color-text-muted:     #86858f;
  --color-text-faint:     #5a5965;
  --color-text-inverse:   #111014;

  /* --- Primary Accent --- */
  --color-primary:        #4f98a3;
  --color-primary-hover:  #227f8b;
  --color-primary-active: #1a626b;
  --color-primary-highlight: #1e2d30;

  /* --- Semantic: Notification --- */
  --color-notification:   #dd6974;
  --color-notification-hover: #c24a59;
  --color-notification-active: #a53142;
  --color-notification-highlight: #3a2226;

  /* --- Accent: Orange --- */
  --color-orange:         #fdab43;
  --color-orange-hover:   #fec47e;
  --color-orange-active:  #fdd1a4;
  --color-orange-highlight: #3a2e1e;

  /* --- Accent: Gold --- */
  --color-gold:           #e8af34;
  --color-gold-hover:     #fdc551;
  --color-gold-active:    #feda74;
  --color-gold-highlight: #332c1a;

  /* --- Accent: Green --- */
  --color-success:        #6daa45;
  --color-success-hover:  #4d8f25;
  --color-success-active: #387015;
  --color-success-highlight: #1e2c18;

  /* --- Accent: Blue --- */
  --color-blue:           #5591c7;
  --color-blue-hover:     #3b78ab;
  --color-blue-active:    #275f8e;
  --color-blue-highlight: #1e2836;

  /* --- Accent: Purple --- */
  --color-purple:         #a86fdf;
  --color-purple-hover:   #9250d0;
  --color-purple-active:  #7537ba;
  --color-purple-highlight: #2a2036;

  /* --- Semantic: Warning --- */
  --color-warning:        #bb653b;
  --color-warning-hover:  #b95525;
  --color-warning-active: #993d10;
  --color-warning-highlight: #342218;

  /* --- Semantic: Error --- */
  --color-error:          #d163a7;
  --color-error-hover:    #b9478f;
  --color-error-active:   #9b2f76;
  --color-error-highlight: #301e2c;

  /* --- Radius --- */
  --radius-sm: 0.375rem;
  --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);

  /* --- Shadows --- */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);

  /* --- Content widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ============================================
   LIGHT MODE
   ============================================ */
[data-theme="light"] {
  --color-bg:             #f7f6f2;
  --color-surface:        #f9f8f5;
  --color-surface-2:      #fbfbf9;
  --color-surface-offset: #f3f0ec;
  --color-surface-offset-2: #edeae5;
  --color-surface-dynamic: #e6e4df;
  --color-divider:        #dcd9d5;
  --color-border:         #d4d1ca;

  --color-text:           #28251d;
  --color-text-muted:     #7a7974;
  --color-text-faint:     #bab9b4;
  --color-text-inverse:   #f9f8f4;

  --color-primary:        #01696f;
  --color-primary-hover:  #0c4e54;
  --color-primary-active: #0f3638;
  --color-primary-highlight: #cedcd8;

  --color-notification:   #a13544;
  --color-notification-hover: #782b33;
  --color-notification-active: #521f24;
  --color-notification-highlight: #dececb;

  --color-orange:         #da7101;
  --color-orange-hover:   #c55700;
  --color-orange-active:  #ac3e00;
  --color-orange-highlight: #e7d7c4;

  --color-gold:           #d19900;
  --color-gold-hover:     #b07a00;
  --color-gold-active:    #8a5b00;
  --color-gold-highlight: #e9e0c6;

  --color-success:        #437a22;
  --color-success-hover:  #2e5c10;
  --color-success-active: #1e3f0a;
  --color-success-highlight: #d4dfcc;

  --color-blue:           #006494;
  --color-blue-hover:     #0b5177;
  --color-blue-active:    #0b3751;
  --color-blue-highlight: #c6d8e4;

  --color-purple:         #7a39bb;
  --color-purple-hover:   #5f2699;
  --color-purple-active:  #431673;
  --color-purple-highlight: #dacfde;

  --color-warning:        #964219;
  --color-warning-hover:  #713417;
  --color-warning-active: #4b2614;
  --color-warning-highlight: #ddcfc6;

  --color-error:          #a12c7b;
  --color-error-hover:    #7d1e5e;
  --color-error-active:   #561740;
  --color-error-highlight: #e0ced7;

  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.12);
}
