/*
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-bg: #FAF7F2; /* Off-white aquecido */
    --color-primary: #2E5E4E; /* Verde-pinheiro quente */
    --color-primary-hover: #24483B;
    --color-text: #2B2420; /* Marrom-preto quente */
    --color-light-gray: #F0EAE0;
    --color-white: #ffffff;
    --color-border: #E8E0D6;

    /* Accents por pilar */
    --color-mind: #5B729A;
    --color-body: #C1553A;
    --color-spirit: #8A6B9E;

    --font-heading: 'Fraunces', serif;
    --font-body: 'Inter', sans-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-bg);
}

.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: var(--color-primary-hover);
}

/* FOCO DE TECLADO VISÍVEL */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--color-mind);
    outline-offset: 2px;
}

.btn-primary.large {
    padding: 12px 30px;
    font-size: 1.1em;
}

/* 🌟 CABEÇALHO */
.main-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    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-family: var(--font-heading);
    font-style: italic;
    font-weight: 500;
    font-size: 2.6em;
    line-height: 1.25;
    margin-bottom: 15px;
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #5c5348;
}

/* 📰 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 {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-mind);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.post-card:hover {
    box-shadow: 0 4px 15px rgba(43, 36, 32, 0.08);
}

.post-card.pillar-body {
    border-left-color: var(--color-body);
}

.post-card.pillar-spirit {
    border-left-color: var(--color-spirit);
}

.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-mind);
    color: var(--color-white);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 10px;
}

.post-category.pillar-body {
    background-color: var(--color-body);
}

.post-category.pillar-spirit {
    background-color: var(--color-spirit);
}

.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;
}

/* 🦶 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-spirit);
}

/* --- 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 */
}

/* Páginas estáticas (page.php) não têm sidebar — limita a largura de leitura */
.page-content .content-area {
    flex: none;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.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;
    }

    .main-footer .container {
        flex-direction: column;
        gap: 10px;
    }
}