/**
 * ENIGMA-XPERIENCE - Design System
 * Sistema centralizado de variáveis, tokens e utilitários
 * Base para toda a aplicação
 */

/* ============================================
   IMPORTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* ============================================
   CSS VARIABLES - ROOT
   ============================================ */
:root {
    /* ============================================
       CORES PRIMÁRIAS - NEON VIBRANTE
       ============================================ */
    --primary-neon: #00E5FF;
    --secondary-neon: #FF2EC7;
    --accent-neon: #7A00FF;
    --success-neon: #00FF88;
    --warning-neon: #FFB800;
    --error-neon: #FF3366;
    
    /* Cores específicas para badges dourados */
    --gold: #FFD700;
    --gold-light: #FFA500;
    --gold-dark: #FF8C00;
    
    /* ============================================
       CORES DE FUNDO
       ============================================ */
    --bg-primary: #0A0A0A;
    --bg-secondary: #1A1A1A;
    --bg-tertiary: #2A2A2A;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-overlay: rgba(0, 0, 0, 0.85);
    
    /* ============================================
       CORES DE TEXTO
       ============================================ */
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #808080;
    --text-accent: #00E5FF;
    
    /* ============================================
       TIPOGRAFIA
       ============================================ */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Poppins', 'Space Grotesk', sans-serif;
    --font-mono: 'Courier New', 'Monaco', 'Menlo', monospace;
    
    /* ============================================
       HIERARQUIA TIPOGRÁFICA
       ============================================ */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* ============================================
       ESPAÇAMENTO MODULAR (8px Grid)
       ============================================ */
    --spacing-1: 8px;
    --spacing-2: 16px;
    --spacing-3: 24px;
    --spacing-4: 32px;
    --spacing-5: 40px;
    --spacing-6: 48px;
    --spacing-7: 56px;
    --spacing-8: 64px;
    --spacing-9: 72px;
    --spacing-10: 80px;
    --spacing-11: 88px;
    --spacing-12: 96px;
    --spacing-16: 128px;
    --spacing-20: 160px;
    --spacing-24: 192px;
    
    /* ============================================
       BORDER RADIUS
       ============================================ */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 50px;
    
    /* ============================================
       TRANSIÇÕES E ANIMAÇÕES
       ============================================ */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 600ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: all 900ms cubic-bezier(0.4, 0, 0.2, 1);
    
    --duration-fast: 200ms;
    --duration-normal: 300ms;
    --duration-slow: 600ms;
    --duration-slower: 900ms;
    
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.6, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    
    /* ============================================
       SOMBRAS
       ============================================ */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Sombras Neon */
    --shadow-neon-sm: 0 0 10px var(--primary-neon);
    --shadow-neon: 0 0 20px var(--primary-neon);
    --shadow-neon-lg: 0 0 40px var(--primary-neon);
    --shadow-neon-xl: 0 0 60px var(--primary-neon);
    
    --shadow-neon-secondary: 0 0 20px var(--secondary-neon);
    --shadow-neon-accent: 0 0 20px var(--accent-neon);
    
    /* ============================================
       GLOWS
       ============================================ */
    --glow-primary: 0 0 20px rgba(0, 229, 255, 0.5);
    --glow-primary-lg: 0 0 40px rgba(0, 229, 255, 0.6);
    --glow-secondary: 0 0 20px rgba(255, 46, 199, 0.5);
    --glow-secondary-lg: 0 0 40px rgba(255, 46, 199, 0.6);
    --glow-accent: 0 0 20px rgba(122, 0, 255, 0.5);
    --glow-accent-lg: 0 0 40px rgba(122, 0, 255, 0.6);
    --glow-success: 0 0 20px rgba(0, 255, 136, 0.5);
    --glow-warning: 0 0 20px rgba(255, 184, 0, 0.5);
    --glow-error: 0 0 20px rgba(255, 51, 102, 0.5);
    --glow-gold: 0 0 30px rgba(255, 215, 0, 0.6);
    
    /* ============================================
       Z-INDEX SCALE
       ============================================ */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    
    /* ============================================
       BREAKPOINTS
       ============================================ */
    --breakpoint-sm: 480px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

/* ============================================
   CSS RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tipografia Global para Títulos */
h1, h2, h3, h4, h5, h6,
.section-title,
.carousel-title,
.hero-title,
.platforms-title,
.info-card-title,
.card-title,
.content-card-title,
.carousel-card-title {
    font-family: var(--font-display);
    font-weight: 700;
}

/* ============================================
   SISTEMA DE BADGES - DOURADOS
   ============================================ */

/* Badge "Em Destaque" - Dourado */
.badge-featured,
.featured-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        var(--glow-gold),
        inset 0 0 15px rgba(255, 215, 0, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.badge-featured i,
.featured-badge i {
    font-size: 1rem;
}

/* Badge "Estreia" - Dourado */
.badge-premiere,
.premiere-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        var(--glow-gold),
        inset 0 0 15px rgba(255, 215, 0, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.badge-premiere i,
.premiere-badge i {
    font-size: 1rem;
}

/* Variantes de posicionamento */
.badge-featured--top-right,
.featured-badge--top-right,
.badge-premiere--top-right,
.premiere-badge--top-right {
    top: 1.5rem;
    right: 1.5rem;
    left: auto;
}

.badge-featured--top-center,
.featured-badge--top-center,
.badge-premiere--top-center,
.premiere-badge--top-center {
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
}

/* Badge inline (não absoluto) */
.badge-featured--inline,
.badge-premiere--inline {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    display: inline-flex;
    margin: 0.5rem;
}

/* ============================================
   UTILITÁRIOS
   ============================================ */

/* Container base */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Display utilities */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

/* Spacing utilities */
.mt-1 { margin-top: var(--spacing-1); }
.mt-2 { margin-top: var(--spacing-2); }
.mt-3 { margin-top: var(--spacing-3); }
.mt-4 { margin-top: var(--spacing-4); }

.mb-1 { margin-bottom: var(--spacing-1); }
.mb-2 { margin-bottom: var(--spacing-2); }
.mb-3 { margin-bottom: var(--spacing-3); }
.mb-4 { margin-bottom: var(--spacing-4); }

.p-1 { padding: var(--spacing-1); }
.p-2 { padding: var(--spacing-2); }
.p-3 { padding: var(--spacing-3); }
.p-4 { padding: var(--spacing-4); }

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 1536px) {
    .container {
        max-width: 1280px;
    }
}

@media (max-width: 1280px) {
    .container {
        max-width: 1024px;
        padding: 0 var(--spacing-3);
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 768px;
        padding: 0 var(--spacing-2);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-2);
    }
    
    .badge-featured,
    .featured-badge,
    .badge-premiere,
    .premiere-badge {
        padding: 0.5rem 1rem;
        font-size: var(--text-xs);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-1);
    }
    
    .badge-featured,
    .featured-badge,
    .badge-premiere,
    .premiere-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid var(--primary-neon);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .badge-featured,
    .featured-badge,
    .badge-premiere,
    .premiere-badge {
        background: #FFD700 !important;
        color: #000 !important;
        box-shadow: none !important;
    }
}


