/**
 * Design Tokens - Clinical Curator Design System
 * Based on: DESIGN.md specification
 * Date: 2026-03-24
 */

:root {
  /* ========================================
     COLOR PALETTE
     ======================================== */
  
  /* Primary (Blue) */
  --color-primary: #005dac;
  --color-primary-container: #1976d2;
  --color-on-primary: #ffffff;
  --color-on-primary-container: #001d35;
  
  /* Tertiary (Amber/Yellow) */
  --color-tertiary: #765800;
  --color-tertiary-container: #ffdea6;
  --color-tertiary-fixed-dim: #fabd00;
  --color-on-tertiary: #ffffff;
  --color-on-tertiary-fixed: #261a00;
  
  /* Surface Layers */
  --color-surface: #f7f9fb;
  --color-surface-dim: #d9dbde;
  --color-surface-bright: #ffffff;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #f2f4f6;
  --color-surface-container: #eceef0;
  --color-surface-container-high: #e6e8ea;
  --color-surface-container-highest: #e0e2e5;
  
  /* Text Colors */
  --color-on-surface: #191c1e;
  --color-on-surface-variant: #414752;
  --color-outline: #717783;
  --color-outline-variant: #c1c6d4;
  
  /* State Colors */
  --color-error: #ba1a1a;
  --color-success: #006d3c;
  --color-warning: #8b5000;
  --color-info: #005cbb;
  
  /* ========================================
     TYPOGRAPHY
     ======================================== */
  
  /* Font Families */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-headline: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  --leading-loose: 2;
  
  /* ========================================
     SPACING SCALE
     ======================================== */
  
  --space-0: 0;
  --space-1: 0.25rem;      /* 4px */
  --space-2: 0.5rem;       /* 8px */
  --space-3: 0.75rem;      /* 12px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-8: 2rem;         /* 32px */
  --space-10: 2.5rem;      /* 40px */
  --space-12: 3rem;        /* 48px */
  --space-16: 4rem;        /* 64px */
  
  /* ========================================
     BORDER RADIUS
     ======================================== */
  
  --radius-none: 0;
  --radius-sm: 0.25rem;    /* 4px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.25rem;   /* 20px */
  --radius-full: 9999px;
  
  /* ========================================
     SHADOWS (Ambient)
     ======================================== */
  
  --shadow-none: none;
  --shadow-sm: 0px 2px 4px rgba(25, 28, 30, 0.04);
  --shadow-md: 0px 4px 12px rgba(25, 28, 30, 0.06);
  --shadow-lg: 0px 12px 32px rgba(25, 28, 30, 0.06);
  --shadow-xl: 0px 20px 48px rgba(25, 28, 30, 0.08);
  
  /* ========================================
     TRANSITIONS
     ======================================== */
  
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;
  
  /* ========================================
     Z-INDEX SCALE
     ======================================== */
  
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-modal: 1000;
  --z-toast: 2000;
  --z-tooltip: 3000;
}

/* ========================================
   BASE RESET
   ======================================== */

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--color-surface);
  color: var(--color-on-surface);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Typography */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.text-primary { color: var(--color-on-surface); }
.text-secondary { color: var(--color-on-surface-variant); }
.text-tertiary { color: var(--color-outline); }

/* Spacing */
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* Material Icons Support */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* ========================================
   CUSTOM FONTS
   ======================================== */

@font-face {
  font-family: 'UTM Avo';
  src: url('/assets/fonts/UTM AvoBold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SVN-Androgyne';
  src: url('/assets/fonts/SVN-Androgyne.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.kw-brand-name {
  font-family: 'UTM Avo', sans-serif;
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1.1;
  color: #2E83C6;
}

.kw-slogan {
  font-family: 'SVN-Androgyne', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: #ff4444;
  line-height: 1.3;
}
