/* =========================================
   1. CONFIGURAÇÕES GLOBAIS E VARIÁVEIS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap');

:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #4a5568; /* Cinza-grafite suave e confortável para leitura */
    --text-muted: #64748b;
    --primary: #0f172a;
    --accent: #0d9488;
    --border-color: #e2e8f0;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.8; /* Respiro ideal entre linhas */
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. CABEÇALHO E MENU (LINHA ÚNICA)
   ========================================= */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    text-decoration: none;
}

.site-nav {
    display: flex;
    gap: 2rem;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--accent);
}

/* =========================================
   3. CONTEÚDO PRINCIPAL (CONTAINER E UX DE LEITURA)
   ========================================= */
.site-content {
    max-width: 880px;
    margin: 3rem auto;
    padding: 2.5rem 3rem; /* Aumentado para criar respiro */
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    min-height: 60vh;
}

@media (max-width: 640px) {
    .site-content {
        margin: 1rem auto;
        padding: 1.5rem 1.25rem;
    }
}

/* Tipografia Corporativa do Post / Artigo (Ajustado para Open Sans) */
.post-title {
    font-size: 2.1rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-weight: 800;
}

.post-meta {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8; /* Ajustado de 1.75 para 1.8 (respiro perfeito) */
    color: var(--text-main); /* Usa o #4a5568 suave do :root */
}

/* Parágrafos e Espaçamento */
.post-content p {
    margin-top: 0;
    margin-bottom: 1.6rem; /* Ajustado de 1.35rem para 1.6rem (idêntico à imagem) */
}

/* Títulos H2 e H3 com Respiro */
.post-content h2 {
    font-size: 1.55rem;
    line-height: 1.35;
    color: var(--primary);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.85rem;
}

.post-content h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    color: #1e293b;
    font-weight: 700;
    margin-top: 1.8rem;
    margin-bottom: 0.65rem;
}

.post-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* Listas Padrões no Texto (ul / ol) */
.post-content ul, 
.post-content ol {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.55rem;
    line-height: 1.65;
}

.post-content li:last-child {
    margin-bottom: 0;
}

/* Citações / Caixas de Alerta */
.post-content blockquote {
    margin: 1.8rem 0;
    padding: 1.2rem 1.5rem;
    background-color: #f8fafc;
    border-left: 4px solid #337ab7;
    border-radius: 0 6px 6px 0;
}

.post-content blockquote p {
    margin-bottom: 0.5rem;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 2.2rem 0;
}

/* =========================================
   4. RODAPÉ
   ========================================= */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   5. ÍNDICE RETRÁTIL (ESTILO ASPIRADORES)
   ========================================= */
.toc-container {
    background-color: #fcfcfc;
    border: 1px solid #cccccc;
    border-radius: 4px;
    padding: 0.8rem 1.25rem;
    margin: 2rem 0;
    font-family: inherit;
}

.toc-container details summary {
    cursor: pointer;
    font-size: 1.05rem;
    color: #222222;
    user-select: none;
    list-style: none;
    text-align: center;
    position: relative;
}

.toc-title {
    font-weight: 700;
}

.toc-container details summary::after {
    content: " [esconder]";
    font-size: 0.9rem;
    color: #337ab7;
    font-weight: normal;
}

.toc-container details:not([open]) summary::after {
    content: " [mostrar]";
}

.toc-container details summary::-webkit-details-marker {
    display: none;
}

.toc-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-top: 0.8rem !important;
    margin-bottom: 0 !important;
}

.toc-item {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.toc-subitem {
    margin-bottom: 0.4rem;
    padding-left: 1.5rem;
    font-size: 0.92rem;
}

.toc-container a {
    color: #337ab7;
    text-decoration: none;
}

.toc-container a:hover {
    color: #23527c;
    text-decoration: underline;
}

/* =========================================
   6. BLOCO DE REVIEW / AVALIAÇÃO GERAL
   ========================================= */
.review-summary-box {
    background-color: #fbfcfd;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.score-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .score-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.score-badge {
    background-color: #00a896;
    color: #ffffff;
    border-radius: 6px;
    width: 100px;
    min-width: 100px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.score-number {
    font-size: 2.2rem;
    font-weight: 800;
    padding: 0.6rem 0 0.3rem 0;
    line-height: 1;
}

.score-label {
    background-color: #0d2830;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.35rem 0;
    letter-spacing: 0.5px;
}

.score-body {
    flex: 1;
}

.score-body h3 {
    margin: 0 0 0.5rem 0 !important;
    font-size: 1.35rem !important;
    color: #1e293b !important;
    font-weight: 700 !important;
}

.score-body p {
    margin: 0 !important;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #334155;
}

.review-summary-box hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 1.5rem 0;
}

/* =========================================
   7. GRID DE PRÓS E CONTRAS
   ========================================= */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 0;
}

@media (max-width: 768px) {
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
}

.pros-box, .cons-box {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #ffffff;
}

