:root {
    --primary: #2563eb;
    --bg-site: #bcd6f0;
    --azul-escuro: #4a6b8a;
    --azul-medio: #7ba0c0;
    --azul-suave: #f0f4f8;
    --cinza-texto: #4a5568;
    --whatsapp: #25d366;
    --branco: #ffffff;
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-site); 
    color: #0f172a; line-height: 1.6; }

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}
.nav-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 180px;
}.logo-area a { 
    text-decoration: none; 
    color: var(--primary); 
    font-size: 1.2rem; 
    display: flex; 
    align-items: center; 
    gap: 0px; }

/* --- ESTILO GLAMOUROSO PARA O MENU --- */
.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Botão Site (Estilo Vidro / Outline Luxo) */
.btn-nav-outline {
    text-decoration: none;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    padding: 3px 20px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn-nav-outline:hover {
    background: var(--primary);
    color: white !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

/* Botão Admin (Estilo Gradiente / Sólido Luxo) */
.btn-nav-solid {
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white !important;
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-nav-solid:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 25px rgba(99, 102, 241, 0.4);
}

/* --- TEXTO JUSTIFICADO E TIPOGRAFIA --- */
.conteudo-texto {
    font-size: 1.15rem;
    color: #334155;
    line-height: 1.8;
    text-align: justify;
    hyphens: auto;
}

/* Força o justificado em parágrafos vindos do editor */
.conteudo-texto p, 
.conteudo-texto div, 
.conteudo-texto span {
    text-align: justify !important;
    margin-bottom: 1.5rem;
}

/* Ajuste para não justificar títulos dentro do texto (se houver) */
.conteudo-texto h1, .conteudo-texto h2, .conteudo-texto h3 {
    text-align: left !important;
    color: var(--azul-escuro);
    margin-top: 2rem;
}

/* --- DETALHE EXTRA: Efeito de Zoom na Capa --- */
.img-principal {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: zoom-in;
}

.img-principal:hover {
    transform: scale(1.02);
}

/* CONTAINER & IMAGEM */
.container { max-width: 850px; margin: 30px auto; padding: 40px; 
    background: white; border-radius: var(--radius); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.img-principal { width: 100%; max-height: 450px; 
    object-fit: cover; border-radius: 10px; margin: 20px 0; display: block; }

/* WHATSAPP & NEWSLETTER */
.interacao-bar { display: flex; justify-content: space-between; 
    align-items: center; padding: 15px 0; 
    border-top: 1px solid var(--azul-suave); 
    margin-top: 25px; flex-wrap: wrap; gap: 10px; }
.btn-whatsapp { background: var(--whatsapp); 
    color: white !important; text-decoration: none; 
    padding: 6px 20px; border-radius: 8px; 
    font-weight: bold; display: flex; align-items: center; 
    gap: 6px; transition: 0.3s; }
.btn-whatsapp:hover { background: #128c7e; 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3); }

/* COMENTÁRIOS */
.comment-form { background: var(--azul-suave); 
    padding: 20px; border-radius: 10px; margin: 20px 0; }
.form-group { display: flex; gap: 10px; margin-bottom: 10px; }
.comment-form input, .comment-form textarea { 
    width: 100%; padding: 10px; border: 1px solid #ddd; 
    border-radius: 6px; }
.btn-enviar { background: var(--azul-escuro); 
    color: white; border: none; padding: 12px 25px; 
    border-radius: 8px; cursor: pointer; 
    font-weight: bold; transition: 0.3s; }
.btn-enviar:hover { transform: translateY(-3px); 
    background: var(--azul-medio); }

/* LISTA COMENTÁRIOS COM ANIMAÇÃO */
.comentario-item { background: #fff; padding: 15px; 
    border-radius: 8px; margin-bottom: 12px; 
    border-left: 5px solid var(--azul-medio); 
    border: 1px solid #eee; animation: surge 0.5s ease backwards; }
@keyframes surge { from { opacity: 0; 
    transform: translateY(10px); } to { opacity: 1; 
        transform: translateY(0); } }


.divisor-secao { border: 0; border-top: 1px solid var(--azul-suave); margin: 50px 0; }

.posts-anteriores h3 { color: var(--azul-escuro); margin-bottom: 25px; text-align: center; }


/* Container do arquivo de títulos */
.arquivo-antigo {
    margin-top: 60px;
    padding: 40px;
    background: #f8fafc;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.arquivo-antigo h3 {
    margin-bottom: 25px;
    color: var(--azul-escuro);
    font-size: 1.4rem;
}

.lista-titulos-antigos {
    list-style: none;
    padding: 0;
}

.lista-titulos-antigos li {
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.lista-titulos-antigos li:last-child { border: none; }

.lista-titulos-antigos a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: 0.3s;
}

.lista-titulos-antigos a:hover { transform: translateX(10px); }

.data-mini {
    font-size: 0.85rem;
    color: var(--azul-medio);
    min-width: 100px;
    font-weight: bold;
}

.titulo-mini {
    color: var(--cinza-texto);
    font-size: 1.05rem;
    font-weight: 500;
}



/* FOOTER (O VOLTOU!) */
.site-footer { background: #0f172a; color: white; padding: 40px 20px; text-align: center; margin-top: 50px; }
.footer-socials a { color: white; font-size: 1.5rem; margin: 0 10px; opacity: 0.8; transition: 0.3s; }
.footer-socials a:hover { opacity: 1; color: var(--azul-medio); }
.footer-links { margin: 20px 0; }
.footer-links a { color: #cbd5e0; text-decoration: none; margin: 0 10px; font-size: 0.9rem; }
.tagline { font-size: 0.8rem; opacity: 0.7; margin-top: 10px; }

@media (max-width: 600px) { .form-group { flex-direction: column; } .nav-container { flex-direction: column; gap: 10px; } }
/* --- SEÇÃO DE NAVEGAÇÃO (VITRINE) --- */
.vitrine-recentes {
    margin-top: 40px;
}

.titulo-secao {
    font-size: 1.6rem;
    color: var(--azul-escuro);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

/* Grid Inteligente: 3 colunas no PC, 1 no Celular */
.grid-6-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-compacto {
    background: var(--branco);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.card-compacto:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    border-color: var(--azul-medio);
}

.card-thumb {
    height: 160px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.card-compacto:hover .card-thumb {
    transform: scale(1.05);
}

.card-info {
    padding: 18px;
}

.card-data {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--azul-medio);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-info h3 {
    font-size: 1.1rem;
    color: var(--azul-escuro);
    margin-top: 10px;
    line-height: 1.4;
    font-weight: 700;
}

/* --- SOLUÇÃO DE ACESSO TOTAL (HISTÓRICO) --- */
.arquivo-historico {
    max-width: 850px;
    margin: 0 auto 50px auto;
}

.acordeao-arquivo {
    background: var(--branco);
    border: 1px solid var(--azul-suave);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.acordeao-arquivo[open] {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.acordeao-arquivo summary {
    list-style: none;
    padding: 20px;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s;
    user-select: none;
}

.acordeao-arquivo summary::-webkit-details-marker {
    display: none;
}

.acordeao-arquivo summary:hover {
    background: var(--azul-suave);
}

.btn-arquivo {
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-arquivo::after {
    content: '\f078'; /* Ícone seta para baixo FontAwesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: 0.3s;
}

.acordeao-arquivo[open] .btn-arquivo::after {
    transform: rotate(180deg);
}

.lista-titulos-total {
    padding: 0 25px 25px;
    display: flex;
    flex-direction: column;
}

.item-lista {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #f1f5f9;
    text-decoration: none;
    color: var(--cinza-texto);
    transition: all 0.2s ease;
}

.item-lista:hover {
    color: var(--primary);
    padding-left: 10px;
    background: rgba(37, 99, 235, 0.02);
}

.data-lista {
    min-width: 110px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--azul-medio);
}

.titulo-lista {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsividade adicional para os novos elementos */
@media (max-width: 768px) {
    .grid-6-cards {
        grid-template-columns: 1fr;
    }
    .item-lista {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
.error-content i {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
.busca-arquivo {
    position: relative;
    padding: 0 25px 15px;
}

.busca-arquivo i {
    position: absolute;
    left: 40px;
    top: 12px;
    color: var(--azul-medio);
}

#inputBusca {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border-radius: 20px;
    border: 1px solid var(--azul-suave);
    background: #fbfcfd;
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}

#inputBusca:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}