/* --- RESET & BASICS --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Playfair+Display:wght@700&display=swap');

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

body { 
    font-family: 'Roboto', sans-serif; 
    background-color: #F9F5E8; /* Bege Creme do fundo */
    color: #5D4037; /* Texto Marrom Café */
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- HEADER --- */
.top-bar {
    background-color: #8B4513; /* Marrom SaddleBrown */
    padding: 20px 0;
    text-align: center;
    border-bottom: 4px solid #A0522D;
}

.site-logo a {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.nav-bar {
    background-color: #FAEBD7; /* AntiqueWhite */
    border-bottom: 1px solid #D2B48C;
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.menu-flex {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.menu-flex li a {
    font-size: 1.1rem;
    font-weight: 600;
    color: #8B4513;
    text-transform: uppercase;
    padding: 5px 15px;
    border-radius: 20px;
}

.menu-flex li a:hover {
    background-color: #8B4513;
    color: #fff;
}

/* --- ESTRUTURA DE LAYOUT --- */
.content-wrapper { 
    display: flex; 
    gap: 40px; 
    margin-bottom: 60px; 
    margin-top: 40px;
    align-items: flex-start; /* Importante para a sidebar não esticar */
}

.content-area { flex: 3; }
.sidebar { flex: 1; }

/* Responsivo para celular */
@media (max-width: 900px) {
    .content-wrapper { flex-direction: column; }
    .content-area, .sidebar { width: 100%; }
}

/* --- HOME HERO & SLIDER --- */
.hero-slider-container {
    margin: 40px 0;
    position: relative;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background: #000;
}

.slide-item {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide-item.active { opacity: 1; z-index: 2; }

/* Overlay e Texto do Slider */
.hero-overlay {
    position: absolute;
    bottom: 60px; left: 60px;
    background: rgba(78, 52, 46, 0.9);
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    border-left: 5px solid #D2691E;
    transform: translateY(20px);
    transition: transform 0.5s;
}

.slide-item.active .hero-overlay { transform: translateY(0); }

.badge-dia {
    display: inline-block;
    background: #F4A460;
    color: #fff;
    padding: 5px 12px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-radius: 4px;
}

.hero-overlay h2 a {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    line-height: 1.2;
}

.slide-excerpt { color: #EFEBE9; margin: 10px 0; font-size: 0.95rem; }

.btn-slide { 
    display: inline-block; 
    background: #D2691E; 
    color: #fff; 
    padding: 8px 20px; 
    border-radius: 20px; 
    margin-top: 10px; 
    font-weight: bold; font-size: 0.9rem; 
}
.btn-slide:hover { background: #fff; color: #D2691E; }

/* Navegação Slider */
.slider-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: 0.3s;
}
.slider-nav:hover { background: #D2691E; }
.prev { left: 20px; }
.next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex; gap: 10px;
}
.dot {
    width: 12px; height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}
.dot.active { background: #D2691E; transform: scale(1.2); }

/* --- GRID DE RECEITAS (CARDS) --- */
.section-title {
    font-family: 'Playfair Display', serif;
    color: #8B4513;
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 2px solid #F4A460;
    display: inline-block;
}

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

.recipe-card-horizontal {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    border: 1px solid #EFEFEF;
}
.recipe-card-horizontal:hover { transform: translateY(-5px); }

.card-img { height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.recipe-card-horizontal:hover .card-img img { transform: scale(1.1); }

.card-info { padding: 20px; background: #FFFAF0; }
.card-info h3 a { color: #8B4513; font-size: 1.3rem; font-weight: bold; }
.btn-link { color: #D2691E; font-weight: bold; margin-top: 10px; display: inline-block; }

/* --- SIDEBAR WIDGETS --- */
.search-form { display: flex; margin-bottom: 30px; }
.search-field { flex: 1; padding: 12px; border: 2px solid #DEB887; border-radius: 5px 0 0 5px; outline: none; }
.search-submit { background: #8B4513; color: #fff; border: none; padding: 0 20px; border-radius: 0 5px 5px 0; cursor: pointer; }

.widget-box { background: #fff; padding: 25px; border-radius: 10px; margin-bottom: 30px; border-top: 4px solid #8B4513; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

.sidebar-list { list-style: none; padding: 0; }
.sidebar-list li { margin-bottom: 20px; }

.side-item { display: flex; align-items: center; gap: 15px; }
.side-img img { border-radius: 50%; width: 60px; height: 60px; object-fit: cover; }
.side-info span { font-weight: 600; color: #5D4037; font-size: 0.95rem; line-height: 1.3; display: block; }
.side-item:hover .side-info span { color: #D2691E; }

/* --- SINGLE POST (PÁGINA DA RECEITA) --- */
.single-recipe-container {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.entry-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 15px;
}

.entry-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.entry-meta span { margin-right: 15px; }
.entry-meta i { color: #D2691E; margin-right: 5px; }

.single-post-thumbnail img { width: 100%; border-radius: 10px; margin-bottom: 30px; }
.entry-content { font-size: 1.1rem; color: #4A4A4A; line-height: 1.8; margin-bottom: 40px; }

/* --- FICHA DA RECEITA --- */
.recipe-card-box {
    background-color: #FFF8E1;
    border: 2px dashed #D2691E;
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    position: relative;
}

.recipe-card-header h3 {
    color: #8B4513;
    font-size: 1.5rem;
    border-bottom: 2px solid #D2691E;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

.recipe-section h4 {
    color: #D2691E; font-size: 1.2rem; margin-bottom: 15px;
    text-transform: uppercase; font-weight: bold;
}

.ingredients-list {
    font-family: 'Roboto', sans-serif;
    color: #5D4037;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #FFC107;
}

.recipe-divider { border: 0; border-top: 1px dashed #D2691E; margin: 30px 0; opacity: 0.3; }

/* --- BOTÕES DE COMPARTILHAR --- */
.share-box-top { 
    margin: 20px 0 30px 0; 
    display: flex; align-items: center; gap: 10px; 
    flex-wrap: wrap; 
}
.share-label { font-weight: bold; color: #5D4037; margin-right: 5px; }

.share-btn { 
    width: 40px; height: 40px; 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    color: #fff; 
    font-size: 1.1rem;
    transition: transform 0.2s, opacity 0.2s;
    border: none; cursor: pointer;
}
.share-btn:hover { transform: translateY(-3px); opacity: 0.9; color: #fff; }

/* Cores das Redes */
.zap { background: #25D366; }
.fb { background: #1877F2; }
.pin { background: #E60023; }
.tel { background: #0088cc; }
.twi { background: #000000; }
.print { background: #7f8c8d; }

/* --- BOX DO AUTOR --- */
.author-bio-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #F5F5F5;
    padding: 25px;
    border-radius: 10px;
    margin-top: 50px;
    border-left: 5px solid #8B4513;
}
.author-avatar img {
    border-radius: 50%; width: 100px; height: 100px;
    border: 3px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-right: 25px;
}
.author-desc h4 { color: #8B4513; font-size: 1.2rem; margin-bottom: 10px; }
.author-desc p { font-size: 0.95rem; color: #666; margin-bottom: 10px; }
.author-link { color: #D2691E; font-weight: bold; font-size: 0.9rem; }

@media (max-width: 600px) {
    .author-bio-box { flex-direction: column; text-align: center; }
    .author-avatar img { margin: 0 0 15px 0; }
}

/* --- PÁGINA DE CATEGORIAS (BOLINHAS) --- */
.categories-grid-circle {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 40px; padding-bottom: 60px;
    justify-items: center;
}

.cat-circle-item {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transition: transform 0.3s ease; text-decoration: none;
}
.cat-circle-item:hover { transform: translateY(-10px); }

.cat-circle-wrapper {
    width: 180px; height: 180px;
    border-radius: 50%; overflow: hidden;
    border: 5px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    margin-bottom: 15px; background-color: #eee;
}
.cat-circle-wrapper img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s;
}
.cat-circle-item:hover .cat-circle-wrapper img { transform: scale(1.1); }

.cat-circle-item h3 {
    color: #8B4513; font-family: 'Playfair Display', serif;
    font-size: 1.3rem; margin-bottom: 5px; font-weight: bold;
}
.count-badge {
    background-color: #D2691E; color: #fff;
    font-size: 0.8rem; padding: 3px 12px;
    border-radius: 20px; font-weight: bold;
}

/* --- SISTEMA DE ESTRELAS --- */
.cellus-rating {
    display: inline-flex; align-items: center; gap: 2px;
    color: #FFC107; font-size: 1.1rem;
}
.cellus-rating i { transition: transform 0.2s; }
.rating-interactive { cursor: pointer; }
.rating-interactive i:hover { transform: scale(1.3); color: #FFD54F; }
.rating-box-single {
    margin-bottom: 20px; display: flex; align-items: center;
    gap: 10px; font-weight: bold; color: #8B4513;
}
.rating-readonly { pointer-events: none; margin: 5px 0; }
.rating-value { font-size: 0.8rem; color: #999; margin-left: 5px; font-weight: normal; }

.slide-rating { margin-bottom: 5px; }
.slide-rating .cellus-rating { color: #FFD700; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }

/* --- PAGINAÇÃO ELEGANTE --- */
.cellus-pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 10px; margin: 50px 0 20px 0; font-family: 'Roboto', sans-serif;
}
.cellus-pagination a, .cellus-pagination span {
    display: inline-flex; justify-content: center; align-items: center;
    height: 45px; padding: 0 20px;
    background-color: #fff; border: 2px solid #E6D7C3;
    border-radius: 50px; color: #8B4513; font-weight: 700;
    font-size: 1rem; text-decoration: none;
    transition: all 0.3s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.cellus-pagination a:hover {
    background-color: #D2691E; border-color: #D2691E; color: #fff;
    transform: translateY(-3px); box-shadow: 0 5px 15px rgba(210, 105, 30, 0.3);
}
.cellus-pagination span.current {
    background-color: #8B4513; border-color: #8B4513;
    color: #fff; cursor: default; transform: scale(1.05);
}
.cellus-pagination i { font-size: 0.8rem; }

/* --- FOOTER (RODAPÉ CENTRALIZADO) --- */
.site-footer {
    background-color: #4E342E;
    color: #EFEBE9;
    padding: 60px 0 30px 0;
    margin-top: 50px;
    border-top: 5px solid #D2691E;
}

/* Logo Rodapé */
.footer-logo h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #FFF;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Disclaimer (Aviso) */
.footer-disclaimer {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin: 0 auto 40px auto;
    max-width: 800px;
    border-left: 4px solid #FF5722;
    text-align: left;
}
.footer-disclaimer h4 { color: #FFAB91; margin-bottom: 10px; font-size: 1.1rem; text-transform: uppercase; }
.footer-disclaimer p { font-size: 0.9rem; color: #D7CCC8; line-height: 1.5; margin: 0; }

/* Navegação e Social */
.footer-nav-social {
    display: flex; flex-direction: column; align-items: center;
    gap: 20px; margin-bottom: 40px;
}
.social-icons { display: flex; gap: 20px; justify-content: center; }
.social-icons a {
    background: #5D4037; color: #FFF;
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; transition: transform 0.3s, background 0.3s;
    border: 1px solid #795548;
}
.social-icons a:hover { background: #D2691E; transform: translateY(-5px); }

/* Menu Horizontal Rodapé */
.footer-menu-horizontal ul {
    display: flex; flex-wrap: wrap; justify-content: center;
    padding: 0; margin: 0; gap: 30px; list-style: none;
}
.footer-menu-horizontal a {
    color: #D7CCC8; font-weight: 500; text-transform: uppercase;
    font-size: 0.9rem; letter-spacing: 1px; position: relative;
}
.footer-menu-horizontal a::after {
    content: ''; display: block; width: 0; height: 2px;
    background: #D2691E; transition: width 0.3s;
}
.footer-menu-horizontal a:hover { color: #FFF; }
.footer-menu-horizontal a:hover::after { width: 100%; }

/* Copyright */
.copyright {
    border-top: 1px solid #5D4037; padding-top: 20px;
    font-size: 0.85rem; color: #8D6E63;
}
.copyright a { color: #FFAB91; font-weight: bold; }

@media (max-width: 768px) {
    .footer-menu-horizontal ul { flex-direction: column; gap: 15px; }
    .footer-logo h2 { font-size: 2rem; }
}

/* --- ADICIONAIS: BANNER & COOKIES (Caso precise) --- */
.premium-overlay {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8);
    z-index: 9999; justify-content: center; align-items: center; display: flex;
}
.premium-modal-image {
    position: relative; max-width: 500px; width: 90%; animation: zoomIn 0.3s ease;
}
.premium-modal-image img {
    width: 100%; height: auto; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: block; border: 2px solid #fff; transition: transform 0.2s;
}
.premium-modal-image img:hover { transform: scale(1.02); }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.close-btn-img {
    position: absolute; top: -15px; right: -15px;
    background: #fff; color: #333; border: none; font-weight: bold; font-size: 20px;
    width: 35px; height: 35px; border-radius: 50%; cursor: pointer;
    z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cookie-notice {
    position: fixed; bottom: 20px; left: 20px;
    background: #333; color: #fff; padding: 15px 25px;
    border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9998; max-width: 350px; border-left: 5px solid #e67e22;
    animation: slideUp 0.5s;
}
@keyframes slideUp { from { transform: translateY(100px); } to { transform: translateY(0); } }
.cookie-content { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.cookie-content p { margin: 0; font-size: 0.9rem; line-height: 1.4; }
#accept-cookies {
    background: #e67e22; color: #fff; border: none; padding: 8px 15px;
    border-radius: 5px; cursor: pointer; font-weight: bold; white-space: nowrap;
}
#accept-cookies:hover { background: #d35400; }

/* --- AJUSTE FINAL RODAPÉ (CENTRALIZAR LOGO) --- */
.footer-logo {
    text-align: center;           /* Centraliza o texto */
    display: flex;                /* Garante estrutura flexível */
    justify-content: center;      /* Centraliza horizontalmente */
    width: 100%;                  /* Ocupa a largura toda para poder achar o meio */
    margin-bottom: 20px;          /* Espaço antes do aviso */
}

.footer-logo h2 {
    text-align: center;
    width: 100%;
    margin: 0 auto;               /* Margens automáticas nas laterais */
}

/* Caso você use uma imagem no futuro em vez de texto */
.footer-logo img {
    margin: 0 auto;
    display: block;
}

/* =========================================
   RESPONSIVIDADE (MOBILE)
   ========================================= */

/* Oculta o botão mobile no PC */
.mobile-menu-btn { display: none; }

@media (max-width: 900px) {
    
    /* --- 1. AJUSTES GERAIS --- */
    .container { padding: 0 15px; } /* Menos margem lateral */
    
    /* --- 2. HEADER E LOGO --- */
    .site-logo a { font-size: 2rem; } /* Diminui o logo */
    .top-bar { padding: 15px 0; }

    /* --- 3. MENU GAVETA (HAMBÚRGUER) --- */
    .mobile-menu-btn {
        display: block; /* Mostra o botão */
        background: none;
        border: 2px solid #8B4513;
        color: #8B4513;
        font-size: 1.2rem;
        padding: 8px 15px;
        border-radius: 5px;
        cursor: pointer;
        margin: 0 auto; /* Centraliza o botão */
        width: 100%;
        max-width: 200px;
        font-weight: bold;
    }

    /* Esconde o menu normal inicialmente */
    .main-navigation {
        display: none; 
        background-color: #FFF8E1;
        padding: 20px;
        margin-top: 10px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    /* Quando clicar no botão, adicionamos a classe .active via JS */
    .main-navigation.active {
        display: block;
        animation: slideDown 0.3s ease;
    }

    /* Transforma o menu horizontal em vertical */
    .menu-flex {
        flex-direction: column;
        gap: 10px;
    }

    .menu-flex li a {
        display: block; /* Ocupa a linha toda */
        text-align: center;
        background-color: #fff;
        border: 1px solid #E6D7C3;
    }

    /* --- 4. LAYOUT DE COLUNAS (CORREÇÃO DOS CARDS) --- */
    .content-wrapper {
        flex-direction: column; /* Coloca sidebar embaixo do conteúdo */
        gap: 30px;
    }

    .content-area, .sidebar {
        width: 100%; /* Ocupa 100% da tela */
    }

    /* Grade de Receitas: 1 por linha em vez de 2 */
    .recipes-grid {
        grid-template-columns: 1fr; 
    }

    /* --- 5. SLIDER --- */
    .hero-slider-container {
        height: 300px; /* Diminui a altura do slide no celular */
    }
    
    .hero-overlay {
        left: 20px; bottom: 20px; right: 20px; /* Margens menores */
        padding: 15px;
        width: auto;
        max-width: none;
    }
    
    .hero-overlay h2 a { font-size: 1.5rem; } /* Título menor */
    .btn-slide { font-size: 0.8rem; padding: 5px 15px; }

    /* --- 6. RODAPÉ --- */
    .footer-grid {
        grid-template-columns: 1fr; /* 1 coluna */
        text-align: center;
    }
}

/* Animação suave para o menu abrir */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}