@import url("css/estilo.css");

/* ==========================================================================
   CSS EXCLUSIVO: LINHA DO TEMPO (TIMELINE)
   (Requer as variáveis declaradas no arquivo principal root)
   ========================================================================== */

.timeline-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    position: relative;
}

/* --- CABEÇALHO DA TIMELINE --- */
.timeline-header {
    text-align: center;
    margin-bottom: 60px;
    margin-top: 180px;
    width: 100%;
}

.timeline-header h2 {
    font-size: 2rem;
    color: var(--azul-divinista);
    font-weight: 300;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    margin-top: 0;
}

.timeline-header h2::after {
    content: "";
    display: block;
    width: 0;
    height: 1px;
    background-color: var(--azul-divinista);
    margin: 15px auto 0;
    opacity: 0;
    transition: all 0.4s ease;
}

.timeline-header h2:hover::after {
    width: 100px;
    opacity: 1;
}

.timeline-list {
    list-style: none;
    padding-left: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ==========================================================================
   AJUSTE DE ALINHAMENTO DO ITEM E DA SETA
   ========================================================================== */
.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding-left: 80px;
}

/* === MARCADOR DE TEMPO (Seta ➤) === */
.timeline-badge {
    position: absolute;
    top: 42px;
    left: 20px;
    transform: translateY(-50%);
    width: 30px;
    height: 40px;
    background-color: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.timeline-badge::before {
    content: '➤';
    font-size: 1.2rem;
    color: var(--azul-divinista);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-badge::before {
    transform: translateX(5px) scale(1.1);
    color: var(--texto-principal);
}

/* === QUADRO DO CONTEÚDO ESTILO MICROSOFT === */
.timeline-box {
    background-color: var(--branco);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--texto-secundario);
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
    position: relative;
    z-index: 10;
}

/* HOVER SUPER ACETINADO E DISCRETO */
.timeline-box:hover {
    transform: none;
    border-color: rgba(0, 0, 0, 0.15);
    background-color: var(--branco) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   PADRONIZAÇÃO TIPOGRÁFICA DOS CARDS (HIERARQUIA H3-H6 UNIFICADA)
   ========================================================================== */

/* 1. Categoria (4,57 Bilhões de Anos) */
.blog-cat {
    display: inline-block;
    width: 100%;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: none !important;
    /* <- Mude de uppercase para none !important */
    letter-spacing: 1.2px;
    color: var(--azul-divinista);
    margin-bottom: 6px;
    opacity: 0.9;
    text-decoration: none;
}

/* 2. Título Principal (ex: Formação do Planeta / Jesus / Melquisedeque) */
.timeline-box h3 {
    font-size: 1.35rem;
    color: #334155;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: left;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

/* 3. Etiqueta / Data / Pílula (quando em h4) */
.timeline-box h4.blog-date,
.timeline-box h6.blog-date {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.88rem;
    font-weight: 600;
    font-style: normal !important;
    text-transform: none !important;
    color: var(--azul-divinista, #0284c7);
    background-color: rgba(2, 132, 199, 0.06);
    border: 1px solid rgba(2, 132, 199, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 2px;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* 4. Subtítulo (ex: Verbo Construtor Planetário / Raça Autóctone) */
.timeline-box h4.blog,
.timeline-box h5.blog {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: none !important;
    letter-spacing: 0.1px;
    color: var(--azul-divinista, #0284c7);
    margin-top: 0;
    margin-bottom: 4px;
    line-height: 1.35;
}

/* 5. Descrição de Apoio (ex: Jesus / Originária do Planeta) */
.timeline-box h5.blog-post,
.timeline-box h6.blog-post {
    font-size: 0.88rem;
    font-weight: 400;
    font-style: normal !important;
    text-transform: none !important;
    font-variant: normal !important;
    color: #64748b;
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.45;
}

/* 6. Bloco de Citação (.blog-q) */
.blog-q {
    width: 100%;
    display: block;
    margin-top: 10px;
    padding: 14px 16px;
    border-left: 2px solid var(--azul-divinista);
    background-color: rgba(248, 250, 252, 0.8);
    border-radius: 0 8px 8px 0;
}

.blog-q p {
    font-family: inherit;
    font-size: 1rem;
    font-style: normal;
    color: #334155;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left;
    width: 100%;
}

/* Ajusta qualquer imagem dentro da div .blog-q */
.blog-q img {
    max-width: 150px;
    width: 100%;
    height: auto;
    display: block;
}

.destaque-linha {
    color: var(--azul-divinista, #0284c7) !important;
    font-weight: 600;
    font-style: normal;
}

/* ==========================================================================
   PADRONIZAÇÃO UNIFICADA DE CITAÇÕES
   ========================================================================== */

/* 1. Blocos de Citação Simples (.blog-q) */
.blog-q p,
.blog-q cite,
.blog-q footer,
.blog-q span {
    font-family: inherit;
    font-size: 1rem !important;
    /* Força o mesmo tamanho padrão */
    line-height: 1.6;
    color: #334155;
}

/* 2. Conteúdo da Citação Retrátil (.citacao-content) */
.citacao-content,
.citacao-content p,
.citacao-content span {
    font-family: inherit;
    font-size: 1rem !important;
    /* Padroniza com o resto da página */
    line-height: 1.6;
    color: var(--texto-secundario);
}

/* ==========================================================================
   RESET DE SEGURANÇA & ELEMENTOS DIVERSOS
   ========================================================================== */
.timeline-wrapper::before,
.timeline-wrapper::after,
.timeline-list::before,
.timeline-list::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.final-item,
.explicacao-essencial {
    font-family: inherit;
    text-align: left;
    width: 100%;
    color: #444444;
    display: block;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Container das ações na citação */
.citacao-acoes {
    margin-top: 10px;
    padding-top: 8px;
}

/* ==========================================================================
   OTIMIZAÇÃO LINK VÍDEOS E ÁUDIOS
   ========================================================================== */
/* Estilo do botão */
 
.btn-video-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--azul-divinista, #0284c7);
    background-color: rgba(2, 132, 199, 0.06);
    border: 1px solid rgba(2, 132, 199, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-video-tag:hover {
    background-color: var(--azul-divinista);
    color: #ffffff !important;
    border-color: var(--azul-divinista);
    text-decoration: none;
}

.btn-video .icone {
    font-size: 0.75rem;
}

/* Hover usando a sua cor azul de destaque */
.btn-video:hover {
    background-color: var(--azul-divinista);
    color: #ffffff;
    border-color: var(--azul-divinista);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Apenas o ícone fica claro no hover */
    .btn-video-tag:hover .icone {
        color: #a5f3fc;
        /* Tom de azul bem claro para destacar no fundo escuro/azul */
        /* Se preferir usar transparência em vez de uma cor fixa, pode usar:
       opacity: 0.6; 
    */
    }

/* ==========================================================================
   CITAÇÕES RECOLHÍVEIS E RODAPÉ DA TIMELINE
   ========================================================================== */
.citacao-item {
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 1.5px solid var(--azul-divinista);
    border-radius: 4px;
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100% !important;
    min-width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    display: block;
    text-align: left;
}

.citacao-item:hover {
    background-color: #f0f9ff !important;
    border-color: var(--azul-divinista);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.citacao-item:hover summary {
    color: var(--azul-divinista);
}

.citacao-item summary {
    color: var(--azul-divinista);
    font-weight: 600;
    cursor: pointer;
    padding: 12px 18px;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.citacao-item summary::after {
    content: '\25BC';
    font-size: 0.7rem;
    margin-left: 15px;
    transition: transform 0.3s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.citacao-item[open] summary::after {
    transform: rotate(180deg);
}

.citacao-content {
    color: var(--texto-secundario);
    line-height: 1.7;
    /* Mais alto que o padrão de 1.5 ou 1.6 */
    padding: 0 18px 18px 18px;
    text-align: justify;
    /* Text-align diferente dos demais que usam left */
    text-align-last: left;
    display: block;
}

.final-container {
    margin-top: 20px;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-left: 2px solid #2c5d7d;
    transition: all 0.3s ease;
    cursor: default;
}

.final-container:hover {
    background-color: #f0f9ff !important;
    border-left-color: var(--azul-divinista, #2c5d7d);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateX(2px);
}

.final-titulo {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--azul-divinista, #0284c7);
    background-color: rgba(2, 132, 199, 0.06);
    border: 1px solid rgba(2, 132, 199, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.final-item {
    font-size: 1rem;
    margin-bottom: 8px;
}

.explicacao-essencial {
    font-style: italic;
    color: #555;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dotted #ccc;
}

/* BOTÃO COMPARTILHAMENTO DA TIMELINE */
.share-container-auto {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 10px 15px 0 0;
    box-sizing: border-box;
    margin-bottom: -15px;
    z-index: 10;
}

.share-trigger-auto {
    background: transparent !important;
    border: none !important;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    text-decoration: none !important;
    color: var(--texto-apoio) !important;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.share-trigger-auto:hover {
    opacity: 1 !important;
    color: var(--azul-divinista) !important;
    transform: scale(1.1);
}

.share-trigger-auto svg {
    display: block;
}

.share-text-auto {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* --- NAVEGAÇÃO INFERIOR DA TIMELINE --- */
.timeline-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-content: center;
    margin: 60px auto;
    padding-top: 30px;
    border-top: 1px solid var(--borda-suave);
    width: 100%;
    max-width: 800px;
}

.timeline-nav .nav-item {
    background-color: var(--branco);
    border: 1px solid var(--azul-divinista);
    color: var(--azul-divinista);
    padding: 12px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.timeline-nav .nav-item:hover {
    background-color: var(--azul-divinista);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 93, 125, 0.2);
}

/* --- ITEM ATIVO (PÁGINA ATUAL) --- */
.timeline-nav .nav-item.active {
    background-color: var(--azul-divinista);
    color: #ffffff !important;
    border-color: var(--azul-divinista);
    cursor: default;
    transform: none;
    box-shadow: 0 4px 12px rgba(44, 93, 125, 0.2);
}

/* Container das citações dentro do blog-q */
.citacoes-container {
    margin-top: 24px;
    display: block;
}


/* ==========================================================================
   PÁGINA INICIAL DA LINHA DO TEMPO
   ========================================================================== */
.timeline-main {
    padding: 100px 20px 60px;
    background-color: transparent;
}

.timeline-welcome {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-welcome h1 {
    font-size: 2.2rem;
    color: var(--azul-divinista);
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.descricao-bemvindo {
    font-size: 1rem;
    color: var(--texto-secundario);
    line-height: 1.6;
    font-weight: 400;
}

.timeline-nav-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.timeline-line {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: var(--borda-suave);
    opacity: 0.6;
    z-index: 1;
}

.grade-periodos {
    position: relative;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.card-periodo {
    background-color: var(--branco);
    border: 1px solid var(--borda-suave);
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    text-decoration: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.card-periodo:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: var(--azul-divinista);
    background-color: var(--branco);
}

.periodo-tag {
    font-size: 0.75rem;
    color: var(--texto-apoio);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.card-periodo h2 {
    font-size: 1.5rem;
    color: var(--azul-divinista);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.card-periodo p {
    font-size: 0.9rem;
    color: var(--texto-secundario);
    line-height: 1.5;
    margin-bottom: 20px;
    margin-top: 0;
}

.btn-acesso {
    font-size: 0.8rem;
    color: var(--azul-divinista);
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border 0.3s;
}

.card-periodo:hover .btn-acesso {
    border-bottom-color: var(--azul-divinista);
}

.destaque-marco {
    background-color: var(--bg-footer-secao);
    border-color: var(--azul-divinista);
    border-width: 2px;
}

.periodo-tag.highlight {
    color: var(--azul-divinista);
    font-weight: 700;
}

/* ==========================================================================
   MEDIA QUERIES - EXCLUSIVAS DA TIMELINE
   ========================================================================== */
@media (max-width: 768px) {
    .timeline-list {
        align-items: flex-start;
        padding-left: 10px;
    }

    .timeline-item {
        justify-content: flex-start;
        padding-left: 0;
        padding-top: 0;
        flex-direction: column;
    }

    .timeline-badge {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        height: auto;
        width: auto;
        margin-bottom: 10px;
        justify-content: flex-start;
        z-index: 20;
    }

    .timeline-badge::before {
        content: '\25BC';
        font-size: 1.1rem;
    }

    .timeline-box {
        width: 100%;
        max-width: none;
        padding: 20px;
        align-items: flex-start;
        text-align: left;
        z-index: 10;
    }

    .timeline-nav {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .timeline-nav .nav-item {
        text-align: left;
        padding: 15px;
    }

    .timeline-welcome h1 {
        font-size: 1.8rem;
    }

    .timeline-nav-container {
        padding: 0 15px 40px;
    }

    .timeline-line {
        display: none;
    }

    .grade-periodos {
        gap: 20px;
    }

    .card-periodo {
        padding: 20px;
        max-width: none;
    }

    .card-periodo h2 {
        font-size: 1.3rem;
    }
    
    /* FIX: Impede que o bloco tente "andar para o lado" no momento do toque */
    .citacao-item:hover,
    .final-container:hover {
    transform: none !important;
    }

    /* FIX: Opcional - desativa também o pulinho da seta da timeline no toque */
    .timeline-item:hover .timeline-badge::before {
    transform: none !important;
    }

}