/* ==========================================================================
   PORTAL DE CULINÁRIA & RECEITAS - ESTILO WHITE EDITORIAL
   Design limpo, profissional, sem emojis (100% vetores SVG)
   ========================================================================== */

/* === RESET E VARIÁVEIS DE DESIGN === */
:root {
    --primary: #D97706;          /* Âmbar quente culinário */
    --primary-dark: #B45309;     /* Âmbar escuro */
    --primary-light: #FFFBEB;    /* Fundo creme suave */
    --secondary: #78350F;        /* Castanho nobre */
    --text-main: #1E293B;        /* Chumbo escuro para leitura */
    --text-muted: #64748B;       /* Texto secundário */
    --bg-page: #F8FAFC;          /* Fundo suave limpo */
    --bg-white: #FFFFFF;         /* Branco puro */
    --border-color: #E2E8F0;     /* Linhas sutis */
    --accent-green: #16A34A;     /* Verde de sucesso */
    --star-gold: #F59E0B;        /* Estrelas douradas */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px -3px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul, ol {
    list-style: none;
}

/* === CONTAINER GENÉRICO === */
.header-inner,
.announcement-inner,
.nav-inner,
.breadcrumb-trail,
.recipe-article,
.footer-inner,
.footer-bottom-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* === BARRA SUPERIOR DE AVISO === */
.top-announcement-bar {
    background-color: #78350F;
    color: #FEF3C7;
    font-size: 13px;
    padding: 8px 0;
}

.announcement-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.announcement-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.svg-inline-icon {
    flex-shrink: 0;
}

.announcement-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* === CABEÇALHO PRINCIPAL === */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 21px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Barra de Busca */
.search-box {
    flex: 1;
    max-width: 440px;
    display: flex;
    align-items: center;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 4px 8px 4px 14px;
    transition: all 0.2s;
}

.search-box:focus-within {
    border-color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.search-svg {
    color: #94A3B8;
    margin-right: 8px;
    flex-shrink: 0;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: var(--text-main);
}

.search-box button {
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* Ações de Cabeçalho */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

/* === NAVEGAÇÃO DE CATEGORIAS === */
.site-nav {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
}

.nav-inner {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-top: 4px;
    padding-bottom: 4px;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: all 0.2s;
}

.nav-item:hover {
    color: var(--primary-dark);
    background: var(--primary-light);
}

.nav-item.active {
    color: var(--primary-dark);
    background: var(--primary-light);
}

/* === BREADCRUMBS === */
.breadcrumb-trail {
    padding-top: 20px;
    padding-bottom: 16px;
}

.breadcrumb-trail ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb-trail a:hover {
    color: var(--primary);
}

/* === ARTIGO DA RECEITA === */
.recipe-article {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 50px;
}

.recipe-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.recipe-title {
    font-size: 34px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.recipe-lead {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Barra de Metadados */
.recipe-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 24px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.author-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 1px solid #FDE68A;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}

.author-role {
    font-size: 12px;
    color: var(--text-muted);
}

.rating-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-stars {
    display: flex;
    gap: 3px;
}

.star-icon {
    width: 17px;
    height: 17px;
    fill: var(--star-gold);
}

.rating-text {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* Caixa de Ilustração / Imagem Vetorial */
.featured-illustration-box {
    margin-bottom: 32px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #FED7AA;
    background: #FFFDF8;
}

.cake-illustration {
    display: block;
    width: 100%;
    height: auto;
}

/* === QUICK FACTS (FICHA TÉCNICA) === */
.recipe-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 40px;
}

.fact-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fact-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: #FFFFFF;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    flex-shrink: 0;
}

.fact-data {
    display: flex;
    flex-direction: column;
}

.fact-label {
    font-size: 11.5px;
    color: #92400E;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.fact-value {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--secondary);
}

/* === SEÇÕES DO CORPO DA RECEITA === */
.recipe-section {
    margin-bottom: 40px;
}

.section-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.title-icon {
    color: var(--primary);
    background: var(--primary-light);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-heading {
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.2;
}

.section-subtext {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* === INGREDIENTES COM CHECKLIST INTERATIVO === */
.ingredients-card {
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
}

.ingredient-group {
    margin-bottom: 24px;
}

.ingredient-group:last-child {
    margin-bottom: 0;
}

.ingredient-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #CBD5E1;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 14.5px;
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    transition: all 0.2s;
}

.check-item label:hover {
    border-color: #CBD5E1;
    background: #FFFDF8;
}

.check-item input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #CBD5E1;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s;
    flex-shrink: 0;
    background: #FFFFFF;
}

.check-item input[type="checkbox"]:checked + .custom-checkbox {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #FFFFFF;
}

.check-item input[type="checkbox"]:checked ~ .item-text {
    color: #94A3B8;
    text-decoration: line-through;
}

/* === MODO DE PREPARO PASSO A PASSO === */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.step-card {
    display: flex;
    gap: 20px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    transition: all 0.2s;
}

.step-card:hover {
    border-color: #FDE68A;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.05);
}

.step-number {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-light);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 14.5px;
    color: #334155;
    line-height: 1.6;
}

/* === DICAS DE OURO DA CHEF === */
.tips-box {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: var(--radius-md);
    padding: 28px;
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tips-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tip-card {
    background: #FFFFFF;
    border: 1px solid #FDE68A;
    border-radius: var(--radius-sm);
    padding: 18px;
}

.tip-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.tip-card h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
}

.tip-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* === TABELA NUTRICIONAL === */
.nutrition-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #FFFFFF;
}

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.nutrition-table th,
.nutrition-table td {
    padding: 14px 16px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border-color);
}

