﻿/* ==========================================================================
   token.css
   Design System - Core Variables & Tokens
   Single source of truth for colors, spacing, typography, and effects
   ========================================================================== */

:root {
    /* ========== Color Palette ========== */
    /* Primary Colors */
    --brand-primary: #002D62;
    --brand-primary-dark: #001a3a;
    --brand-primary-light: #1a4d8f;
    /* Accent Colors */
    --brand-accent: #0096FF;
    --brand-accent-hover: #0077CC;
    --brand-accent-light: #4DBFFF;
    /* Neutral Scale */
    --text: #0f172a;
    --text-secondary: #475569;
    --muted: #64748b;
    --muted-light: #94a3b8;
    /* Surfaces */
    --bg: #f5f7fb;
    --bg-secondary: #f8fafc;
    --surface: #ffffff;
    /* Borders */
    --border: #e2e8f0;
    --border-soft: 1px solid rgba(2, 8, 23, 0.08);
    --border-subtle: 1px solid rgba(2, 8, 23, 0.04);
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    /* ========== Shadows ========== */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    /* Card Shadows */
    --shadow-card: 0 12px 30px rgba(2, 8, 23, 0.08);
    --shadow-hover: 0 18px 45px rgba(2, 8, 23, 0.12);
    /* ========== Radius ========== */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 999px;
    /* ========== Typography ========== */
    /* Font Families */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --font-mono: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    /* 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 */
    --text-5xl: 3rem; /* 48px */
    /* Font Weights */
    --font-thin: 100;
    --font-extralight: 200;
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    /* Letter Spacing */
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    /* ========== Spacing ========== */
    --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 */
    --space-20: 5rem; /* 80px */
    --space-24: 6rem; /* 96px */
    /* ========== Transitions ========== */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    /* ========== Layout ========== */
    /* Container */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1400px;
    /* Header */
    --header-h: 90px;
    --header-h-scrolled: 70px;
    --header-bg: rgba(255, 255, 255, 0.92);
    --header-primary: var(--brand-primary);
    --header-accent: var(--brand-accent);
    --header-dark: var(--text);
    --header-muted: var(--muted);
    /* Footer */
    --footer-bg: #f8f9fa;
    --footer-border: #e2e8f0;
    --footer-primary: var(--brand-primary);
    --footer-accent: var(--brand-accent);
    --footer-text: var(--text);
    --footer-muted: var(--muted);
    /* ========== Breakpoints (for reference in media queries) ========== */
    /* Use in media queries as: @media (max-width: 767px) */
    /* xs: 0px */
    /* sm: 640px */
    /* md: 768px */
    /* lg: 1024px */
    /* xl: 1280px */
    /* 2xl: 1400px */
    /* ========== Z-Index Scale ========== */
    --z-hide: -1;
    --z-auto: auto;
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-notification: 800;
    --z-header: 1000;
    --z-mobile-menu: 1100;
    --z-side-panel: 1200;
    /* ========== Opacity Scale ========== */
    --opacity-0: 0;
    --opacity-5: 0.05;
    --opacity-10: 0.1;
    --opacity-20: 0.2;
    --opacity-25: 0.25;
    --opacity-30: 0.3;
    --opacity-40: 0.4;
    --opacity-50: 0.5;
    --opacity-60: 0.6;
    --opacity-70: 0.7;
    --opacity-75: 0.75;
    --opacity-80: 0.8;
    --opacity-90: 0.9;
    --opacity-95: 0.95;
    --opacity-100: 1;
}

/* ========== Reduced Motion Support ========== */
@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast: 0ms;
        --transition-base: 0ms;
        --transition-slow: 0ms;
    }
}

/* ========== Dark Mode Support (optional) ========== */
/* Uncomment and customize if dark mode is needed */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --text: #f1f5f9;
        --text-secondary: #cbd5e1;
        --muted: #94a3b8;
        --muted-light: #64748b;
        
        --bg: #0f172a;
        --bg-secondary: #1a2744;
        --surface: #1f2937;
        
        --border: #334155;
    }
}
*/
