/*
Theme Name: Sabores da Cozinha
Theme URI: https://saboresdacozinha.com
Author: Manus AI
Author URI: https://manus.ai
Description: Um tema WordPress para blog de culinária e dicas de cozinha.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sabores-da-cozinha
Tags: blog, food, cooking, recipes, responsive, culinary
*/

/* Reset e Estilos Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #f9f9f9;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    color: #333333;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.75em;
}

p {
    margin-bottom: 20px;
}

a {
    color: #4CAF50;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FF9800;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #FF9800;
    color: #fff;
}

/* Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

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

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    max-width: 150px;
    margin-right: 15px;
}

.site-title {
    font-size: 1.8em;
    margin-bottom: 5px;
}

.site-description {
    font-size: 0.9em;
    color: #666;
}

/* Navegação */
.main-navigation {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
}

.main-menu {
    list-style: none;
    display: flex;
}

.main-menu li {
    position: relative;
    margin-left: 25px;
}

.main-menu a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 200px;
    display: none;
    z-index: 999;
}

.main-menu li:hover > .sub-menu {
    display: block;
}

.main-menu .sub-menu li {
    margin: 0;
}

.main-menu .sub-menu a {
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f1f1;
}

/* Hero Section */
.hero-section {
    background-color: #4CAF50;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #fff;
}

.hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Featured Posts */
.featured-posts {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title:after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #FF9800;
    margin: 15px auto 0;
}

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

.post-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-category {
    display: inline-block;
    background-color: #FF9800;
    color: #fff;
    font-size: 0.8em;
    padding: 5px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.post-excerpt {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #999;
}

/* Categories Section */
.categories-section {
    padding: 60px 0;
    background-color: #f1f1f1;
}

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

.category-card {
    position: relative;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.category-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
}

.category-card:hover .category-bg {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.category-name {
    color: #fff;
    font-size: 1.5em;
    font-weight: 600;
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0;
    background-color: #4CAF50;
    color: #fff;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    color: #fff;
}

.newsletter-form {
    display: flex;
    margin-top: 30px;
}

.newsletter-input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1em;
}

.newsletter-button {
    background-color: #FF9800;
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-button:hover {
    background-color: #e68900;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget-title {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #FF9800;
}

.footer-widget ul {
    list-style: none;
}

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

.footer-widget a {
    color: #ccc;
}

.footer-widget a:hover {
    color: #FF9800;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9em;
    color: #999;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #FF9800;
}

/* Single Post */
.single-post {
    padding: 60px 0;
}

.post-header {
    margin-bottom: 30px;
}

.post-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.post-content-area {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.post-tags {
    margin-top: 30px;
}

.post-tag {
    display: inline-block;
    background-color: #f1f1f1;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.8em;
    color: #666;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.post-comments {
    margin-top: 60px;
}

/* Sidebar */
.sidebar {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.widget {
    margin-bottom: 40px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #FF9800;
}

.widget ul {
    list-style: none;
}

.widget li {
    border-bottom: 1px solid #f1f1f1;
    padding: 10px 0;
}

.widget li:last-child {
    border-bottom: none;
}

/* Recipe Card */
.recipe-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.recipe-header {
    padding: 30px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.recipe-meta {
    display: flex;
    margin-top: 20px;
}

.recipe-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 30px;
}

.recipe-meta-value {
    font-weight: 600;
    font-size: 1.2em;
}

.recipe-meta-label {
    font-size: 0.8em;
    color: #999;
}

.recipe-content {
    padding: 30px;
}

.recipe-section {
    margin-bottom: 30px;
}

.recipe-section-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #4CAF50;
}

.ingredients-list {
    list-style: none;
}

.ingredients-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
}

.ingredients-list li:before {
    content: "•";
    color: #FF9800;
    font-weight: bold;
    margin-right: 10px;
}

.instructions-list {
    list-style: none;
    counter-reset: step-counter;
}

.instructions-list li {
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
    position: relative;
    padding-left: 40px;
}

.instructions-list li:before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 15px;
    width: 30px;
    height: 30px;
    background-color: #4CAF50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.recipe-footer {
    padding: 20px 30px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recipe-actions {
    display: flex;
}

.recipe-action-btn {
    display: flex;
    align-items: center;
    margin-right: 15px;
    color: #666;
    font-size: 0.9em;
}

.recipe-action-btn i {
    margin-right: 5px;
}

/* Responsividade */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5em;
        color: #333;
        cursor: pointer;
    }
    
    .main-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
    }
    
    .main-menu.active {
        display: block;
    }
    
    .main-menu li {
        margin: 0;
    }
    
    .main-menu a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .main-menu .sub-menu {
        position: static;
        box-shadow: none;
        display: block;
        width: 100%;
        padding-left: 20px;
    }
    
    .main-menu .sub-menu a {
        padding: 10px 15px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-button {
        border-radius: 4px;
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .post-content-area {
        padding: 20px;
    }
    
    .recipe-meta {
        flex-wrap: wrap;
    }
    
    .recipe-meta-item {
        margin-bottom: 15px;
    }
}
