/* 
 * Root CSS Variables - Single source of truth
 * All other CSS files should NOT define :root variables for these
 */

:root {
    /* Brand colors */
    --primary: #ae8cfc;
    --primary-dark: #7c3aed;
    --primary-hover: #9b7df8;
    --secondary: #ec4899;
    
    /* Status colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Accent colors (for special UI elements) */
    --accent-pink: #ff6b9d;
    --accent-orange: #ff9f43;
    --accent-green: #10b981;
    --accent-blue: #3b82f6;
    --accent-yellow: #fbbf24;
    --accent-red: #ef4444;
    
    /* Background colors */
    --bg: #0f0f0f;
    --bg-card: #1a1a1a;
    --bg-card2: var(--bg-card);
    --bg-hover: #252525;
    --bg-header: #151518;
    --bg-secondary: var(--bg-card);
    --bg-tertiary: var(--bg-hover);
    --border-color: var(--border);
    --card-bg: var(--bg-card);
    --surface-elevated: var(--bg-hover);
    --primary-color: var(--primary);
    --secondary-color: var(--secondary);
    --accent-primary: var(--primary);
    --accent-secondary: var(--secondary);
    --success-color: var(--success);
    
    /* Border & text */
    --border: #2a2a2a;
    --border2: var(--border);
    --text: #ffffff;
    --text-muted: #ebbde8;
    --text-secondary: rgba(255, 255, 255, 0.78);
    --text-primary: var(--text);
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Border radius */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-md: var(--radius);
    --radius-lg: 16px;
    --danger: var(--error);
    
    /* Mobile typography */
    --mobile-base-font: 1rem;
    --mobile-line-height: 1.6;
    
    /* Cinematic UI */
    --cinematic-voice-bg: rgba(139, 92, 246, 0.15);
    --cinematic-music-bg: rgba(236, 72, 153, 0.15);
    --cinematic-frame-bg: rgba(0, 0, 0, 0.85);
    --cinematic-control-size: 36px;
    --cinematic-slider-track: #2a2a2a;
    --cinematic-slider-fill: var(--primary);
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.2, 0, 0, 1);
    --transition-base: 0.2s cubic-bezier(0.2, 0, 0, 1);
    --transition-slow: 0.3s cubic-bezier(0.2, 0, 0, 1);

    /* Party Vote UI */
    --vote-primary: #8b5cf6;
    --vote-primary-dark: #7c3aed;
    --vote-secondary: #ec4899;
    --vote-success: #10b981;
    --vote-warning: #f59e0b;
    --vote-bg: rgba(15, 15, 15, 0.95);
    --vote-card: #1a1a1a;
    --vote-border: #2a2a2a;
    --vote-text: #ffffff;
    --vote-text-muted: #a0a0a0;
}

/* Base reset - apply everywhere */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Button reset - remove browser default grey styling */
button { background: transparent; border: none; color: inherit; font: inherit; cursor: pointer; }

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

::selection {
    background: rgba(174, 140, 252, 0.3);
    color: var(--text);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
