/**
 * PHASE 1 - Design Tokens
 * Single source of truth for all design values across CalNest platform
 */

:root {
    /* ============================================
       SURFACE COLORS
       ============================================ */
    --surface-page: #f5f7fb;
    --surface-section: #ffffff;
    --surface-card: #f8fafc;
    
    /* ============================================
       ELEVATION (SHADOWS)
       ============================================ */
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 8px 24px rgba(0, 0, 0, 0.16);
    
    /* ============================================
       BORDERS
       ============================================ */
    --radius-card: 16px;
    --radius-button: 10px;
    --radius-input: 8px;
    --border-width: 1px;
    --border-color: rgba(0, 0, 0, 0.08);
    
    /* ============================================
       ACCENT COLORS
       ============================================ */
    --accent-primary: #2962FF;
    --accent-primary-hover: #1A4ED8;
    --accent-secondary: #00C9A7;
    --accent-secondary-hover: #00A88A;
    
    /* Domain-specific accent colors */
    --accent-finance: #2962FF;
    --accent-math: #6366F1;
    --accent-health: #10B981;
    --accent-physics: #F59E0B;
    --accent-chemistry: #8B5CF6;
    --accent-utilities: #06B6D4;
    
    /* ============================================
       TYPOGRAPHY SCALE
       ============================================ */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --text-size-xs: 0.75rem;    /* 12px */
    --text-size-sm: 0.875rem;  /* 14px */
    --text-size-base: 1rem;     /* 16px */
    --text-size-lg: 1.125rem;   /* 18px */
    --text-size-xl: 1.25rem;    /* 20px */
    --text-size-2xl: 1.5rem;   /* 24px */
    --text-size-3xl: 1.875rem; /* 30px */
    --text-size-4xl: 2.25rem;   /* 36px */
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* ============================================
       SPACING
       ============================================ */
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 1rem;      /* 16px */
    --spacing-md: 1.5rem;    /* 24px */
    --spacing-lg: 2rem;      /* 32px */
    --spacing-xl: 3rem;      /* 48px */
    --spacing-2xl: 4rem;     /* 64px */
    
    /* ============================================
       TRANSITIONS
       ============================================ */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   DARK MODE TOKENS
   ============================================ */
[data-theme="dark"] {
    --surface-page: #0E1117;
    --surface-section: #161B22;
    --surface-card: #161B22;
    
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 16px rgba(96, 165, 250, 0.2);
    --shadow-strong: 0 8px 24px rgba(96, 165, 250, 0.3);
    
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Accent colors remain the same in dark mode */
    /* Typography and spacing remain the same */
}

/* ============================================
   BASE APPLICATIONS
   ============================================ */
body {
    background-color: var(--surface-page);
    font-family: var(--font-body);
    font-size: var(--text-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-color, #1B1B1B);
}

main {
    background-color: var(--surface-page);
}

[data-theme="dark"] body,
[data-theme="dark"] main {
    background-color: var(--surface-page);
    color: var(--text-color, #E6E8EB);
}

