/* ========================================
   UNIFIED CSS VARIABLES - All Projects
   Single source of truth for design tokens
   ======================================== */

:root {
    /* ===== PRIMARY COLOR PALETTE ===== */
    /* Crimson/Primary Colors */
    --primary: #DC143C;
    --primary-hover: #B8112E;
    --primary-dark: #9A0D26;
    --primary-light: rgba(220, 20, 60, 0.08);

    /* ===== ANTHROPIC BRAND COLORS ===== */
    --anthropic-beige: #F3F1EB;
    --anthropic-warm-white: #FEFCF8;
    --anthropic-dark: #1A1A1A;
    --anthropic-medium: #6C757D;
    --anthropic-light-gray: #E9ECEF;

    /* ===== SEMANTIC COLORS ===== */
    --success: #28A745;
    --success-light: #D4EDDA;
    --warning: #FFC107;
    --warning-light: #FFF3CD;
    --danger: #DC143C;
    --danger-light: #F8D7DA;
    --info: #60A5FA;
    --info-light: #D1E7FD;

    /* ===== ACCENT COLORS ===== */
    --purple: #7C3AED;
    --pink: #EC4899;
    --orange: #F59E0B;
    --blue: #2563EB;
    --green: #059669;

    /* ===== SECONDARY COLORS ===== */
    --secondary: #2C3E50;

    /* ===== TEXT COLORS ===== */
    --text-dark: #1A1A1A;
    --text-medium: #6C757D;
    --text-light: #9CA3AF;
    --text-white: #FFFFFF;

    /* ===== BACKGROUND COLORS ===== */
    --bg-primary: #FEFCF8;
    --bg-secondary: #F3F1EB;
    --bg-white: #FFFFFF;
    --bg-dark: #1A1A1A;
    --bg-light: #F9FAFB;

    /* ===== BORDER COLORS ===== */
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.12);
    --border-dark: rgba(0, 0, 0, 0.2);

    /* ===== SHADOWS ===== */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 40px 60px -15px rgba(0, 0, 0, 0.3);

    /* Primary Color Shadows */
    --shadow-primary: 0 4px 12px rgba(220, 20, 60, 0.25);
    --shadow-primary-lg: 0 8px 24px rgba(220, 20, 60, 0.35);
    --shadow-hover: 0 12px 40px rgba(220, 20, 60, 0.15);

    /* ===== BORDER RADIUS ===== */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* ===== SPACING ===== */
    --space-xs: 0.25rem;    /* 4px */
    --space-sm: 0.5rem;     /* 8px */
    --space-md: 1rem;       /* 16px */
    --space-lg: 1.5rem;     /* 24px */
    --space-xl: 2rem;       /* 32px */
    --space-2xl: 3rem;      /* 48px */
    --space-3xl: 4rem;      /* 64px */

    /* ===== TRANSITIONS ===== */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Easing Functions */
    --ease-in: cubic-bezier(0.4, 1, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* ===== TYPOGRAPHY ===== */
    /* Font Families */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
    --font-serif: 'Computer Modern', 'Latin Modern Math', 'Times New Roman', 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 */
    --text-5xl: 3rem;       /* 48px */
    --text-6xl: 3.75rem;    /* 60px */

    /* Font Weights */
    --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.2;
    --leading-normal: 1.6;
    --leading-relaxed: 1.8;

    /* Letter Spacing */
    --tracking-tight: -0.03em;
    --tracking-normal: 0;
    --tracking-wide: 0.05em;
    --tracking-wider: 0.08em;

    /* ===== Z-INDEX SCALE ===== */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;

    /* ===== BREAKPOINTS ===== */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;

    /* ===== CONTAINER MAX WIDTHS ===== */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
    --container-2xl: 1400px;
}

/* ========================================
   BACKWARDS COMPATIBILITY ALIASES
   Legacy variable names for existing code
   ======================================== */

:root {
    /* Crimson aliases for legacy code */
    --crimson: var(--primary);
    --crimson-hover: var(--primary-hover);
    --crimson-dark: var(--primary-dark);
    --crimson-light: var(--primary-light);

    /* Border radius aliases */
    --border-radius: var(--radius);
    --border-radius-sm: var(--radius-sm);
    --border-radius-lg: var(--radius-lg);

    /* Shadow aliases */
    --shadow-light: var(--shadow-sm);
    --shadow-medium: var(--shadow-md);
    --shadow-heavy: var(--shadow-lg);
}

/* ========================================
   DARK MODE SUPPORT (Optional)
   Uncomment to enable dark mode
   ======================================== */

/*
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #F3F1EB;
        --text-medium: #9CA3AF;
        --text-light: #6C757D;
        --bg-primary: #1A1A1A;
        --bg-secondary: #2D2D2D;
        --bg-white: #1E1E1E;
        --border-light: rgba(255, 255, 255, 0.1);
        --border-medium: rgba(255, 255, 255, 0.2);
    }
}
*/

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    :root {
        --shadow-xs: none;
        --shadow-sm: none;
        --shadow: none;
        --shadow-md: none;
        --shadow-lg: none;
        --shadow-xl: none;
        --shadow-2xl: none;
    }
}