.nutrition-table th {
    background: #F8FAFC;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11.5px;
    letter-spacing: 0.5px;
}

/* === COMENTÁRIOS E AVALIAÇÕES === */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.review-author-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    background: #E2E8F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviewer-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
}

.review-date {
    font-size: 11.5px;
    color: var(--text-muted);
}

.review-stars {
    margin-left: auto;
    display: flex;
    gap: 2px;
}

.review-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.55;
    font-style: italic;
}

/* === RECEITAS RELACIONADAS === */
.related-recipes-section {
    margin-top: 50px;
    margin-bottom: 40px;
}

.related-title {
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 22px;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.recipe-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.2s;
}

.recipe-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #CBD5E1;
}

.recipe-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.recipe-card-body {
    padding: 18px;
}

.recipe-card-cat {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.recipe-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 6px;
    line-height: 1.35;
}

.recipe-card-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
}

.recipe-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #F1F5F9;
    font-size: 12px;
    color: var(--text-muted);
}

.card-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
    color: var(--secondary);
}

.star-mini {
    width: 13px;
    height: 13px;
    fill: var(--star-gold);
}

/* === NEWSLETTER CULINÁRIA === */
.newsletter-card {
    background: linear-gradient(135deg, #78350F 0%, #B45309 100%);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(120, 53, 15, 0.15);
}

.newsletter-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.newsletter-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.newsletter-desc {
    font-size: 15px;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 24px auto;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 12px auto;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 14.5px;
    color: var(--text-main);
}

.newsletter-submit-btn {
    background: #78350F;
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.newsletter-submit-btn:hover {
    background: #5A270B;
}

.newsletter-privacy {
    font-size: 12px;
    opacity: 0.75;
}

/* === RODAPÉ INSTITUCIONAL EDITORIAL === */
.site-footer {
    background: #0F172A;
    color: #94A3B8;
    padding-top: 50px;
    border-top: 1px solid #1E293B;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.brand-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-brand-name {
    font-size: 18px;
    font-weight: 800;
    color: #FFFFFF;
}

.footer-desc {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.editorial-trust-seal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    color: #4ADE80;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.footer-title {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94A3B8;
    font-size: 13.5px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-small-text {
    font-size: 12.5px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.footer-security-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1E293B;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #E2E8F0;
}

.footer-bottom-bar {
    border-top: 1px solid #1E293B;
    padding: 20px 0;
    font-size: 12.5px;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
}

.footer-bottom-links a:hover {
    color: #FFFFFF;
}

/* === RESPONSIVIDADE === */
@media (max-width: 1024px) {
    .recipe-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .recipes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    .search-box {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }
    .recipe-article {
        padding: 20px;
    }
    .recipe-title {
        font-size: 24px;
    }
    .recipe-overview-grid {
        grid-template-columns: 1fr;
    }
    .tips-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-submit-btn {
        justify-content: center;
    }
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .announcement-badge {
        display: none;
    }
}
