/* Configurações Gerais e Tipografia de Alta Conversão */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #111827;
    background-color: #f9fafb;
    line-height: 1.7;
    font-size: 1.125rem; /* Tamanho 18px para leitura escaneável */
}

.container {
    width: 100%;
    max-width: 760px; /* Largura ideal para não cansar os olhos ao ler */
    margin: 0 auto;
    padding: 0 20px;
}

/* Header/Navbar */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
}

.logo span {
    color: #2563eb; /* Azul Financeiro moderno */
}

/* Estrutura do Artigo */
.post-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 60px;
}

.post-title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
    margin-bottom: 15px;
}

.post-meta {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 30px;
}

p {
    margin-bottom: 24px;
}

h2 {
    font-size: 1.75rem;
    color: #111827;
    margin: 40px 0 20px 0;
    font-weight: 700;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #e5e7eb;
    margin: 40px 0;
}

/* 2. O Gancho - Caixa TL;DR de Alto Impacto */
.tldr-box {
    background-color: #eff6ff;
    border-left: 5px solid #2563eb;
    padding: 25px;
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
}

.tldr-badge {
    background-color: #2563eb;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.tldr-box p {
    font-size: 1.15rem;
    color: #1e40af;
    margin-bottom: 20px;
}

/* Botão de Conversão Superior */
.btn-affiliate {
    display: inline-block;
    background-color: #10b981; /* Verde Dinheiro/Conversão */
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 6px;
    transition: background 0.2s ease;
    text-align: center;
}

.btn-affiliate:hover {
    background-color: #059669;
}

/* 3. Tabelas Ficha Técnica e Prós/Contras */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table th, .data-table td {
    padding: 14px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.data-table th {
    background-color: #f3f4f6;
    color: #374151;
    font-weight: 600;
}

/* Tabela de Prós e Contras em 2 colunas */
.pros-cons-table th, .pros-cons-table td {
    padding: 14px;
    border: 1px solid #e5e7eb;
    vertical-align: top;
}

.th-pros {
    background-color: #ecfdf5;
    color: #065f46;
}

.th-cons {
    background-color: #fef2f2;
    color: #991b1b;
}

.pros-cons-table tbody tr td:first-child {
    border-left: 3px solid #10b981;
}

.pros-cons-table tbody tr td:last-child {
    border-left: 3px solid #ef4444;
}

/* Listas Bullets */
.features-list {
    margin-left: 20px;
    margin-bottom: 24px;
}

.features-list li {
    margin-bottom: 12px;
}

/* 5. CTA de Fechamento */
.cta-bottom {
    text-align: center;
    margin-top: 40px;
}

.btn-affiliate-large {
    display: block;
    background-color: #10b981;
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 18px 32px;
    border-radius: 8px;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.btn-affiliate-large:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    color: #9ca3af;
    font-size: 0.9rem;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

/* Responsividade para Smartphones */
@media (max-width: 640px) {
    .post-container {
        padding: 20px 15px;
    }
    .post-title {
        font-size: 1.85rem;
    }
    .pros-cons-table th, .pros-cons-table td {
        display: block;
        width: 100%;
    }
    .pros-cons-table tr {
        margin-bottom: 15px;
        display: block;
    }
}
/* ==========================================================================
   Estilos da Página Inicial (Home Blog Grid)
   ========================================================================== */

.home-main {
    max-width: 1100px; /* Alarga a página apenas na Home para caber os cards em colunas */
    margin-bottom: 80px;
}

/* Seção de Destaque Inicial (Hero) */
.hero-section {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
    border-bottom: 1px solid #e5e7eb;
    margin-top: -40px;
    margin-bottom: 50px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 15px;
    letter-spacing: -0.025em;
}

.hero-section p {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #111827;
}

/* Grelha de Posts */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Organiza em colunas automáticas */
    gap: 30px;
}

/* Cards Individuais de Posts */
.post-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.card-badge {
    background-color: #eff6ff;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    align-self: flex-start;
    margin: 20px 20px 0 20px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.35rem;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 700;
}

.card-content h3 a {
    color: #111827;
    text-decoration: none;
}

.card-content h3 a:hover {
    color: #2563eb;
}

.card-content p {
    font-size: 0.975rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Rodapé do Card */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f3f4f6;
    padding-top: 15px;
    font-size: 0.875rem;
}

.card-meta span {
    color: #059669;
    font-weight: 600;
}

.read-more {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Responsividade Movel para a Home */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1.1rem;
    }
    .blog-grid {
        grid-template-columns: 1fr; /* Vira lista única em celulares */
    }
}