.pros-box h4, .cons-box h4 {
    margin: 0 !important;
    padding: 0.85rem 1rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pros-box h4 { background-color: #10b981; }
.cons-box h4 { background-color: #ef4444; }

.pros-box ul, .cons-box ul {
    list-style: none !important;
    padding: 1.25rem 1rem !important;
    margin: 0 !important;
}

.pros-box li, .cons-box li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.85rem;
    font-size: 0.93rem;
    line-height: 1.5;
    color: #334155;
}

.pros-box li:last-child, .cons-box li:last-child {
    margin-bottom: 0;
}

.pros-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    width: 1.2rem;
    height: 1.2rem;
    border: 1.5px solid #10b981;
    border-radius: 50%;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.cons-box li::before {
    content: "✕";
    position: absolute;
    left: 0;
    top: 2px;
    width: 1.2rem;
    height: 1.2rem;
    border: 1.5px solid #ef4444;
    border-radius: 50%;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* =========================================
   8. TABELAS COMPARATIVAS
   ========================================= */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    font-size: 0.95rem;
}

.comparison-table th, .comparison-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: #f1f5f9;
    color: var(--primary);
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* =========================================
   9. GRID DE CARDS NA HOME / CATEGORIAS
   ========================================= */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.review-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-3px);
}

.card-image-link {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.card-image-link img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.review-card:hover .card-image-link img {
    transform: scale(1.03);
}

.card-content {
    padding: 1.25rem 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.card-title a {
    color: var(--primary);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--accent);
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.card-excerpt {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.card-read-more {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.05em;
    margin-top: auto;
}

.card-read-more:hover {
    color: var(--accent);
}

/* =========================================
   BOX DE INTRODUÇÃO DE PRODUTO / CTA
   ========================================= */
.product-intro-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

@media (max-width: 768px) {
    .product-intro-box {
        flex-direction: column;
        text-align: center;
    }
}

/* Imagem do Produto */
.product-intro-img {
    width: 140px;
    min-width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-intro-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block; /* Garante que o renderizador trate a imagem como bloco */
}

/* Conteúdo Central (Título e Resumo) */
.product-intro-details {
    flex: 1;
}

.product-intro-details h3 {
    margin: 0 0 0.5rem 0 !important;
    font-size: 1.4rem !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.product-intro-details p {
    margin: 0 !important;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #475569;
}

/* Botões do Lado Direito */
.product-intro-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 180px;
}

@media (max-width: 768px) {
    .product-intro-buttons {
        width: 100%;
    }
}

.btn-intro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-intro:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* Botão Mercado Livre (Amarelo/Azul Oficial com o Logo) */
.btn-ml {
    background-color: #fff159;
    color: #2d3277;
    border: 1px solid #e6d800;
}

.btn-ml:hover {
    background-color: #ffe600;
}

.btn-ml img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Botão Secundário / Avaliações (Laranja) */
.btn-orange {
    background-color: #ff9800;
    color: #ffffff;
    border: 1px solid #f57c00;
}

.btn-orange:hover {
    background-color: #f57c00;
}

/* =========================================
   AJUSTES DOS BOTÕES E ÍCONES
   ========================================= */
.btn-ml img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

/* Estilização do Botão de Avaliações com Ícone Branco */
.btn-orange {
    background-color: #ff9800;
    color: #ffffff !important;
    border: 1px solid #f57c00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-orange:hover {
    background-color: #f57c00;
}

/* Ícone da mãozinha (joinha) em vetor/CSS totalmente branco */
.icon-thumbs-up {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #ffffff;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 20h2V8H2v12zm20-9c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L13.17 2 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z'/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 20h2V8H2v12zm20-9c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L13.17 2 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* =========================================
   TABELA DE FICHA TÉCNICA / ESPECIFICAÇÕES
   ========================================= */
.specs-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    font-size: 0.95rem;
    text-align: left;
}

/* Cabeçalho da Tabela */
.specs-table th {
    background-color: #1e293b; /* Azul escuro elegante */
    color: #ffffff;
    font-weight: 700;
    padding: 0.9rem 1.25rem;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    border: none;
}

.specs-table th:first-child {
    width: 35%; /* Proporção ideal para rótulo vs valor */
}

/* Células e Linhas */
.specs-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    line-height: 1.5;
}

/* Destaque na primeira coluna (Nome da Característica) */
.specs-table td:first-child {
    font-weight: 600;
    color: #0f172a;
}

/* Efeito Zebra Suave (Linhas alternadas) */
.specs-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.specs-table tbody tr:hover {
    background-color: #f1f5f9;
    transition: background-color 0.15s ease;
}

.specs-table tbody tr:last-child td {
    border-bottom: none;
}

/* =========================================
   10. AJUSTE DA IMAGEM DE DESTAQUE DO POST E BOTÃO AMAZON
   ========================================= */
.post-featured-image {
    width: 100%;
    max-height: 420px;
    margin: 1.5rem 0 2.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-featured-image img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    display: block;
}

/* Botão Amazon (Laranja Oficial) */
.btn-amazon {
    background-color: #ff9900;
    color: #ffffff !important;
    border: 1px solid #e68a00;
}

.btn-amazon:hover {
    background-color: #e68a00;
}
