/* 
   DETALHE DA NOTÍCIA - SISTEMA DE LEITURA FOCADA
   Escopo isolado com prefixo .np-
*/

.news-detail-page {
    --np-primary: #0C2036;
    --np-secondary: #1E3A5F;
    --np-accent: #D4A72C;
    --np-bg: #F4F1E8;
    --np-white: #FFFFFF;
    --np-text: #2C3E50;
    --np-text-muted: #5D6D7E;
    --np-serif: 'Playfair Display', serif;
    --np-sans: 'Inter', sans-serif;
    
    background-color: var(--np-bg);
    min-height: 100vh;
    padding-bottom: 100px;
    color: var(--np-text);
    line-height: 1.6;
}

/* Containers de Largura Controlada */
.np-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.np-container--narrow {
    max-width: 90%; /* Largura ideal para leitura (entre 70 e 80 caracteres por linha) */
}

/* Hero Section */
.np-hero {
    background: linear-gradient(135deg, var(--np-primary) 0%, var(--np-secondary) 100%);
    padding: 100px 0 60px;
    color: var(--np-white);
    text-align: center;
}

.np-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-family: var(--np-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.np-date { color: var(--np-accent); font-weight: 600; }
.np-category { opacity: 0.8; border-left: 1px solid rgba(255,255,255,0.3); padding-left: 15px; }

.np-title {
    font-family: var(--np-serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 30px;
}

.np-divider {
    height: 3px;
    width: 60px;
    background-color: var(--np-accent);
    margin: 20px auto;
}

/* Wrapper de Conteúdo */
.np-content-wrapper {
    background-color: var(--np-white);
    padding: 60px;
    margin-top: -40px; /* Sobreposição elegante no Hero */
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* Imagem de Destaque */
.np-featured-figure {
    margin: 0 0 40px 0;
    text-align: center;
}

.np-featured-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.np-img-caption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--np-text-muted);
    font-style: italic;
}

/* --- ESTILIZAÇÃO DO CONTEÚDO WORDPRESS (np-article-body) --- */
.np-article-body {
    font-family: var(--np-sans);
    font-size: 1.15rem;
    line-height: 1.85; /* Proporção áurea para legibilidade */
    color: #34495E;
}

.np-article-body p { margin-bottom: 1.8rem; }

.np-article-body h2, .np-article-body h3 {
    font-family: var(--np-serif);
    color: var(--np-primary);
    margin: 2.5rem 0 1.2rem;
    line-height: 1.2;
}

.np-article-body h2 { font-size: 1.8rem; border-bottom: 1px solid #EEE; padding-bottom: 10px; }

/* Imagens Internas do WP */
.np-article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 4px;
}

.np-article-body .aligncenter { display: block; margin: 2rem auto; }
.np-article-body .alignleft { float: left; margin: 0 2rem 1rem 0; max-width: 50%; }
.np-article-body .alignright { float: right; margin: 0 0 1rem 2rem; max-width: 50%; }

/* Galerias do WordPress */
.np-article-body .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 2.5rem 0;
    background: #F9F9F9;
    padding: 15px;
    border-radius: 8px;
}

.np-article-body .gallery-item { margin: 0; }
.np-article-body .gallery-icon img { margin: 0 !important; border: 2px solid white; transition: transform 0.3s; }
.np-article-body .gallery-icon img:hover { transform: scale(1.02); }

/* Blockquotes / Citações */
.np-article-body blockquote {
    border-left: 4px solid var(--np-accent);
    padding: 10px 30px;
    margin: 2.5rem 0;
    background-color: var(--np-bg);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--np-secondary);
}

/* Links no corpo do texto */
.np-article-body a {
    color: var(--np-support);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.np-article-body a:hover { color: var(--np-accent); }

/* Artigo Footer */
.np-article-footer {
    margin-top: 50px;
    font-size: 0.95rem;
    color: var(--np-text-muted);
}

.np-actions {
    margin-top: 40px;
    text-align: center;
}

.np-btn-back {
    display: inline-block;
    padding: 12px 24px;
    background: var(--np-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.np-btn-back:hover {
    background: var(--np-accent);
    color: var(--np-primary);
    transform: translateX(-5px);
}

/* Responsividade */
@media (max-width: 768px) {
    .np-container {
        padding: 0 16px;
        box-sizing: border-box;
    }

    .np-container--narrow {
        max-width: 100%;
    }

    .np-content-wrapper {
        padding: 30px 20px;
        margin-top: -20px;
        border-radius: 6px;
    }

    .np-hero {
        padding: 80px 0 40px;
    }

    .np-article-body {
        font-size: 1.05rem;
        line-height: 1.75;
    }

    .np-article-body .alignleft, 
    .np-article-body .alignright { 
        float: none; 
        max-width: 100%; 
        margin: 1.5rem 0; 
    }
}

@media (max-width: 480px) {
    .np-hero-meta {
        flex-direction: column;
        gap: 6px;
    }

    .np-category {
        border-left: none;
        padding-left: 0;
    }

    .np-title {
        font-size: 1.8rem;
    }

    .np-content-wrapper {
        padding: 25px 16px;
    }
}