/*
Theme Name: Fermenta Fácil (Astra Child)
Theme URI: https://fermentafacil.com.br/
Description: Tema filho (Child Theme) do Astra desenvolvido sob medida para o portal Fermenta Fácil. Inclui barra de conversão de E-book no cabeçalho, vitrine de produtos afiliados e layout otimizado para blog de fermentação caseira.
Author: Fermenta Fácil BR
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fermenta-facil
*/

:root {
    --ff-primary: #2d5a27;       /* Verde orgânico escuro */
    --ff-primary-hover: #1e3f1a;
    --ff-accent: #d97706;        /* Âmbar / Kombucha / Fermentação */
    --ff-accent-hover: #b45309;
    --ff-bg-warm: #fdfbf7;       /* Creme artesanal */
    --ff-bg-card: #ffffff;
    --ff-text-main: #1f2937;
    --ff-text-muted: #4b5563;
    --ff-border: #e5e0d5;
    --ff-radius: 10px;
}

body {
    background-color: var(--ff-bg-warm);
    color: var(--ff-text-main);
}

/* ==========================================================================
   1. BARRA DE CHAMADA DO E-BOOK NO CABEÇALHO (TOP BAR CTA)
   ========================================================================== */
.ff-header-ebook-bar {
    background: linear-gradient(90deg, var(--ff-primary) 0%, #3a6b33 100%);
    color: #ffffff;
    padding: 10px 20px;
    font-size: 0.95rem;
    border-bottom: 2px solid var(--ff-accent);
    position: relative;
    z-index: 999;
}

.ff-header-ebook-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.ff-ebook-bar-text {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 500;
}

.ff-ebook-badge {
    background-color: var(--ff-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.ff-ebook-bar-btn {
    background-color: var(--ff-accent);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 7px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: background-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    display: inline-block;
}

.ff-ebook-bar-btn:hover {
    background-color: var(--ff-accent-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   2. HERO BANNER (DESTAQUE DO E-BOOK PARA INICIANTES)
   ========================================================================== */
.ff-hero-ebook {
    background: linear-gradient(135deg, #f5f0e6 0%, #ebe2d0 100%);
    border-bottom: 1px solid var(--ff-border);
    padding: 50px 20px;
}

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

.ff-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
}

.ff-hero-kicker {
    color: var(--ff-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.ff-hero-title {
    font-size: 2.3rem;
    line-height: 1.2;
    color: var(--ff-text-main);
    margin: 0 0 16px 0;
}

.ff-hero-desc {
    font-size: 1.1rem;
    color: var(--ff-text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.ff-btn-primary {
    background-color: var(--ff-accent);
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none !important;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
    transition: all 0.2s ease;
}

.ff-btn-primary:hover {
    background-color: var(--ff-accent-hover);
    transform: translateY(-2px);
}

.ff-hero-mockup {
    background: var(--ff-bg-card);
    border: 2px solid var(--ff-border);
    border-radius: var(--ff-radius);
    padding: 28px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.ff-hero-mockup h3 {
    margin-top: 0;
    color: var(--ff-primary);
}

.ff-hero-checklist {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    text-align: left;
}

.ff-hero-checklist li {
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--ff-text-main);
}

/* ==========================================================================
   3. SEÇÕES GERAIS (BLOG E AFILIADOS)
   ========================================================================== */
.ff-section {
    padding: 60px 20px;
}

.ff-section-alt {
    background-color: #f4efe6;
}

.ff-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.ff-section-title {
    font-size: 1.9rem;
    margin: 0 0 10px 0;
    color: var(--ff-text-main);
}

.ff-section-subtitle {
    color: var(--ff-text-muted);
    font-size: 1.05rem;
    margin: 0;
}

/* ==========================================================================
   4. GRID DE ARTIGOS DO BLOG
   ========================================================================== */
.ff-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.ff-post-card {
    background: var(--ff-bg-card);
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ff-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.ff-post-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.ff-post-content {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ff-post-cat {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--ff-primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.ff-post-title {
    font-size: 1.25rem;
    margin: 0 0 12px 0;
    line-height: 1.35;
}

.ff-post-title a {
    color: var(--ff-text-main);
    text-decoration: none;
}

.ff-post-title a:hover {
    color: var(--ff-primary);
}

.ff-post-excerpt {
    font-size: 0.95rem;
    color: var(--ff-text-muted);
    margin-bottom: 18px;
    flex: 1;
}

.ff-read-more {
    font-weight: 700;
    color: var(--ff-primary);
    text-decoration: none;
    font-size: 0.92rem;
}

/* ==========================================================================
   5. VITRINE DE PRODUTOS AFILIADOS
   ========================================================================== */
.ff-affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.ff-product-card {
    background: var(--ff-bg-card);
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.ff-product-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.ff-product-store-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.ff-product-thumb {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: #faf8f5;
    border-radius: 6px;
    overflow: hidden;
}

.ff-product-thumb img {
    max-height: 160px;
    width: auto;
    object-fit: contain;
}

.ff-product-title {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    color: var(--ff-text-main);
}

.ff-product-desc {
    font-size: 0.9rem;
    color: var(--ff-text-muted);
    margin-bottom: 16px;
    line-height: 1.45;
}

.ff-product-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ff-primary);
    margin-bottom: 12px;
}

.ff-btn-affiliate {
    background-color: var(--ff-primary);
    color: #ffffff !important;
    text-align: center;
    padding: 11px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    display: block;
    transition: background-color 0.2s ease;
}

.ff-btn-affiliate:hover {
    background-color: var(--ff-primary-hover);
}

.ff-affiliate-disclaimer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--ff-text-muted);
}

/* Responsividade */
@media (max-width: 768px) {
    .ff-header-ebook-inner {
        justify-content: center;
        text-align: center;
    }
    .ff-hero-grid {
        grid-template-columns: 1fr;
    }
    .ff-hero-title {
        font-size: 1.8rem;
    }
}
