/* 
   ARARALIVRE - DESIGN SYSTEM 6.0 (ESTABILIDADE E PERFORMANCE)
   Consolidado: Apenas o essencial, sem repetições.
*/

/* 1. FONTES E BASE */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;800&display=swap');

@font-face {
    font-family: 'Inter';
    font-display: optional; /* Mata o pulo do texto */
}

:root {
    --arara-primary: #003875;      
    --arara-primary-dark: #001f42; 
    --arara-accent: #ffc107;
    --arara-text-dark: #020617;    
    --arara-text-muted: #334155;   
    --arara-success-dark: #166534;
    --arara-info-dark: #155e75;
    --arara-danger-dark: #991b1b;
    --arara-bg-light: #f1f5f9;
    --arara-white: #ffffff;
    --arara-gray-text: #475569; 
    --arara-shadow: 0 10px 30px rgba(0, 68, 148, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--arara-bg-light);
    color: var(--arara-text-dark);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeSpeed; /* Previne Reflow excessivo */
}

h1, h2, h3 { color: var(--arara-primary); font-weight: 700; }

/* 2. ESTRUTURA (ANTI-CLS) */
.top-banner-container {
    background-color: var(--arara-primary-dark);
    color: white;
    height: 42px; /* Altura fixa para o banner não empurrar o site */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    contain: layout size;
}

.hero-section, .hero-education { 
    background: linear-gradient(135deg, var(--arara-primary) 0%, #0056b3 100%); 
    color: var(--arara-white); 
    padding: 100px 0; 
    border-radius: 0 0 50px 50px;
    margin-bottom: -40px; 
    position: relative; 
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    height: 480px; /* Trava a altura para o layout não pular */
    display: flex;
    flex-direction: column;
    justify-content: center;
    contain: paint;
}

.hero-section h1 { line-height: 1.2; margin-bottom: 1rem; font-weight: 800; }
.hero-section p.lead { min-height: 30px; margin-bottom: 3rem; opacity: 0.85; }

/* 3. COMPONENTES (BUSCA E SIDEBAR) */
.search-container { max-width: 700px; margin: 0 auto; position: relative; z-index: 10; }

.search-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 6px;
    border: 1px solid rgba(0, 68, 148, 0.2);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.search-glass input { border: none; background: transparent; padding-left: 25px; font-size: 1.1rem; flex: 1; outline: none; }

.btn-busca-arara {
    background-color: var(--arara-accent) !important;
    color: var(--arara-primary) !important;
    border: none !important; padding: 12px 35px !important;
    border-radius: 50px !important; font-weight: 800 !important;
    text-transform: uppercase; letter-spacing: 1px; transition: 0.3s all ease;
}
.btn-busca-arara:hover { background-color: #e0a800 !important; transform: scale(1.05); }

.sidebar-sticky { position: sticky; top: 100px; }

.arara-card {
    background: var(--arara-white); border-radius: 24px; padding: 30px;
    box-shadow: var(--arara-shadow); border: 1px solid rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.3s ease;
}
.arara-card:hover { transform: translateY(-5px); }

.filter-label { 
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--arara-text-dark); margin-bottom: 20px;
    display: block;
}

.sidebar-link { 
    color: var(--arara-text-dark) !important; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; border-radius: 12px; 
    padding: 10px 15px; display: block; text-decoration: none; margin-bottom: 4px;
}
.sidebar-link:hover { background: rgba(0, 68, 148, 0.05); transform: translateX(8px); }

/* 4. BOTÕES E HUMOR */
.btn-humor {
    border: 2px solid transparent; padding: 12px; border-radius: 15px;
    font-weight: 600; background: #f9fafb; margin-bottom: 8px; width: 100%; transition: 0.3s; text-align: left;
}
.btn-humor-motivado { border-color: #3b82f6; color: #1d4ed8; }
.btn-humor-curioso { border-color: #06b6d4; color: #0e7490; }
.btn-humor-focado { border-color: #10b981; color: #047857; }

.btn-arara-primary, .btn-arara-accent {
    background-color: var(--arara-primary) !important;
    color: var(--arara-white) !important;
    border: none !important; padding: 12px 25px !important;
    border-radius: 50px !important; font-weight: 700 !important;
    display: inline-flex !important; align-items: center; justify-content: center;
    transition: 0.3s all ease !important; text-decoration: none !important;
}
.btn-arara-primary:hover { background-color: var(--arara-primary-dark) !important; transform: translateY(-2px); }

/* 5. CHECKOUT E UTILITÁRIOS */
.checkout-box {
    background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px);
    border: 2px solid white; border-radius: 24px; padding: 30px; box-shadow: var(--arara-shadow);
}

.section-title { position: relative; padding-bottom: 15px; margin-bottom: 40px; font-weight: 800; color: #111827; }
.section-title::after { content: ""; position: absolute; bottom: 0; left: 0; width: 60px; height: 5px; background: var(--arara-accent); border-radius: 10px; }

.badge-info-ajustado { background-color: #cffafe !important; color: #0891b2 !important; border-radius: 50px; padding: 5px 12px; font-size: 0.8rem; }

hr.opacity-25 { border-top: 1px solid #e5e7eb; margin: 25px 0; }
.trust-badge { font-size: 0.8rem; color: #6b7280; display: flex; align-items: center; gap: 5px; }