/* ===== CSS VARIABLES ===== */
:root {
    /* ===== Layout ===== */
    --header-height: 3rem;
    --max-width: 1200px;
    --container-margin: 1.5rem;
    
    /* ===== Colors ===== */
    --hue-color: 230;
    
    /* Primary Colors */
    --first-color: hsl(var(--hue-color), 69%, 61%);
    --first-color-second: hsl(var(--hue-color), 69%, 61%);
    --first-color-alt: hsl(var(--hue-color), 57%, 53%);
    --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
    --first-color-light: hsl(var(--hue-color), 69%, 71%);
    
    /* Accent Colors */
    --accent-color: #FFD700;
    --accent-color-alt: #FFA500;
    
    /* Text Colors */
    --title-color: hsl(var(--hue-color), 8%, 15%);
    --text-color: hsl(var(--hue-color), 8%, 45%);
    --text-color-light: hsl(var(--hue-color), 8%, 65%);
    --text-color-lighter: hsl(var(--hue-color), 8%, 75%);
    
    /* Background Colors */
    --body-color: hsl(var(--hue-color), 60%, 99%);
    --container-color: #fff;
    --input-color: hsl(var(--hue-color), 70%, 96%);
    
    /* Border Colors */
    --border-color: hsl(var(--hue-color), 20%, 90%);
    --border-color-alt: hsl(var(--hue-color), 20%, 85%);
    
    /* Scroll Colors */
    --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 80%);
    
    /* Shadow Colors */
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    
    /* Status Colors */
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    /* ===== Typography ===== */
    --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --heading-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Font Sizes */
    --biggest-font-size: 2.5rem;
    --big-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
    --tiny-font-size: 0.625rem;
    
    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
    --font-extra-bold: 800;
    
    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;
    --line-height-loose: 1.8;
    
    /* ===== Spacing ===== */
    --mb-0-25: 0.25rem;
    --mb-0-5: 0.5rem;
    --mb-0-75: 0.75rem;
    --mb-1: 1rem;
    --mb-1-25: 1.25rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;
    --mb-3-5: 3.5rem;
    --mb-4: 4rem;
    
    /* ===== Border Radius ===== */
    --border-radius-sm: 0.25rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --border-radius-full: 50%;
    
    /* ===== Transitions ===== */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* ===== Z-Index ===== */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
    --z-overlay: 1001;
    
    /* ===== Breakpoints ===== */
    --breakpoint-xs: 320px;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;
}

/* ===== RESPONSIVE FONT SIZES ===== */
@media screen and (min-width: 968px) {
    :root {
        --biggest-font-size: 4rem;
        --big-font-size: 3rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: 0.875rem;
        --smaller-font-size: 0.813rem;
        --tiny-font-size: 0.75rem;
    }
}

/* ===== DARK THEME VARIABLES ===== */
[data-theme="dark"] {
    /* Colors */
    --first-color: hsl(var(--hue-color), 69%, 61%);
    --first-color-second: hsl(var(--hue-color), 30%, 8%);
    --first-color-alt: hsl(var(--hue-color), 57%, 53%);
    --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
    
    /* Text Colors */
    --title-color: hsl(var(--hue-color), 8%, 95%);
    --text-color: hsl(var(--hue-color), 8%, 75%);
    --text-color-light: hsl(var(--hue-color), 8%, 65%);
    --text-color-lighter: hsl(var(--hue-color), 8%, 55%);
    
    /* Background Colors */
    --body-color: hsl(var(--hue-color), 28%, 12%);
    --container-color: hsl(var(--hue-color), 29%, 16%);
    --input-color: hsl(var(--hue-color), 29%, 16%);
    
    /* Border Colors */
    --border-color: hsl(var(--hue-color), 20%, 25%);
    --border-color-alt: hsl(var(--hue-color), 20%, 30%);
    
    /* Scroll Colors */
    --scroll-bar-color: hsl(var(--hue-color), 12%, 48%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 36%);
    
    /* Shadow Colors */
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --title-color: #000;
        --text-color: #333;
        --border-color: #666;
        --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.4);
        --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.5);
    }
    
    [data-theme="dark"] {
        --title-color: #fff;
        --text-color: #e5e5e5;
        --border-color: #999;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast: 0s;
        --transition-normal: 0s;
        --transition-slow: 0s;
        --transition-bounce: 0s;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    :root {
        --body-color: #fff;
        --container-color: #fff;
        --title-color: #000;
        --text-color: #333;
        --border-color: #ccc;
        --shadow-light: none;
        --shadow-medium: none;
        --shadow-heavy: none;
    }
}