/* ====================================================================
   MAZE SYSTEMS - CSS Variables (UNIFIED)
   v1.0 - Janeiro 2026
   
   Este ficheiro deve ser importado PRIMEIRO em todos os HTML
   Centraliza todas as variáveis CSS do projeto
   ==================================================================== */

:root {
    /* ═══════════════════════════════════════════════════════════════
       CORES PRIMÁRIAS
       ═══════════════════════════════════════════════════════════════ */
    --primary: #FF8A3D;
    --primary-rgb: 255, 138, 61;
    --primary-dim: rgba(255, 138, 61, 0.15);
    --primary-hover: #FF9A55;
    
    --secondary: #E7A95F;
    --secondary-rgb: 231, 169, 95;
    
    --accent: #FF6B6B;
    --accent-rgb: 255, 107, 107;
    
    /* Metálicos */
    --gold: #DEB992;
    --copper: #E7A95F;
    --bronze-light: #DEB992;
    --bronze-dark: #E7A95F;

    /* ═══════════════════════════════════════════════════════════════
       BACKGROUNDS
       ═══════════════════════════════════════════════════════════════ */
    --bg-dark: #050504;
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #18181b;
    --bg-card: #0c0a08;
    --bg-card-alt: #111113;
    --bg-card-hover: #14110d;
    --bg-input: rgba(255, 255, 255, 0.03);
    --bg-input-focus: rgba(255, 255, 255, 0.06);

    /* ═══════════════════════════════════════════════════════════════
       TEXTO
       ═══════════════════════════════════════════════════════════════ */
    --text: #fff8f0;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-dim: #9a8a7a;
    --text-muted: #666666;

    /* ═══════════════════════════════════════════════════════════════
       STATUS / ACCENT COLORS
       ═══════════════════════════════════════════════════════════════ */
    --accent-primary: #FF8A3D;
    --accent-secondary: #E7A95F;
    --accent-success: #4caf50;
    --accent-warning: #ff9800;
    --accent-danger: #f44336;
    
    --success: #4caf50;
    --success-rgb: 76, 175, 80;
    --warning: #ff9800;
    --warning-rgb: 255, 152, 0;
    --danger: #f44336;
    --danger-rgb: 244, 67, 54;
    --info: #2196f3;
    --info-rgb: 33, 150, 243;

    /* ═══════════════════════════════════════════════════════════════
       BORDAS
       ═══════════════════════════════════════════════════════════════ */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-stroke: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(255, 138, 61, 0.5);
    --border-hover: rgba(255, 138, 61, 0.3);

    /* ═══════════════════════════════════════════════════════════════
       GRADIENTES
       ═══════════════════════════════════════════════════════════════ */
    --gradient-primary: linear-gradient(135deg, #FF8A3D 0%, #E7A95F 50%, #FF6B6B 100%);
    --gradient-accent: linear-gradient(135deg, #FF6B6B 0%, #FF8A3D 50%, #DEB992 100%);
    --gradient-gold: linear-gradient(135deg, #DEB992 0%, #E7A95F 50%, #FF8A3D 100%);
    --gradient-glow: linear-gradient(135deg, rgba(255, 138, 61, 0.15) 0%, rgba(231, 169, 95, 0.05) 100%);
    --gradient-dark: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-primary) 100%);

    /* ═══════════════════════════════════════════════════════════════
       SOMBRAS
       ═══════════════════════════════════════════════════════════════ */
    --glow-primary: 0 0 40px rgba(255, 138, 61, 0.5);
    --glow-accent: 0 0 40px rgba(255, 107, 107, 0.5);
    --glow-subtle: 0 0 60px rgba(255, 138, 61, 0.15);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 25px rgba(255, 138, 61, 0.2);
    --shadow-glow: 0 0 60px rgba(255, 138, 61, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

    /* ═══════════════════════════════════════════════════════════════
       ESPAÇAMENTO
       ═══════════════════════════════════════════════════════════════ */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* ═══════════════════════════════════════════════════════════════
       BORDER RADIUS
       ═══════════════════════════════════════════════════════════════ */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
    --radius-circle: 50%;

    /* ═══════════════════════════════════════════════════════════════
       LAYOUT
       ═══════════════════════════════════════════════════════════════ */
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --nav-height: 70px;
    --main-padding: 2rem;
    --card-padding: 1.5rem;
    --grid-gap: 1.5rem;
    --container-max: 1400px;

    /* ═══════════════════════════════════════════════════════════════
       TIPOGRAFIA
       ═══════════════════════════════════════════════════════════════ */
    --font-primary: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Orbitron', var(--font-primary);
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* ═══════════════════════════════════════════════════════════════
       TRANSIÇÕES
       ═══════════════════════════════════════════════════════════════ */
    --transition-fast: all 0.15s ease;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* ═══════════════════════════════════════════════════════════════
       Z-INDEX SCALE
       ═══════════════════════════════════════════════════════════════ */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
    --z-loader: 900;
    --z-top: 1000;
}

/* ═══════════════════════════════════════════════════════════════════
   REDUCED MOTION - Acessibilidade
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast: none;
        --transition: none;
        --transition-slow: none;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
