/* ============================================================
    IDENTIDADE VISUAL CENTRALIZADA - A CIFRA DE KARNAK
   ============================================================ */

:root {
    --preto: #050505;
    --esmeralda: #004d40;
    --dourado-metal: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --dourado-solid: #bf953f;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--preto);
    color: #e0e0e0;
    font-family: 'Raleway', sans-serif;
    line-height: 1.8;
    user-select: none;
    -webkit-user-select: none;
    overflow-x: hidden;
}

input, button, textarea, [contenteditable="true"] {
    user-select: text !important;
    -webkit-user-select: text !important;
}

/* ============================================================
    HEADER GLOBAL
   ============================================================ */
header {
    position: fixed;
    top: 0; 
    width: 100%;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 10px 5%; 
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(191, 149, 63, 0.4);
    backdrop-filter: blur(10px);
}

.nav-logo { display: flex; align-items: center; text-decoration: none; gap: 15px; }
.logo-img { height: 50px; width: 50px; border-radius: 50%; border: 2px solid var(--dourado-solid); object-fit: cover; }
.brand-name { font-family: 'Cinzel', serif; background: var(--dourado-metal); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; }

.cta-link {
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dourado-solid);
    text-transform: uppercase;
    border: 1px solid rgba(191, 149, 63, 0.5);
    padding: 8px 15px;
    border-radius: 3px;
    transition: 0.3s;
    letter-spacing: 1px;
}

.cta-link:hover { background: var(--dourado-metal); color: #000; border-color: transparent; box-shadow: 0 0 15px rgba(191, 149, 63, 0.3); }

/* ============================================================
    FOOTER GLOBAL
   ============================================================ */
footer { background: #000; padding: 50px 20px; border-top: 1px solid var(--esmeralda); text-align: center; }
.social-container { margin-bottom: 30px; }
.social-menu { list-style: none; display: flex; justify-content: center; gap: 25px; }
.social-menu li a { text-decoration: none; color: #fff; font-size: 1.5rem; transition: 0.3s; display: inline-block; }
.social-menu li a:hover { color: var(--dourado-solid); transform: translateY(-5px); }

.footer-links { margin-bottom: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.footer-links a { color: #888; text-decoration: none; font-size: 0.75rem; cursor: pointer; transition: 0.3s; }
.footer-links a:hover { color: var(--dourado-solid); }
.copy-text { color: #444; font-size: 0.7rem; margin-top: 15px; }

/* ============================================================
    MODAL LEGAL
   ============================================================ */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); overflow-y: auto; }
.modal-content { background-color: #111; margin: 10% auto; padding: 25px; border: 1px solid var(--dourado-solid); width: 90%; max-width: 800px; color: #ccc; border-radius: 10px; position: relative; }
.close-modal { color: var(--dourado-solid); float: right; cursor: pointer; font-size: 30px; line-height: 1; }

/* ============================================================
    BANNER DE COOKIES
   ============================================================ */
#cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(10, 21, 16, 0.98); border-top: 1px solid var(--dourado-solid); padding: 15px 5%; display: none; justify-content: space-between; align-items: center; z-index: 3000; backdrop-filter: blur(15px); }
.cookie-text { font-size: 0.75rem; color: #ccc; max-width: 65%; }
.btn-accept { background: var(--dourado-metal); color: #000; border: none; padding: 8px 15px; font-family: 'Cinzel'; font-weight: 700; cursor: pointer; border-radius: 3px; }

/* ============================================================
    BOTÕES E INPUTS
   ============================================================ */
.btn-reveal, .btn-hero, .btn-cta, .btn-dourado { 
    background: var(--dourado-metal); color: #000; border: none; padding: 18px; font-family: 'Cinzel', serif; font-weight: 700; cursor: pointer; text-transform: uppercase; border-radius: 5px; transition: 0.3s; width: 100%; text-align: center; text-decoration: none; display: inline-block;
}
.btn-reveal:hover, .btn-hero:hover, .btn-cta:hover, .btn-dourado:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(191, 149, 63, 0.4); }

input[type="date"], input[type="text"] { width: 100%; padding: 12px; background: rgba(255,255,255,0.06); border: 1px solid var(--esmeralda); color: #fff; border-radius: 5px; outline: none; }

/* --- ESTILOS GERAIS --- */
.print-user-data { display: none; }
.pdf-header { display: none; }

/* ============================================================
    🖨️ AJUSTES GLOBAIS PARA PDF (REGRAS DE IMPRESSÃO)
   ============================================================ */
@media print {
    @page { margin: 1.5cm; size: auto; }

    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Remove o vácuo de 140px apenas no PDF */
    .revelacao-container, .container { 
        padding-top: 0 !important; 
        margin-top: 0 !important; 
        max-width: 100% !important; 
    }

    /* Esconder elementos web */
    header, footer, #header-shared, #footer-shared, .btn-cta, .voltar-link, .pack-alma, 
    #cookie-banner, #loading, #loading-oraculo, #erroContainer, .copy-text,
    h2:not(.resultados-section h2) {
        display: none !important;
    }

    /* Cabeçalho do PDF */
    .pdf-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid #bf953f;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    .pdf-logo-box { display: flex; align-items: center; gap: 15px; }
    .pdf-logo { height: 60px; width: 60px; border-radius: 50%; border: 1px solid #bf953f; }
    .pdf-socials { text-align: right; color: #bf953f; font-size: 0.8rem; display: flex; flex-direction: column; }

    /* Moldura e Tipografia */
    .resultados-section, .pilar-section, .portal-section {
        display: block !important;
        background: white !important;
        border: 8px solid transparent !important;
        border-image: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728) 30 !important;
        padding: 25px !important;
        margin: 0 !important;
        page-break-inside: auto;
    }

    .item-numero, .missao-numero {
        font-size: 3.5rem !important;
        color: #bf953f !important;
        text-align: center;
        margin: 5px 0 !important;
    }

    .missao-interpretacao, .pilar-texto {
        font-size: 11pt !important;
        line-height: 1.5 !important;
        text-align: justify !important;
        color: #000 !important;
    }
    .missao-interpretacao br { content: ""; display: block; margin-bottom: 6px; }

    .print-user-data { display: block !important; margin-bottom: 20px; border-left: 4px solid #bf953f; padding-left: 15px; }
    h2, h3 { page-break-after: avoid; }
}