/**
 * GO10K v2 Design System
 * Centralized design tokens - Dark theme
 *
 * @package GO10K
 * @version 2.0.0
 */

:root {
    /* ===== COLORS - DARK THEME ===== */

    /* Background */
    --g10k-bg: #0a0a0f;
    --g10k-bg-gradient: linear-gradient(180deg, rgba(157,78,221,0.08) 0%, transparent 40%), #0a0a0f;

    /* Cards & Surfaces */
    --g10k-card: rgba(255,255,255,0.06);
    --g10k-card-hover: rgba(255,255,255,0.09);
    --g10k-card-elevated: rgba(255,255,255,0.08);

    /* Borders */
    --g10k-border: rgba(255,255,255,0.12);
    --g10k-border-hover: rgba(255,255,255,0.18);
    --g10k-border-focus: rgba(157,78,221,0.5);

    /* Text */
    --g10k-text: rgba(255,255,255,0.92);
    --g10k-text-muted: rgba(255,255,255,0.7);
    --g10k-text-subtle: rgba(255,255,255,0.5);

    /* Brand - Purple */
    --g10k-accent: #9D4EDD;
    --g10k-accent-hover: #7c3aed;
    --g10k-accent-light: #c084fc;
    --g10k-accent-glow: rgba(157,78,221,0.25);

    /* Brand - Yellow (Coupons/Gamification) */
    --g10k-yellow: #ffd600;
    --g10k-yellow-hover: #ffb300;
    --g10k-yellow-glow: rgba(255,214,0,0.2);

    /* Status Colors */
    --g10k-success: #22c55e;
    --g10k-success-bg: rgba(34,197,94,0.1);
    --g10k-error: #ef4444;
    --g10k-error-bg: rgba(239,68,68,0.1);
    --g10k-warning: #fbbf24;
    --g10k-warning-bg: rgba(251,191,36,0.1);

    /* ===== GRADIENTS ===== */
    --g10k-gradient-purple: linear-gradient(135deg, #9D4EDD, #7c3aed);
    --g10k-gradient-yellow: linear-gradient(135deg, rgba(255,225,80,1), rgba(255,214,0,1));
    --g10k-gradient-card: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));

    /* ===== SPACING ===== */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;

    /* ===== BORDER RADIUS ===== */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 999px;

    /* ===== TYPOGRAPHY ===== */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Segoe UI Mono', monospace;

    --text-xs: 11px;
    --text-sm: 13px;
    --text-base: 15px;
    --text-lg: 17px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 32px;

    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-black: 900;

    /* ===== SHADOWS ===== */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.2);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.25);
    --shadow-xl: 0 14px 40px rgba(0,0,0,0.3);

    --shadow-purple: 0 8px 20px rgba(157,78,221,0.25);
    --shadow-purple-lg: 0 14px 30px rgba(157,78,221,0.35);
    --shadow-yellow: 0 8px 24px rgba(255,214,0,0.25);
    --shadow-yellow-lg: 0 14px 30px rgba(255,214,0,0.35);

    /* ===== TOUCH TARGETS ===== */
    --touch-min: 44px;
    --touch-comfortable: 48px;

    /* ===== TRANSITIONS ===== */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    --transition-spring: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);

    /* ===== Z-INDEX SCALE ===== */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-toast: 600;
}

/* ===== BASE STYLES ===== */
.g10k-dark {
    background: var(--g10k-bg-gradient);
    color: var(--g10k-text);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== ANIMATIONS ===== */

/* Pulse for live indicators */
@keyframes g10k-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* Glow pulse for promos */
@keyframes g10k-glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--g10k-yellow-glow); }
    50% { box-shadow: 0 0 20px 5px var(--g10k-yellow-glow); }
}

/* Shine effect for coupons */
@keyframes g10k-shine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Fade in */
@keyframes g10k-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slide up */
@keyframes g10k-slide-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scale in */
@keyframes g10k-scale-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== FOCUS STYLES ===== */
.g10k-focus-ring:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--g10k-accent-glow), 0 0 0 1px var(--g10k-accent);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== SCROLLBAR (WebKit) ===== */
.g10k-dark::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.g10k-dark::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
}

.g10k-dark::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
}

.g10k-dark::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.15);
}
