/**
 * Holiday Draw Names - Design Tokens
 * Modern Festive Design System v2.0
 */

:root {
    /* ================================
       COLOR SYSTEM - Desaturated Festive
       ================================ */
    
    /* Primary Colors */
    --primary-red: #b71c3a;
    --primary-green: #0d6630;
    --accent-gold: #d4a574;
    
    /* Neutral Palette */
    --neutral-50: #fafaf9;
    --neutral-100: #f5f5f4;
    --neutral-200: #e7e5e4;
    --neutral-300: #d6d3d1;
    --neutral-400: #a8a29e;
    --neutral-500: #78716c;
    --neutral-600: #57534e;
    --neutral-700: #44403c;
    --neutral-800: #292524;
    --neutral-900: #1c1917;
    
    /* Semantic Colors */
    --success: #16a34a;
    --warning: #ea580c;
    --error: #dc2626;
    --info: #2563eb;
    
    /* Festive Light Backgrounds */
    --festive-light-red: #fef2f2;
    --festive-light-green: #f0fdf4;
    --festive-light-gold: #fef3c7;
    
    /* Glassmorphism */
    --glass-white: rgba(255, 255, 255, 0.9);
    --glass-white-light: rgba(255, 255, 255, 0.7);
    
    /* Legacy Support (for backward compatibility) */
    --red: var(--primary-red);
    --green: var(--primary-green);
    --gold: var(--accent-gold);
    --primary-red-legacy: #c41e3a;
    --primary-green-legacy: #0f7c3a;
    
    /* ================================
       TYPOGRAPHY
       ================================ */
    
    /* Font Families */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --font-display: 'Mountains of Christmas', cursive;
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* 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 */
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    
    /* ================================
       SPACING (8px Grid)
       ================================ */
    
    --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 */
    
    /* ================================
       SHADOWS
       ================================ */
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Colored Shadows */
    --shadow-red: 0 8px 16px rgba(183, 28, 58, 0.25);
    --shadow-green: 0 8px 16px rgba(13, 102, 48, 0.25);
    --shadow-gold: 0 8px 16px rgba(212, 165, 116, 0.25);
    
    /* ================================
       BORDER RADIUS
       ================================ */
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* ================================
       TRANSITIONS
       ================================ */
    
    /* Easing Curves */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-snap: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Durations */
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 350ms;
    
    /* ================================
       GRADIENTS
       ================================ */
    
    --gradient-festive: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-red) 100%);
    --gradient-glass: linear-gradient(135deg, 
                      rgba(255,255,255,0.95) 0%, 
                      rgba(255,255,255,0.85) 100%);
    --gradient-red: linear-gradient(135deg, var(--primary-red) 0%, #9a1530 100%);
    --gradient-green: linear-gradient(135deg, var(--primary-green) 0%, #0a5028 100%);
    --gradient-gold: linear-gradient(135deg, var(--accent-gold) 0%, #c49563 100%);
    
    /* ================================
       Z-INDEX SCALE
       ================================ */
    
    --z-base: 1;
    --z-dropdown: 1000;
    --z-sticky: 1100;
    --z-modal-backdrop: 1200;
    --z-modal: 1300;
    --z-toast: 10000;
    --z-tooltip: 10001;
}

/* ================================
   DARK MODE
   ================================ */

@media (prefers-color-scheme: dark) {
    :root {
        --bg-dark: #1a2e1a;
        --surface-dark: #243324;
        --text-dark: #f5f5f4;
        
        --primary-red: #ef4444;
        --primary-green: #22c55e;
        --accent-gold: #fbbf24;
    }
}

[data-theme="dark"] {
    --bg-dark: #1a2e1a;
    --surface-dark: #243324;
    --text-dark: #f5f5f4;
    --primary-red: #ef4444;
    --primary-green: #22c55e;
    --accent-gold: #fbbf24;
}

