/* ==========================================================================
   SISTEMA CSS ORGANIZADO - VARIÁVEIS E BASE
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variáveis CSS (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* === CORES === */
    /* Cores Base */
    --cor-fundo: #0D1B2A;
    --cor-superficie: #172A3A;
    --cor-borda: #2a3f52;
    
    /* Cores de Texto */
    --cor-texto: #E0E7E9;
    --cor-texto-secundario: #94A3B8;
    
    /* Cores Funcionais */
    --cor-primaria: #0077B6;
    --cor-acento: #FFC300;
    --cor-sucesso: #2ECC71;
    --cor-erro: #E74C3C;
    --cor-aviso: #F39C12;
    
    /* Cores Especiais */
    --cor-chamas: linear-gradient(90deg, #F39C12, #E74C3C);
    --cor-gold: #FFD700;
    --cor-silver: #C0C0C0;
    --cor-bronze: #CD7F32;
    
    /* === TIPOGRAFIA === */
    --font-principal: 'Inter', sans-serif;
    --font-size-xs: 0.8rem;
    --font-size-sm: 0.9rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.1rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.75rem;
    --font-size-4xl: 2rem;
    --font-size-5xl: 2.5rem;
    --font-size-6xl: 3rem;
    
    /* === ESPAÇAMENTO === */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
    
    /* === BORDAS === */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-full: 50%;
    
    /* === SOMBRAS === */
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.2);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.3);
    --shadow-xl: 0 10px 30px rgba(0,0,0,0.2);
    
    /* === ANIMAÇÕES === */
    --duration-fast: 150ms;
    --duration-medium: 300ms;
    --duration-slow: 500ms;
    --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: ease-in-out;
    
    /* === Z-INDEX === */
    --z-modal: 1050;
    --z-tooltip: 100;
    --z-dropdown: 50;
}

/* --------------------------------------------------------------------------
   2. Reset e Estilos Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-principal);
    font-size: var(--font-size-base);
    line-height: 1.6;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    padding-top: 115px; 
    
}

/* --------------------------------------------------------------------------
   3. Tipografia Base
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    color: #FFF;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: var(--font-size-6xl); margin-bottom: var(--space-sm); letter-spacing: -1px; }
h2 { font-size: var(--font-size-4xl); margin-bottom: var(--space-lg); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--cor-borda); }
h3 { font-size: var(--font-size-2xl); margin-bottom: var(--space-md); color: var(--cor-primaria); }
h4 { font-size: var(--font-size-xl); margin-bottom: var(--space-md); }
h5 { font-size: var(--font-size-lg); margin-bottom: var(--space-sm); }
h6 { font-size: var(--font-size-base); margin-bottom: var(--space-sm); font-weight: 600; }

p {
    color: var(--cor-texto);
    margin-bottom: var(--space-md);
    max-width: 70ch;
}

a {
    color: var(--cor-primaria);
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

a:hover {
    color: var(--cor-acento);
}

hr {
    border: none;
    border-top: 1px solid var(--cor-borda);
    margin: var(--space-2xl) 0;
}

code {
    background-color: var(--cor-fundo);
    border: 1px solid var(--cor-borda);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    color: var(--cor-acento);
}

blockquote {
    border-left: 4px solid var(--cor-primaria);
    margin: var(--space-lg) 0;
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--cor-superficie);
    font-style: italic;
    color: var(--cor-texto);
}

/* --------------------------------------------------------------------------
   4. Utilitários e Classes Base
   -------------------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }

.text-primary { color: var(--cor-primaria); }
.text-secondary { color: var(--cor-texto-secundario); }
.text-success { color: var(--cor-sucesso); }
.text-error { color: var(--cor-erro); }
.text-warning { color: var(--cor-aviso); }
.text-accent { color: var(--cor-acento); }
.text-white { color: #FFF; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }
.mb-6 { margin-bottom: var(--space-2xl); }

/* --------------------------------------------------------------------------
   5. Animações Globais
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
    100% { filter: brightness(1); }
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes skeletonLoading {
    0% { background-color: var(--cor-superficie); }
    100% { background-color: var(--cor-borda); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.pulse-animation {
    animation: pulse var(--duration-slow) infinite;
}

.rotate-animation {
    animation: rotation 1s linear infinite;
}

/* --------------------------------------------------------------------------
   6. Responsividade Base
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .container {
        padding: var(--space-md);
    }
    
    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-3xl); }
    h3 { font-size: var(--font-size-xl); }
}