/* ==========================================================
   RECEITAS.CSS — Versão Master V14.5 (Fusion & Ebook Ready)
   Foco: Preservação do Grid Original + Novos Elementos de Vitrine.
   ========================================================== */

:root {
    /* Paleta Gourmet Exclusiva */
    --recipe-gold: #f59e0b;
    --recipe-brown: #431407;
    --recipe-bg: #fffbeb; /* Creme suave */
    --recipe-shadow: 0 10px 30px rgba(0,0,0,0.06);
    --recipe-text: #334155;
    
    /* Variaveis Dinâmicas (Padrão Comida) */
    --recipe-primary: #f59e0b; 
    --recipe-secondary: #b45309;
    
    /* Cores de Dificuldade */
    --diff-easy: #10b981;   /* Verde Esmeralda */
    --diff-medium: #f59e0b; /* Laranja Ouro */
    --diff-hard: #ef4444;   /* Vermelho Fogo */
}

/* --- MODO DRINK (Mixologia - NOVO) --- 
   Ativado automaticamente pela classe .mode-drink no container principal */
.mode-drink {
    --recipe-primary: #8b5cf6; /* Roxo Neon */
    --recipe-secondary: #5b21b6;
    --recipe-bg: #f3e8ff; /* Lavanda Suave */
    --recipe-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
    --recipe-gold: #8b5cf6; /* Substitui o Gold nos componentes antigos */
}

