/* ============================================================
   NUTRIESSENCIA - CSS DE INFOGRÁFICOS E ELEMENTOS VISUAIS
   v4.0.0
   ============================================================ */

/* ---- Infográfico Visual (grid de cards) ---- */
.infografico-visual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0;
}

.infografico-item {
    background: linear-gradient(135deg, #f0faf4 0%, #e8f5e9 100%);
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.infografico-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.15);
}

.infografico-icone {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.infografico-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1b5e20;
    margin: 0 0 0.5rem 0;
}

.infografico-item p {
    font-size: 0.875rem;
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0;
}

.infografico-item a {
    color: #2e7d32;
    text-decoration: underline;
}

/* ---- Lista Visual (bullets estilizados) ---- */
ul.lista-visual {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

ul.lista-visual li {
    padding: 0.875rem 1rem 0.875rem 3rem;
    margin-bottom: 0.75rem;
    background: #f9fbe7;
    border-left: 4px solid #7cb342;
    border-radius: 0 8px 8px 0;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

ul.lista-visual li::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #2e7d32;
    font-weight: 700;
    font-size: 1rem;
}

ul.lista-visual li strong {
    color: #1b5e20;
}

/* ---- Tabela Nutricional ---- */
.nutri-tabela {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nutri-tabela thead tr {
    background: #2e7d32;
    color: #fff;
}

.nutri-tabela thead th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nutri-tabela tbody tr {
    border-bottom: 1px solid #e8f5e9;
    transition: background 0.15s ease;
}

.nutri-tabela tbody tr:hover {
    background: #f1f8e9;
}

.nutri-tabela tbody tr:last-child {
    border-bottom: none;
}

.nutri-tabela tbody td {
    padding: 0.75rem 1rem;
    color: #333;
}

.nutri-tabela tbody tr:nth-child(even) {
    background: #f9fbe7;
}

.nutri-tabela tbody tr:nth-child(even):hover {
    background: #f1f8e9;
}

/* ---- Box Resumo ---- */
.box-resumo {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border: 1px solid #a5d6a7;
    border-left: 5px solid #2e7d32;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0 0 2rem 0;
}

.box-resumo strong {
    display: block;
    color: #1b5e20;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.box-resumo ul {
    margin: 0;
    padding-left: 1.5rem;
}

.box-resumo ul li {
    color: #2d5a27;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ---- Box Aviso Médico ---- */
.box-aviso-medico {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 5px solid #f9a825;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    font-size: 0.9rem;
    color: #5d4037;
    line-height: 1.6;
}

.box-aviso-medico strong {
    display: block;
    color: #e65100;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ---- Imagem no Conteúdo ---- */
.post-image-content {
    margin: 1.5rem 0;
    text-align: center;
}

.post-image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* ---- Links Internos Estilizados ---- */
.entry-content a:not(.btn):not(.nutri-btn) {
    color: #2e7d32;
    text-decoration: underline;
    text-decoration-color: #a5d6a7;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.entry-content a:not(.btn):not(.nutri-btn):hover {
    color: #1b5e20;
    text-decoration-color: #2e7d32;
}

/* ---- Responsividade ---- */
@media (max-width: 768px) {
    .infografico-visual {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .infografico-item {
        padding: 1rem;
    }

    .infografico-icone {
        font-size: 2rem;
    }

    .nutri-tabela {
        font-size: 0.8rem;
    }

    .nutri-tabela thead th,
    .nutri-tabela tbody td {
        padding: 0.6rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .infografico-visual {
        grid-template-columns: 1fr;
    }

    .nutri-tabela {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
