/* ================================================================
   TEMA TEMPLO DE SALOMÃO — Conselho do Altar
   Paleta: Mármore de Jerusalém (#fbfaf7) | Ouro Envelhecido (#c5a059) | Azul Litúrgico (#162433)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-page: #fbfaf7;
    --bg-card: #ffffff;
    --text-main: #162433;
    --text-muted: #5a6a7a;
    --ouro: #c5a059;
    --ouro-claro: #d4b87a;
    --ouro-escuro: #a38143;
    --borda: rgba(197, 160, 89, 0.25);
    --borda-forte: rgba(197, 160, 89, 0.5);
    --sombra: rgba(22, 36, 51, 0.06);
}

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

body {
    background: var(--bg-page);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(197, 160, 89, 0.03) 0%, transparent 60%);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--ouro); border-radius: 4px; }

/* ─── CABEÇALHO — O PÓRTICO ─── */
.oracle-header {
    background: #ffffff;
    border-bottom: 2px solid var(--ouro);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--sombra);
}

.oracle-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-main);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.oracle-title i { color: var(--ouro); font-size: 1.2rem; }

.user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

.user-name-highlight { color: var(--ouro-escuro); font-weight: 600; }

.vip-badge {
    background: var(--ouro);
    color: #ffffff;
    padding: 2px 14px;
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn-outline-ouro {
    border: 1px solid var(--ouro);
    color: var(--ouro-escuro);
    background: transparent;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    border-radius: 2px;
}

.btn-outline-ouro:hover {
    background: var(--ouro);
    color: #ffffff;
}

/* ─── HERO — O SANTO LUGAR ─── */
.hero-unificado {
    background: var(--bg-card);
    border: 2px double var(--ouro);
    border-radius: 2px;
    box-shadow: 0 4px 30px var(--sombra);
    padding: 3rem 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Jaquim e Boaz — colunas laterais sutis */
.hero-unificado::before,
.hero-unificado::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--ouro), transparent);
    opacity: 0.2;
}

.hero-unificado::before { left: 20px; }
.hero-unificado::after { right: 20px; }

/* ─── FORM MYSTIC (refatorado) ─── */
.form-label.mystic {
    color: var(--text-main);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.input-group.mystic {
    border: 1px solid var(--borda);
    border-radius: 2px;
    overflow: hidden;
    background: var(--bg-card);
    transition: border-color 0.3s ease;
}

.input-group.mystic:focus-within {
    border-color: var(--ouro);
}

.input-group.mystic .input-group-text {
    background: rgba(197, 160, 89, 0.04);
    color: var(--ouro-escuro);
    border: none;
    border-radius: 0;
}

.mystic-input {
    background: transparent !important;
    border: none !important;
    color: var(--text-main) !important;
    padding: 0.75rem 1rem !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
    box-shadow: none !important;
}

.mystic-input:focus {
    background: transparent !important;
    color: var(--text-main) !important;
    box-shadow: none !important;
}

.mystic-input::placeholder {
    color: rgba(90, 106, 122, 0.4) !important;
}

.question-input,
#pergunta {
    background: #ffffff;
    border: 1px solid var(--borda);
    border-radius: 4px;
    color: var(--text-main);
    padding: 1rem;
    font-size: 1rem;
    min-height: 140px;
    width: 100% !important;
    display: block;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.question-input:focus {
    border-color: var(--ouro);
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.08);
    outline: none;
    color: var(--text-main);
}

.question-input::placeholder {
    color: rgba(90, 106, 122, 0.4);
    font-style: italic;
}

/* ─── FORM MYSTIC (refatorado) — fim ─── */

.hero-distintivo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--ouro-escuro);
    padding: 0.4rem 1.4rem;
    border: 1px dashed var(--borda);
    background: rgba(197, 160, 89, 0.04);
    margin-bottom: 1.8rem;
}

.hero-titulo {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.15;
    color: var(--text-main);
    letter-spacing: 1px;
}

.hero-subtitulo {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-style: italic;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.divisor-sagrado {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 1.8rem auto 2.5rem;
    width: 180px;
}

.divisor-sagrado::before,
.divisor-sagrado::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ouro));
}

.divisor-sagrado::after {
    background: linear-gradient(90deg, var(--ouro), transparent);
}

.divisor-sagrado span {
    color: var(--ouro);
    font-size: 0.7rem;
    opacity: 0.5;
}

