/* ==========================================================================
   SUBPÁGINA DE ARTIGO — artigo-page.css
   Layout editorial jornalístico, premium e imersivo.
   ========================================================================== */

/* ==================== HERO DO ARTIGO ==================== */
.artigo-page-hero {
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 450px;
    max-height: 600px;
    overflow: hidden;
}

.artigo-page-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.55);
    transition: transform 8s ease;
}

.artigo-page-hero:hover .artigo-page-hero-img {
    transform: scale(1.03);
}

.artigo-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(112, 30, 46, 0.15) 0%,
        rgba(26, 26, 26, 0.7) 70%,
        rgba(26, 26, 26, 0.92) 100%
    );
    z-index: 1;
}

.artigo-page-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 5% 60px;
}

.artigo-page-categoria {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    background: #701E2E;
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.artigo-page-titulo {
    font-family: 'ClashDisplay', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #ffffff;
    line-height: 1.12;
    letter-spacing: -1.5px;
    font-weight: 600;
    margin-bottom: 18px;
}

.artigo-page-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.artigo-page-data,
.artigo-page-tempo {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.artigo-page-meta-divider {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
}

/* ==================== CONTEÚDO DO ARTIGO ==================== */
.artigo-page-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 5% 40px;
}

/* Lead / Primeira parágrafo */
.artigo-page-lead {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    color: #1a1a1a;
    line-height: 1.75;
    font-weight: 500;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1.5px solid rgba(112, 30, 46, 0.1);
}

/* Parágrafos normais */
.artigo-page-body p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    color: #2a2a2a;
    line-height: 1.85;
    margin-bottom: 24px;
    font-weight: 400;
}

/* Subtítulos h2 */
.artigo-page-body h2 {
    font-family: 'ClashDisplay', sans-serif;
    font-size: 1.65rem;
    color: #701E2E;
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-weight: 600;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-top: 10px;
}

/* Subtítulos h3 */
.artigo-page-body h3 {
    font-family: 'ClashDisplay', sans-serif;
    font-size: 1.3rem;
    color: #1a1a1a;
    line-height: 1.3;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
}

/* ==================== PULL QUOTE ==================== */
.artigo-pullquote {
    margin: 50px 0;
    padding: 32px 0 32px 32px;
    border-left: 4px solid #701E2E;
    position: relative;
}

.artigo-pullquote p {
    font-family: 'ClashDisplay', sans-serif !important;
    font-size: 1.5rem !important;
    color: #701E2E !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
    font-style: italic;
    margin-bottom: 0 !important;
}

.artigo-pullquote cite {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: rgba(112, 30, 46, 0.5);
    font-weight: 600;
    font-style: normal;
    margin-top: 14px;
    letter-spacing: 0.5px;
}

/* ==================== CALLOUT / DESTAQUE ==================== */
.artigo-callout {
    margin: 45px 0;
    padding: 0 0 0 28px;
    background: transparent;
    border-left: 3px solid #701E2E;
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    border-right: none;
}

.artigo-callout-titulo {
    font-family: 'ClashDisplay', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #701E2E;
    text-transform: none;
    letter-spacing: -0.3px;
    margin-bottom: 18px;
    display: block;
}

.artigo-callout p {
    font-size: 0.95rem !important;
    color: #2a2a2a !important;
    line-height: 1.75 !important;
    margin-bottom: 0 !important;
}

.artigo-callout ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.artigo-callout ul li {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #2a2a2a;
    line-height: 1.7;
    padding: 10px 0;
    padding-left: 0;
    position: relative;
    border-bottom: 1px solid rgba(112, 30, 46, 0.06);
}

.artigo-callout ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.artigo-callout ul li::before {
    content: none;
}

.artigo-callout ul li strong {
    color: #701E2E;
}

/* ==================== LISTA NO CORPO ==================== */
.artigo-page-body ul,
.artigo-page-body ol {
    margin: 20px 0 28px 0;
    padding-left: 24px;
}

.artigo-page-body ul li,
.artigo-page-body ol li {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #2a2a2a;
    line-height: 1.8;
    margin-bottom: 10px;
}

.artigo-page-body ul li::marker {
    color: #701E2E;
}

.artigo-page-body ol li::marker {
    color: #701E2E;
    font-weight: 700;
}

/* ==================== DADO ESTATÍSTICO ==================== */
.artigo-stat {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 40px 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(112, 30, 46, 0.06) 0%, rgba(245, 221, 241, 0.3) 100%);
    border-radius: 12px;
}

.artigo-stat-numero {
    font-family: 'ClashDisplay', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #701E2E;
    line-height: 1;
    white-space: nowrap;
}

.artigo-stat-texto {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: rgba(26, 26, 26, 0.7);
    line-height: 1.6;
}

.artigo-stat-fonte {
    display: block;
    font-size: 0.75rem;
    color: rgba(112, 30, 46, 0.4);
    margin-top: 6px;
    font-weight: 500;
}

