/* ═══════════════════════════════════════════════════════════════
 * PiraNOT — Editorial Boxes v1.0
 * Boxes informativos para matérias factuais, releases e colunas
 * Padrão Folha de S.Paulo / PiraNOT
 * 
 * Tipos: entenda, numeros, servico, saiba-mais, cronologia, alerta
 * Criado: 2026-04-14
 * ═══════════════════════════════════════════════════════════════ */

/* === BASE COMPARTILHADA === */
.pn-box {
    margin: 2rem 0;
    padding: 1.5rem 1.8rem;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2d2d2d;
    border-radius: 0 6px 6px 0;
    position: relative;
}

.pn-box * {
    box-sizing: border-box;
}

.pn-box-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.pn-box-label {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.pn-box-icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.pn-box p {
    margin: 0 0 0.75rem;
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
}

.pn-box p:last-child {
    margin-bottom: 0;
}

.pn-box ul,
.pn-box ol {
    margin: 0.5rem 0 0.75rem;
    padding-left: 1.3rem;
}

.pn-box li {
    margin-bottom: 0.4rem;
    font-size: 16px;
    line-height: 1.5;
}

.pn-box li:last-child {
    margin-bottom: 0;
}

/* === 1. ENTENDA O CASO === */
/* Resumo contextual com bullets — "para quem não acompanhou" */
.pn-box--entenda {
    background: #f5f7fa;
    border-left: 4px solid #0b3b5b;
}

.pn-box--entenda .pn-box-label {
    color: #0b3b5b;
}

.pn-box--entenda li::marker {
    color: #0b3b5b;
}

/* === 2. EM NÚMEROS === */
/* Grid de métricas com destaque numérico grande */
.pn-box--numeros {
    background: #fafafa;
    border-left: 4px solid #0b3b5b;
    padding-bottom: 1.2rem;
}

.pn-box--numeros .pn-box-label {
    color: #0b3b5b;
}

.pn-numeros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.pn-numero-item {
    text-align: center;
    padding: 1rem 0.5rem;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e8ecf0;
}

.pn-numero-valor {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #0b3b5b;
    line-height: 1.1;
    display: block;
    margin-bottom: 0.3rem;
}

.pn-numero-desc {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
    display: block;
}

/* === 3. SERVIÇO === */
/* Informações práticas: onde, quando, quanto, como */
.pn-box--servico {
    background: #f8f9f5;
    border-left: 4px solid #4a7c59;
}

.pn-box--servico .pn-box-label {
    color: #4a7c59;
}

.pn-servico-lista {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0.5rem 0 0;
}

.pn-servico-lista li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
}

.pn-servico-lista li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pn-servico-tag {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4a7c59;
    min-width: 70px;
    flex-shrink: 0;
}

.pn-servico-valor {
    font-size: 15px;
    color: #333;
}

/* === 4. SAIBA MAIS === */
/* Contexto adicional, links para reportagens anteriores */
.pn-box--saiba-mais {
    background: #f9f8f6;
    border-left: 4px solid #8b6914;
}

.pn-box--saiba-mais .pn-box-label {
    color: #8b6914;
}

.pn-box--saiba-mais a {
    color: #0b3b5b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pn-box--saiba-mais a:hover {
    color: #e94560;
}

.pn-box--saiba-mais li::marker {
    color: #8b6914;
}

/* === 5. CRONOLOGIA === */
/* Linha do tempo vertical para reconstituição de fatos */
.pn-box--cronologia {
    background: #fafafa;
    border-left: 4px solid #0b3b5b;
    padding-left: 1.5rem;
}

.pn-box--cronologia .pn-box-label {
    color: #0b3b5b;
}

.pn-crono-lista {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0.5rem 0 0;
    position: relative;
}

.pn-crono-lista::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #d0d7de;
}

.pn-crono-item {
    position: relative;
    padding-left: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: none !important;
}

.pn-crono-item:last-child {
    padding-bottom: 0;
}

.pn-crono-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background: #0b3b5b;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #d0d7de;
}

.pn-crono-hora {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #0b3b5b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 0.15rem;
}

.pn-crono-texto {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

/* === 6. ALERTA / ATENÇÃO === */
/* Para avisos, erratas, situações de emergência */
.pn-box--alerta {
    background: #fef6f4;
    border-left: 4px solid #c0392b;
}

.pn-box--alerta .pn-box-label {
    color: #c0392b;
}

.pn-box--alerta .pn-box-icon {
    color: #c0392b;
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
    .pn-box {
        margin: 1.5rem -1rem;
        padding: 1.2rem 1.3rem;
        border-radius: 0;
    }

    .pn-numeros-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .pn-numero-valor {
        font-size: 24px;
    }

    .pn-numero-desc {
        font-size: 11px;
    }

    .pn-servico-lista li {
        flex-direction: column;
        gap: 0.2rem;
    }

    .pn-servico-tag {
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .pn-box {
        padding: 1rem;
        font-size: 15px;
    }

    .pn-box p,
    .pn-box li {
        font-size: 15px;
    }

    .pn-numeros-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pn-numero-valor {
        font-size: 22px;
    }
}