/* ─── FORMULÁRIO ─── */
.rotulo-mistico {
    color: var(--text-main);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.grupo-input-mistico {
    border: 1px solid var(--borda);
    border-radius: 2px;
    overflow: hidden;
    background: var(--bg-card);
    transition: border-color 0.3s ease;
}

.grupo-input-mistico:focus-within {
    border-color: var(--ouro);
}

.grupo-input-mistico .input-group-text {
    background: rgba(197, 160, 89, 0.04);
    color: var(--ouro-escuro);
    border: none;
    border-radius: 0;
}

.grupo-input-mistico .form-control {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.grupo-input-mistico .form-control:focus {
    background: transparent;
    color: var(--text-main);
    box-shadow: none;
}

.grupo-input-mistico .form-control::placeholder {
    color: rgba(90, 106, 122, 0.4);
}

.textarea-sagrada {
    background: var(--bg-card);
    border: 1px solid var(--borda);
    border-radius: 2px;
    color: var(--text-main);
    padding: 1rem;
    font-size: 0.95rem;
    min-height: 130px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.textarea-sagrada:focus {
    border-color: var(--ouro);
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.08);
    outline: none;
    color: var(--text-main);
}

.textarea-sagrada::placeholder {
    color: rgba(90, 106, 122, 0.4);
    font-style: italic;
}

.btn-sacerdotal {
    background: var(--text-main);
    color: #ffffff;
    font-weight: 600;
    padding: 0.9rem 2.8rem;
    border-radius: 2px;
    border: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
    box-shadow: 0 4px 15px rgba(22, 36, 51, 0.1);
}

.btn-sacerdotal:hover {
    background: var(--ouro);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(197, 160, 89, 0.2);
}

.btn-sacerdotal:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ─── PORTICO — instruções discretas ─── */
.portico-info {
    background: rgba(197, 160, 89, 0.03);
    border: 1px dashed var(--borda);
    border-radius: 2px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.portico-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.portico-info strong {
    color: var(--ouro-escuro);
}

/* ─── ÁREA DE RESPOSTA — O SANTO DOS SANTOS ─── */
.area-resposta {
    padding: 2.5rem;
    background: var(--bg-card);
    border: 2px double var(--ouro);
    border-radius: 2px;
    min-height: 150px;
    box-shadow: 0 4px 30px var(--sombra);
    position: relative;
}

.area-resposta::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px dashed var(--borda);
    pointer-events: none;
    border-radius: 1px;
}

#demo-depoimento-box { display: none; }

.spinner-sagrado { display: none; text-align: center; padding: 2rem; }
.spinner-sagrado.active { display: block; }

.spinner-sagrado .spinner {
    width: 40px; height: 40px;
    border: 2px solid rgba(197, 160, 89, 0.15);
    border-top: 2px solid var(--ouro);
    border-radius: 50%;
    animation: girar 1.2s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.conteudo-resposta { display: block; }
.conteudo-resposta .resposta-veredito { display: none; }
.conteudo-resposta.active .resposta-veredito { display: block; }
.conteudo-resposta.active .placeholder-altar { display: none; }

.placeholder-altar {
    padding: 1rem 0;
}

.titulo-secao-resposta {
    font-family: 'Cinzel', serif;
    color: var(--ouro-escuro);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    border-bottom: 1px solid var(--borda);
    padding-bottom: 0.6rem;
    letter-spacing: 2px;
}

.veredito-p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-align: justify;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
}

/* ─── CRÉDITOS ─── */
.creditos-compacto {
    background: var(--bg-card);
    border: 1px solid var(--borda);
    border-radius: 2px;
    padding: 1.5rem;
}

.selo-creditos {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(197, 160, 89, 0.04);
    border: 1px solid var(--ouro);
    font-weight: 700;
    color: var(--ouro-escuro);
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
}

.card-pacote {
    background: var(--bg-card);
    border: 1px solid var(--borda);
    border-radius: 2px;
    padding: 1.2rem 1rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.card-pacote:hover {
    border-color: var(--ouro);
    box-shadow: 0 4px 20px var(--sombra);
}

/* ─── BANNER DE LICENÇA ─── */
.banner-licenca {
    background: var(--bg-card);
    border: 2px double var(--ouro);
    border-radius: 2px;
    padding: 2.5rem;
    color: var(--text-main);
    box-shadow: 0 4px 30px var(--sombra);
}

/* ─── TESTEMUNHOS ─── */
.card-testemunho {
    background: var(--bg-card);
    border: 1px solid var(--borda);
    border-radius: 2px;
    padding: 1.5rem;
    height: 100%;
}

.texto-testemunho {
    color: var(--text-muted);
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
}

.autor-testemunho {
    color: var(--ouro-escuro);
    font-weight: 700;
    font-size: 0.85rem;
}

/* ─── RODAPÉ ─── */
.rodape {
    background: #ffffff;
    border-top: 2px solid var(--ouro);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    color: var(--text-muted);
}

.titulo-rodape {
    color: var(--text-main);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.link-social {
    width: 44px; height: 44px;
    background: rgba(197, 160, 89, 0.04);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ouro-escuro);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid var(--borda);
}

.link-social:hover {
    background: var(--ouro);
    color: #ffffff;
}

/* ─── UTILITÁRIOS ─── */
.msg-erro {
    background: rgba(197, 160, 89, 0.04);
    border: 1px dashed var(--ouro);
    color: var(--text-main);
    padding: 15px;
    border-radius: 2px;
    margin-top: 20px;
    text-align: center;
}

.titulo-central {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 14px;
    letter-spacing: 2px;
}

.titulo-central::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--ouro);
}

/* ─── MOBILE ─── */
.barra-tts-mobile {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #ffffff;
    padding: 1rem; display: none; gap: 10px;
    z-index: 2000;
    border-top: 2px solid var(--ouro);
    box-shadow: 0 -4px 20px var(--sombra);
}

.barra-tts-mobile.active { display: flex; }

.btn-tts-mobile {
    flex: 1; border-radius: 2px; border: 1px solid var(--ouro);
    background: transparent; color: var(--ouro-escuro); padding: 0.8rem;
    font-weight: 600; letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

/* ─── MODAL ─── */
.modal-content {
    background: var(--bg-card) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--ouro) !important;
    border-radius: 2px !important;
}

.modal-header {
    border-bottom: 1px solid var(--borda) !important;
}

.modal-title {
    font-family: 'Cinzel', serif !important;
    color: var(--ouro-escuro) !important;
    letter-spacing: 1px;
}

.btn-close {
    opacity: 0.6;
}

/* ─── FORM TEMPLO ─── */
.form-templo {
    background: var(--bg-card);
    border: 1px solid var(--borda);
    border-radius: 2px;
    color: var(--text-main);
    padding: 0.6rem 0.8rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

.form-templo:focus {
    border-color: var(--ouro);
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.08);
    outline: none;
    color: var(--text-main);
}

.form-templo::placeholder {
    color: rgba(90, 106, 122, 0.4);
}

/* ─── TABELAS ─── */
.tabela-templo {
    background: var(--bg-card);
    border: 1px solid var(--borda);
    border-radius: 2px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

.tabela-templo th {
    background: rgba(197, 160, 89, 0.04);
    color: var(--ouro-escuro);
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 1px solid var(--borda);
    padding: 0.8rem 0.5rem;
}

.tabela-templo td {
    border-bottom: 1px solid rgba(197, 160, 89, 0.06);
    padding: 0.7rem 0.5rem;
    color: var(--text-main);
    background: transparent;
}

.tabela-templo tr:hover td {
    background: rgba(197, 160, 89, 0.02);
}

/* ─── CARDS ADMIN ─── */
.card-admin {
    background: var(--bg-card);
    border: 1px solid var(--borda);
    border-radius: 2px;
    padding: 1.2rem;
    transition: all 0.3s ease;
}

.card-admin:hover {
    border-color: var(--ouro);
    box-shadow: 0 4px 20px var(--sombra);
}

.card-admin .card-title {
    font-family: 'Cinzel', serif;
    color: var(--ouro-escuro);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.card-admin .card-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--text-main);
}

/* FORÇANDO NEGRITO EXTREMO PARA PARÁGRAFOS VEREDITO */
.veredito-p, .response-area p, #resposta-oraculo p {
    font-family: 'Georgia', serif !important;
    font-weight: 800 !important; /* Força um peso ainda maior */
    color: #162433 !important;
    -webkit-font-smoothing: antialiased; /* Melhora a nitidez do negrito */
}

