/*
Theme Name: MindFuelHub Theme
Theme URI: https://www.mindfuelhub.blog/
Author: Seu Nome ou Empresa
Author URI: http://seuwebsite.com
Description: A modern, science-backed blog theme for mind, body, and spirit development.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mindfuelhub
Tags: blog, clean, responsive, white, modern
*/

/* RESET BÁSICO E VARIÁVEIS */
:root {
    --color-primary: #4A90E2; /* Um azul limpo */
    --color-secondary: #50E3C2; /* Um verde água suave */
    --color-text: #333333;
    --color-light-gray: #F4F7F9;
    --color-white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lora', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* TIPOGRAFIA PADRÃO */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5em;
}

/* BOTÕES PADRÃO */
.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #357ABD;
}

.btn-primary.large {
    padding: 12px 30px;
    font-size: 1.1em;
}

/* 🌟 CABEÇALHO */
.main-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-light-gray);
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-primary);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    transition: color 0.3s;
}

.main-nav a:hover:not(.btn-primary) {
    color: var(--color-primary);
}

/* 🚀 SEÇÃO HERO */
.hero {
    background: var(--color-light-gray); /* Fundo sutil */
    text-align: center;
    padding: 80px 0;
    margin-bottom: 50px;
}

.hero-title {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #666;
}

/* 📰 DESTAQUE DE ARTIGOS */
.featured-posts {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.post-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-image {
    width: 100%;
    height: 200px; /* Altura fixa para consistência */
    object-fit: cover;
    background-color: #ccc; /* Placeholder visual */
}

.post-content {
    padding: 20px;
}

.post-category {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 10px;
}

.post-content h4 {
    font-size: 1.25em;
    font-weight: 600;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

/* ✉️ SEÇÃO DE NEWSLETTER */
.newsletter-signup {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 50px 0;
    text-align: center;
    margin-top: 50px;
}

.newsletter-signup h3 {
    color: var(--color-white);
    font-size: 1.8em;
}

.newsletter-signup p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.newsletter-signup input[type="email"] {
    padding: 10px;
    width: 300px;
    max-width: 80%;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1em;
}

.newsletter-signup button {
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    margin-left: -5px; /* Para 'grudar' no input */
}

/* 🦶 RODAPÉ */
.main-footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 20px 0;
    font-size: 0.9em;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--color-light-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-secondary);
}

/* --- ESTILOS PARA SINGLE.PHP (Artigo Individual) --- */
.main-content {
    display: flex;
    gap: 40px;
    padding: 50px 0;
}

.content-area {
    flex: 3; /* Ocupa mais espaço para o conteúdo principal */
}

.sidebar {
    flex: 1; /* Ocupa menos espaço para a barra lateral */
    min-width: 280px;
}

/* Post Header e Meta */
.post-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-light-gray);
}

.post-title {
    font-size: 2.5em;
    line-height: 1.2;
    margin-bottom: 10px;
}

.post-meta {
    font-size: 0.9em;
    color: #666;
    font-family: var(--font-heading);
}

.meta-separator {
    margin: 0 5px;
}

/* Conteúdo do Artigo */
.post-entry {
    font-size: 1.1em;
    line-height: 1.7;
}

.post-entry p, .post-entry ul, .post-entry ol {
    margin-bottom: 25px;
}

.featured-image {
    margin-bottom: 30px;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: var(--color-light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.sidebar-widget h4 {
    font-size: 1.3em;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.sidebar-widget ul {
    list-style: none;
    padding-left: 0;
}

.sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
}

.sidebar-widget ul li a {
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s;
}

.sidebar-widget ul li a:hover {
    color: var(--color-primary);
}

/* RESPONSIVIDADE BÁSICA */
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
        gap: 0;
    }
    
    .sidebar {
        min-width: 100%;
        order: -1; /* Coloca a sidebar no topo em telas pequenas */
    }

    .main-header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
    }

    .hero-title {
        font-size: 2em;
    }

    .newsletter-signup form {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .newsletter-signup input[type="email"],
    .newsletter-signup button {
        width: 100%;
        max-width: 300px;
        border-radius: 5px;
        margin-left: 0;
    }

    .main-footer .container {
        flex-direction: column;
        gap: 10px;
    }
}