/* ==================== SEPARADOR ==================== */
.artigo-separator {
    width: 60px;
    height: 3px;
    background: rgba(112, 30, 46, 0.15);
    margin: 50px auto;
    border: none;
    border-radius: 2px;
}

/* ==================== SEÇÃO DE AJUDA ==================== */
.artigo-ajuda {
    margin: 60px 0;
    padding: 48px 40px;
    background: linear-gradient(135deg, #701E2E 0%, #8a2a3c 50%, #5a1824 100%);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.artigo-ajuda::before {
    content: none;
}

.artigo-ajuda-titulo {
    font-family: 'ClashDisplay', sans-serif;
    font-size: 1.8rem;
    color: #ffffff !important;
    font-weight: 600;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.artigo-ajuda p {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.75) !important;
    line-height: 1.75 !important;
    margin-bottom: 28px !important;
    max-width: 480px;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative;
    z-index: 1;
}

.artigo-ajuda-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #701E2E;
    background: #ffffff;
    border: none;
    padding: 16px 36px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.artigo-ajuda-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    background: #fff5f7;
}

/* ==================== NAVEGAÇÃO ENTRE ARTIGOS ==================== */
.artigo-nav {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 5% 60px;
}

.artigo-nav-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 40px;
    border-top: 1.5px solid rgba(112, 30, 46, 0.1);
}

.artigo-nav-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(112, 30, 46, 0.08);
    transition: all 0.35s ease;
}

.artigo-nav-link:hover {
    border-color: rgba(112, 30, 46, 0.18);
    box-shadow: 0 8px 30px rgba(112, 30, 46, 0.08);
    transform: translateY(-3px);
}

.artigo-nav-link--prev,
.artigo-nav-link--next {
    margin-left: 0;
}

.artigo-nav-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.artigo-nav-link:hover .artigo-nav-thumb {
    transform: scale(1.04);
}

.artigo-nav-img-wrapper {
    overflow: hidden;
}

.artigo-nav-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px 18px;
}

.artigo-nav-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(112, 30, 46, 0.35);
    display: flex;
    align-items: center;
    gap: 5px;
}

.artigo-nav-link--next .artigo-nav-label {
    justify-content: flex-end;
}

.artigo-nav-link--next .artigo-nav-info {
    text-align: right;
}

.artigo-nav-titulo {
    font-family: 'ClashDisplay', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #701E2E;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.artigo-nav-link:hover .artigo-nav-titulo {
    color: #1a1a1a;
}

/* ==================== VOLTAR AOS ARTIGOS ==================== */
.artigo-voltar-secao {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 5% 80px;
    text-align: center;
}

.artigo-voltar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(112, 30, 46, 0.5);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.artigo-voltar-btn:hover {
    color: #701E2E;
    background: rgba(112, 30, 46, 0.05);
}

.artigo-voltar-btn svg {
    transition: transform 0.3s ease;
}

.artigo-voltar-btn:hover svg {
    transform: translateX(-4px);
}

/* ==================== TAGS (OCULTAS) ==================== */
.artigo-tags {
    display: none;
}

/* ==================== ANIMAÇÕES ==================== */
@keyframes artigoPageFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.artigo-page-body {
    animation: artigoPageFadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.artigo-page-hero-content {
    animation: artigoPageFadeUp 0.7s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 768px) {
    .artigo-page-hero {
        height: 50vh;
        min-height: 350px;
    }

    .artigo-page-hero-content {
        padding: 0 5% 40px;
    }

    .artigo-page-titulo {
        font-size: 1.8rem;
        letter-spacing: -0.5px;
    }

    .artigo-page-body {
        padding: 40px 5% 30px;
    }

    .artigo-page-lead {
        font-size: 1.1rem;
    }

    .artigo-page-body p {
        font-size: 0.98rem;
    }

    .artigo-page-body h2 {
        font-size: 1.4rem;
    }

    .artigo-pullquote {
        margin: 35px 0;
        padding: 24px 0 24px 20px;
    }

    .artigo-pullquote p {
        font-size: 1.25rem !important;
    }

    .artigo-stat {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .artigo-nav {
        padding: 0 5% 40px;
    }

    .artigo-nav-inner {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .artigo-nav-thumb {
        height: 110px;
    }

    .artigo-nav-info {
        padding: 12px 14px 14px;
    }

    .artigo-nav-link--next .artigo-nav-info {
        text-align: right;
    }

    .artigo-voltar-secao {
        padding: 0 5% 60px;
    }

    .artigo-ajuda {
        padding: 36px 24px;
    }

    .artigo-ajuda-titulo {
        font-size: 1.5rem !important;
    }

    .artigo-callout {
        padding: 0 0 0 20px;
    }
}

@media (max-width: 480px) {
    .artigo-page-hero {
        height: 45vh;
        min-height: 300px;
    }

    .artigo-page-titulo {
        font-size: 1.5rem;
    }

    .artigo-stat-numero {
        font-size: 2.2rem;
    }

    .artigo-nav-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .artigo-nav-thumb {
        height: 120px;
    }

    .artigo-nav-titulo {
        font-size: 0.88rem;
    }
}