/* DESTAQUE DE VERSÍCULOS BÍBLICOS — cor dourada para diferenciar do texto */
.veredito-p .ref-biblica,
.ref-biblica {
    color: #c5a059 !important;
    font-weight: 700 !important;
    font-style: italic !important;
    background-color: rgba(197, 160, 89, 0.12) !important;
    padding: 3px 10px !important;
    border-radius: 0 4px 4px 0 !important;
    display: inline-block !important;
    border-left: 3px solid #c5a059 !important;
    margin: 0 2px !important;
}

.alert-templo-success {
    background: rgba(76, 175, 80, 0.04);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #2e7d32;
}

.alert-templo-danger {
    background: rgba(244, 67, 54, 0.04);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #c62828;
}

/* ─── TÍTULOS DE SEÇÃO NO TEMPLO ─── */
.titulo-secao-templo,
h3.titulo-secao-templo {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 14px;
    letter-spacing: 2px;
}

.titulo-secao-templo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--ouro);
}

/* ─── LINK SUB-NAV ─── */
.link-subnav {
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.link-subnav:hover {
    color: var(--ouro-escuro);
}

.link-subnav-ouro {
    color: var(--ouro-escuro);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.link-subnav-ouro:hover {
    color: var(--ouro);
}

/* ─── PRINCIPAL ─── */
.main-container {
    padding: 3rem 0;
}

/* ─── RESPONSIVO ─── */
@media (max-width: 768px) {
    .hero-titulo { font-size: 1.6rem; }
    .hero-unificado { padding: 1.5rem; }
    .main-container { padding: 1.5rem 0; }
    .hero-unificado::before,
    .hero-unificado::after { display: none; }
}
