/**
 * Variables CSS - Kayros Sorteos Perú
 * Dark Mode Premium con Gold Accents
 * Inspirado en diseño premium de alta conversión
 */

:root {
    /* ============================================
       COLORES PRINCIPALES - DARK THEME
       ============================================ */

    /* Backgrounds Oscuros */
    --bg-primary: #0F0F0F;          /* Fondo principal - Negro profundo */
    --bg-secondary: #1A1A1A;        /* Fondo secundario - Negro suave */
    --bg-tertiary: #252525;         /* Fondo terciario - Gris oscuro */
    --bg-surface: #2A2A2A;          /* Superficies elevadas */
    --bg-elevated: #303030;         /* Superficies más elevadas */

    /* Gold Accents - Colores Dorados */
    --gold-primary: #F2B138;        /* Oro principal - Brillante */
    --gold-secondary: #DAA520;      /* Oro secundario - Goldenrod */
    --gold-dark: #B8860B;           /* Oro oscuro - DarkGoldenrod */
    --gold-light: #FFD700;          /* Oro claro - Gold */
    --gold-bright: #FFC107;         /* Oro brillante - Amber */

    /* Gold Gradients */
    --gradient-gold: linear-gradient(135deg, #F2B138 0%, #FFD700 100%);
    --gradient-gold-dark: linear-gradient(135deg, #DAA520 0%, #F2B138 100%);
    --gradient-gold-shine: linear-gradient(135deg, #FFD700 0%, #FFF8DC 50%, #FFD700 100%);

    /* Glow Effects - Efectos de brillo */
    --glow-gold: 0 0 30px rgba(242, 177, 56, 0.6);
    --glow-gold-strong: 0 0 50px rgba(242, 177, 56, 0.8), 0 0 100px rgba(255, 215, 0, 0.4);
    --glow-white: 0 0 20px rgba(255, 255, 255, 0.3);

    /* Text Colors - Colores de texto */
    --text-primary: #FFFFFF;        /* Blanco puro */
    --text-secondary: #B0B0B0;      /* Gris claro */
    --text-tertiary: #808080;       /* Gris medio */
    --text-muted: #606060;          /* Gris apagado */
    --text-gold: #F2B138;           /* Texto dorado */

    /* ============================================
       COLORES DE MARCA - KAYROS
       ============================================ */
    --kayros-red: #E31C25;
    --kayros-red-dark: #C41820;
    --kayros-red-light: #FF3B42;

    --kayros-blue: #1E3A5F;
    --kayros-blue-dark: #152B47;
    --kayros-blue-light: #2A5080;

    /* ============================================
       COLORES DE ESTADO
       ============================================ */
    --success: #10B981;
    --success-dark: #059669;
    --success-light: #34D399;
    --success-bg: rgba(16, 185, 129, 0.1);

    --warning: #F59E0B;
    --warning-dark: #D97706;
    --warning-light: #FBBF24;
    --warning-bg: rgba(245, 158, 11, 0.1);

    --error: #EF4444;
    --error-dark: #DC2626;
    --error-light: #F87171;
    --error-bg: rgba(239, 68, 68, 0.1);

    --info: #3B82F6;
    --info-dark: #2563EB;
    --info-light: #60A5FA;
    --info-bg: rgba(59, 130, 246, 0.1);

    /* ============================================
       GLASSMORPHISM - Dark Mode
       ============================================ */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-strong: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-gold: rgba(242, 177, 56, 0.3);
    --glass-shadow: rgba(0, 0, 0, 0.5);
    --glass-blur: 20px;

    /* Gold Glass */
    --glass-gold-bg: rgba(242, 177, 56, 0.1);
    --glass-gold-border: rgba(242, 177, 56, 0.3);

    /* ============================================
       SOMBRAS - Dark Mode
       ============================================ */
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px 0 rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px 0 rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 24px 0 rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 20px 40px 0 rgba(0, 0, 0, 0.7);
    --shadow-3xl: 0 30px 60px 0 rgba(0, 0, 0, 0.8);

    /* Sombras de color */
    --shadow-gold: 0 8px 32px rgba(242, 177, 56, 0.3);
    --shadow-gold-strong: 0 12px 48px rgba(242, 177, 56, 0.5);
    --shadow-red: 0 8px 32px rgba(227, 28, 37, 0.3);
    --shadow-blue: 0 8px 32px rgba(30, 58, 95, 0.3);

    /* Inner Shadows */
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.6);

    /* ============================================
       GRADIENTES
       ============================================ */
    --gradient-primary: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    --gradient-surface: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    --gradient-dark: linear-gradient(180deg, rgba(15, 15, 15, 0) 0%, rgba(15, 15, 15, 0.8) 100%);

    /* Gradientes de overlay */
    --overlay-dark: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    --overlay-gold: linear-gradient(135deg, rgba(242, 177, 56, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);

    /* ============================================
       TIPOGRAFÍA
       ============================================ */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-display: 'Space Grotesk', 'Outfit', 'Inter', sans-serif;
    --font-mono: 'SF Mono', 'Consolas', 'Monaco', monospace;

    /* Font Sizes */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 3rem;        /* 48px */
    --font-size-6xl: 3.75rem;     /* 60px */
    --font-size-7xl: 4.5rem;      /* 72px */
    --font-size-8xl: 6rem;        /* 96px */

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;

    /* Letter Spacing */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
    --letter-spacing-widest: 0.1em;

    /* ============================================
       ESPACIADO
       ============================================ */
    --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-7: 1.75rem;   /* 28px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-14: 3.5rem;   /* 56px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    --space-28: 7rem;     /* 112px */
    --space-32: 8rem;     /* 128px */

    /* ============================================
       BORDER RADIUS
       ============================================ */
    --radius-none: 0;
    --radius-sm: 0.375rem;    /* 6px */
    --radius-md: 0.5rem;      /* 8px */
    --radius-lg: 0.75rem;     /* 12px */
    --radius-xl: 1rem;        /* 16px */
    --radius-2xl: 1.5rem;     /* 24px */
    --radius-3xl: 2rem;       /* 32px */
    --radius-full: 9999px;

    /* ============================================
       BORDERS
       ============================================ */
    --border-width-thin: 1px;
    --border-width-base: 2px;
    --border-width-thick: 3px;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-hover: rgba(255, 255, 255, 0.2);
    --border-color-gold: rgba(242, 177, 56, 0.3);
    --border-color-gold-hover: rgba(242, 177, 56, 0.5);

    /* ============================================
       TRANSICIONES
       ============================================ */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 700ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Easing Functions */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* ============================================
       Z-INDEX
       ============================================ */
    --z-base: 0;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-max: 9999;

    /* ============================================
       BREAKPOINTS (para JavaScript)
       ============================================ */
    --breakpoint-xs: 375px;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-2xl: 1400px;
    --breakpoint-3xl: 1600px;

    /* ============================================
       CONTENEDOR
       ============================================ */
    --container-max-width: 1280px;
    --container-padding: var(--space-4);

    /* ============================================
       BACKDROP BLUR
       ============================================ */
    --backdrop-blur-sm: blur(4px);
    --backdrop-blur-md: blur(12px);
    --backdrop-blur-lg: blur(20px);
    --backdrop-blur-xl: blur(32px);

    /* ============================================
       ANIMACIONES
       ============================================ */
    --animation-duration-fast: 200ms;
    --animation-duration-base: 400ms;
    --animation-duration-slow: 600ms;

    /* ============================================
       FILTROS
       ============================================ */
    --brightness-hover: brightness(1.1);
    --brightness-active: brightness(0.9);

    /* ============================================
       MISCELÁNEOS
       ============================================ */
    --opacity-disabled: 0.5;
    --opacity-hover: 0.8;
    --opacity-active: 0.9;

    /* Dividers */
    --divider-color: rgba(255, 255, 255, 0.06);
    --divider-color-strong: rgba(255, 255, 255, 0.1);
}

/* ============================================
   RESPONSIVE OVERRIDES (Mobile)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --font-size-6xl: 2.5rem;    /* 40px en mobile */
        --font-size-7xl: 3rem;      /* 48px en mobile */
        --font-size-8xl: 4rem;      /* 64px en mobile */

        --container-padding: var(--space-3);
        --space-20: 3rem;           /* 48px en mobile */
        --space-24: 4rem;           /* 64px en mobile */
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    :root {
        --bg-primary: #FFFFFF;
        --bg-secondary: #F5F5F5;
        --text-primary: #000000;
        --text-secondary: #333333;
    }
}