/* ------------------------------
   1. HERO & FILTROS (ORIGINAL PRESERVADO)
--------------------------------*/
.recipes-hero {
    background: radial-gradient(circle at center, #fffbeb 0%, #fff 100%);
    padding: 80px 20px 60px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.badge-pill-soft {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fef3c7; color: #b45309;
    padding: 6px 16px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
    margin-bottom: 20px;
}

.recipe-filters {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
    margin-top: 40px;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--recipe-primary);
    color: var(--recipe-primary);
}

.filter-btn.active {
    background: var(--recipe-primary);
    color: #fff;
    border-color: var(--recipe-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* ------------------------------
   2. HEADER FLEX DO BLOCO
--------------------------------*/
.recipe-header-flex {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 40px; border-bottom: 2px solid #f1f5f9; padding-bottom: 15px;
}
.chef-icon { color: var(--recipe-primary); margin-right: 10px; }

/* ------------------------------
   3. GRID DE RECEITAS (CARDS ESPECIAIS - PRESERVADO)
--------------------------------*/
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.recipe-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.recipe-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }

/* Thumb & Badges */
.recipe-thumb {
    position: relative; height: 200px; overflow: hidden;
}

.recipe-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.recipe-card:hover .recipe-img { transform: scale(1.1); }

/* Badge de Dificuldade */
.diff-badge {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 12px; border-radius: 6px;
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    color: #fff; z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.diff-easy { background: var(--diff-easy); }
.diff-medium { background: var(--diff-medium); }
.diff-hard { background: var(--diff-hard); }

/* Play Overlay */
.recipe-play-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 50px; height: 50px; background: rgba(0,0,0,0.6);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; border: 2px solid #fff; opacity: 0.9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); pointer-events: none;
}

/* Info do Card */
.recipe-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }

.recipe-title {
    font-size: 1.1rem; font-weight: 700; color: #1e293b;
    margin-bottom: 15px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.recipe-card:hover .recipe-title { color: var(--recipe-primary); }

/* Metadados (Linha inferior) */
.recipe-meta-row {
    display: flex; gap: 15px; margin-top: auto; padding-top: 15px;
    border-top: 1px dashed #e2e8f0; font-size: 0.85rem; color: #64748b;
}

.meta-item { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.meta-item i { color: #94a3b8; }
.meta-item .calorie-icon { color: #f87171; }

/* ------------------------------
   4. SINGLE PAGE: ELEMENTOS INTERNOS (VITRINE NOVA)
--------------------------------*/
.recipe-category-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
    background: var(--recipe-bg); color: var(--recipe-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.recipe-hero {
    text-align: center; margin-bottom: 40px;
    padding-bottom: 30px; border-bottom: 1px dashed #e2e8f0;
}

.recipe-pub-date {
    font-size: 0.85rem; color: #94a3b8; margin-top: 15px;
    display: flex; justify-content: center; gap: 15px;
}

.recipe-info-bar {
    display: flex; justify-content: center; gap: 40px;
    margin: 30px 0; padding: 25px;
    background: #fff; border-radius: 16px;
    border: 2px solid var(--recipe-bg);
}
.info-item { text-align: center; }
.info-item i { font-size: 1.8rem; color: var(--recipe-primary); margin-bottom: 5px; display: block; }
.info-label { font-size: 0.75rem; color: #94a3b8; text-transform: uppercase; font-weight: 800; letter-spacing: 1px; }
.info-value { font-size: 1.2rem; color: #1e293b; font-weight: 900; }

.btn-jump-recipe {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--recipe-primary); color: #fff;
    padding: 12px 30px; border-radius: 50px;
    font-weight: 800; text-decoration: none;
    box-shadow: 0 4px 15px var(--recipe-shadow);
    transition: 0.2s; margin-top: 20px;
}
.btn-jump-recipe:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); color: #fff; }

/* Checklist Interativo (Ingredientes) */
.recipe-internal-box {
    background: #fff; border-radius: 24px; padding: 40px;
    box-shadow: var(--recipe-shadow); margin: 40px 0; border: 1px solid #f1f5f9;
    font-size: 1.1rem; line-height: 1.8; color: var(--recipe-text);
}

.recipe-internal-box h2, 
.recipe-internal-box h3 {
    color: var(--recipe-secondary);
    border-bottom: 2px solid var(--recipe-bg);
    padding-bottom: 10px; margin: 30px 0 20px;
    font-weight: 800; font-size: 1.6rem;
    display: flex; align-items: center; gap: 10px; font-family: 'Plus Jakarta Sans', sans-serif;
}

.recipe-internal-box ul { list-style: none; padding: 0; margin: 0; }

.recipe-internal-box ul li {
    padding: 14px 20px 14px 45px;
    position: relative;
    background: linear-gradient(to right, #ffffff, #f8fafc);
    border-radius: 12px; margin-bottom: 10px;
    cursor: pointer; transition: all 0.2s;
    border: 1px solid #e2e8f0; font-weight: 500; color: #4b5563;
}

/* Ícone de Check Personalizado */
.recipe-internal-box ul li::before {
    content: ''; width: 22px; height: 22px; 
    border: 2px solid #cbd5e1; border-radius: 6px;
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    background: #fff; transition: 0.2s;
}

.recipe-internal-box ul li:hover { background: #fff; border-color: var(--recipe-primary); transform: translateX(5px); }

/* Estado Marcado */
.recipe-internal-box ul li.checked { background: var(--recipe-bg); color: #94a3b8; text-decoration: line-through; border-color: transparent; }
.recipe-internal-box ul li.checked::before { 
    background-color: var(--recipe-primary); border-color: var(--recipe-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='16px' height='16px'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center;
}

/* Modo de Preparo (Passo a Passo) */
.recipe-internal-box ol { counter-reset: recipe-step; list-style: none; padding: 0; }
.recipe-internal-box ol li { position: relative; padding-left: 60px; margin-bottom: 30px; }
.recipe-internal-box ol li:before {
    content: counter(recipe-step); counter-increment: recipe-step;
    position: absolute; left: 0; top: 0;
    width: 40px; height: 40px;
    background: var(--recipe-primary); color: #fff;
    border-radius: 50%; text-align: center; line-height: 40px;
    font-weight: 800; box-shadow: 0 4px 10px var(--recipe-shadow);
}

.recipe-internal-box img {
    max-width: 100%; height: auto; border-radius: 12px;
    margin: 20px 0; box-shadow: 0 4px 6px rgba(0,0,0,0.1); object-fit: cover;
}

/* ------------------------------
   5. UTENSÍLIOS (AMAZON AFFILIATE - NOVO)
--------------------------------*/
.affiliate-tools-box {
    background: #f8fafc; border: 1px dashed #cbd5e1;
    border-radius: 16px; padding: 25px; margin: 40px 0;
}

.affiliate-tools-box h4 {
    margin: 0 0 20px; color: #1e293b; font-size: 1.1rem;
    display: flex; align-items: center; gap: 10px;
}

.tools-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.tool-item {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; padding: 8px 16px; border-radius: 30px;
    font-size: 0.9rem; font-weight: 600; color: #475569;
    border: 1px solid #e2e8f0; text-decoration: none;
    transition: 0.2s;
}

.tool-item:hover {
    border-color: var(--recipe-primary); color: var(--recipe-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); transform: translateY(-2px);
}

/* ------------------------------
   6. EBOOK CTA & NUTRIÇÃO (NOVO)
--------------------------------*/
.ebook-cta-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px; padding: 30px; margin: 60px 0;
    color: #fff; display: flex; align-items: center; gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.1);
}

.ebook-icon {
    width: 60px; height: 60px; background: rgba(255,255,255,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--recipe-primary); flex-shrink: 0;
}

.ebook-text h3 { margin: 0 0 5px; font-size: 1.3rem; color: #fff; }
.ebook-text p { margin: 0; color: #cbd5e1; font-size: 0.95rem; }

.btn-ebook-download {
    background: var(--recipe-primary); color: #fff;
    padding: 12px 25px; border-radius: 10px; text-decoration: none;
    font-weight: 700; white-space: nowrap; margin-left: auto;
    transition: 0.2s;
}
.btn-ebook-download:hover { filter: brightness(1.1); transform: scale(1.05); color:#fff; }

.nutrition-label {
    background: #fff; border-left: 4px solid var(--recipe-primary);
    padding: 20px; border-radius: 0 12px 12px 0; margin-top: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.nutrition-title { font-weight: 800; text-transform: uppercase; font-size: 0.8rem; color: #94a3b8; margin-bottom: 5px; }
.nutrition-text { color: #334155; font-size: 0.95rem; }

/* ------------------------------
   7. EXTRAS & EMPTY STATE
--------------------------------*/
.empty-state {
    text-align: center; padding: 60px 20px;
    background: #fff; border-radius: 20px; border: 2px dashed #e2e8f0;
    max-width: 500px; margin: 40px auto;
}
.empty-icon { font-size: 4rem; color: #cbd5e1; margin-bottom: 20px; }
.empty-state h3 { color: #1e293b; font-weight: 700; margin-bottom: 10px; }
.empty-state p { color: #64748b; margin-bottom: 25px; }
.btn-back {
    display: inline-block; padding: 10px 24px; background: #f1f5f9; 
    color: #475569; border-radius: 50px; font-weight: 600; text-decoration: none; transition: 0.2s;
}
.btn-back:hover { background: #e2e8f0; color: #1e293b; }

/* ------------------------------
   8. MODO DE IMPRESSÃO (LIMPO)
--------------------------------*/
@media print {
    body { background: #fff; color: #000; }
    .nav-top-row, .btn-jump-recipe, .affiliate-tools-box, 
    .ebook-cta-box, .post-actions-bar, .post-navigation, 
    .related-posts-section, footer, #reading-progress-container { display: none !important; }
    
    .post-container-center { max-width: 100%; padding: 0; margin: 0; }
    .recipe-internal-box { box-shadow: none; border: none; padding: 0; }
    .post-title { font-size: 24pt; color: #000; }
    a { text-decoration: none; color: #000; }
}

/* Responsividade */
@media (max-width: 768px) {
    .recipe-filters {
        flex-wrap: nowrap; overflow-x: auto; 
        justify-content: flex-start; padding-bottom: 10px;
        -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;
    }
    .filter-btn { flex-shrink: 0; scroll-snap-align: center; }
    
    .recipe-info-bar { flex-wrap: wrap; gap: 20px; }
    .info-item { width: 45%; }
    .ebook-cta-box { flex-direction: column; text-align: center; }
    .btn-ebook-download { margin: 0; width: 100%; text-align: center; }
    .recipe-internal-box { padding: 25px 20px; }
}
