/* ============================================================
   SALES CREW STYLES — Master CSS v1.0
   Carregado uma vez pelo WordPress via WPCode.
   NÃO editar os artigos individualmente — editar aqui.
   ============================================================ */
/* Base */

/* ========================================
   BASE
   ======================================== */
/* Body base - sem max-width pra não conflitar com o tema */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Container do artigo - centraliza o conteúdo */
article,
.custom-author-box {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}
h1, h2, h3 { color: #2c3e50; font-weight: 800 !important; margin-top: 1.5em; }
h1 { font-size: 2.2em; line-height: 1.2; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.4em; color: #34495e; }
p { margin: 1em 0; font-size: 1.05rem; }
strong { color: #333; font-weight: 600; }
a { color: #3498db; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========================================
   BLOCKQUOTES
   ======================================== */
blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #3498db;
    background: #f8fafc;
    font-style: italic;
    color: #4a5568;
}
blockquote p { margin: 0; }

/* ========================================
   INSIGHT BOX
   ======================================== */
.insight-box {
    margin: 2em 0;
    padding: 1.2em 1.5em;
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    border-radius: 0 8px 8px 0;
    color: #065f46;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

/* ========================================
   COMPARISON TABLE
   ======================================== */
.dbx-comparison { margin: 2.5em 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.dbx-comparison h3 { font-size: 1.4em; margin-bottom: 1em; color: #111827; }

/* Adicionado table-layout: fixed para garantir a proporção das colunas */
.dbx-comparison table { 
    width: 100%; 
    border-collapse: collapse; 
    background: #fff; 
    border-radius: 8px; 
    overflow: visible; 
    border: 1px solid #e5e7eb; 
    table-layout: fixed; 
}

.dbx-comparison th, .dbx-comparison td { padding: 15px; font-size: 15px; text-align: center; border-bottom: 1px solid #e5e7eb; overflow: visible; }

/* LARGURAS: 1ª Coluna (40%) | 2ª e 3ª Colunas (30% cada) */
/* LARGURAS: Tabela de 2 colunas (padrão) */
.dbx-comparison table:not(.three-col) th:nth-child(1), 
.dbx-comparison table:not(.three-col) td:nth-child(1) { width: 35%; text-align: left; font-weight: 600; }
.dbx-comparison table:not(.three-col) th:nth-child(2), 
.dbx-comparison table:not(.three-col) td:nth-child(2),
.dbx-comparison table:not(.three-col) th:nth-child(3), 
.dbx-comparison table:not(.three-col) td:nth-child(3) { width: 32.5%; }

/* LARGURAS: Tabela de 3 colunas (Regra dos Três) */
.dbx-comparison table.three-col th:nth-child(1), 
.dbx-comparison table.three-col td:nth-child(1) { width: 22%; text-align: left; font-weight: 600; }
.dbx-comparison table.three-col th:nth-child(2), 
.dbx-comparison table.three-col td:nth-child(2) { width: 26%; }
.dbx-comparison table.three-col th:nth-child(3), 
.dbx-comparison table.three-col td:nth-child(3) { width: 26%; }
.dbx-comparison table.three-col th:nth-child(4), 
.dbx-comparison table.three-col td:nth-child(4) { width: 26%; }

/* Garante texto legível na 3ª e 4ª coluna */
.dbx-comparison table.three-col td:nth-child(3),
.dbx-comparison table.three-col td:nth-child(4) {
    font-size: 14px;
    line-height: 1.4;
}

.dbx-comparison table.three-col td small {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.dbx-comparison th { background: #f9fafb; font-weight: 700; color: #111827; position: relative; }
.dbx-comparison th.is-winner { background: #eff6ff; color: #1d4ed8; }
.dbx-comparison .is-winner { background: #f8fafc; }

.dbx-comparison th .dbx-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    padding: 4px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase;
    border-radius: 4px;
    background: linear-gradient(135deg, hsl(45, 100%, 50%) 0%, hsl(25, 100%, 55%) 100%) !important;
    color: #fff;
    z-index:10;
}

.dbx-comparison .check { color: #16a34a; font-weight: bold; margin-right: 5px; }
.dbx-comparison .cross { color: #dc2626; font-weight: bold; margin-right: 5px; }

.dbx-btn {
    display: inline-block; padding: 12px 28px;
    background: linear-gradient(135deg, hsl(45, 100%, 50%) 0%, hsl(25, 100%, 55%) 100%);
    color: #fff !important; border-radius: 6px; text-decoration: none; font-weight: 600; transition: 0.2s;
    text-align: center;
}
.dbx-btn:hover { color: #fff !important; transform: translateY(-1px); }

.dbx-btn-gray { display: inline-block; padding: 10px 20px; background: #9ca3af; color: #fff !important; border-radius: 6px; text-decoration: none; text-align: center; }

.dbx-summary { margin-top: 1.5em; padding: 16px; background: #eff6ff; border-left: 4px solid #3b82f6; font-size: 14px; color: #1e3a8a; border-radius: 4px; }


/* ========================================
   RESPONSIVIDADE (MOBILE FIX)
   ======================================== */

@media (max-width: 768px) {
    /* 1. Faz o container permitir scroll lateral */
    .dbx-comparison {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Scroll suave no iOS */
        margin: 1.5em -16px; /* Estica o fundo nas bordas do celular */
        padding: 0 16px;
    }

    /* 2. Força a tabela a ter uma largura mínima para não esmagar o texto */
    .dbx-comparison table {
        table-layout: auto; /* Desativa o fixed no mobile */
        min-width: 700px;   /* Força o scroll em telas pequenas */
    }

    /* 3. Ajusta fontes e paddings para telas menores */
    .dbx-comparison th, .dbx-comparison td {
        padding: 12px 8px;
        font-size: 13px; /* Fonte levemente menor */
    }

    .dbx-comparison table.three-col td:nth-child(3),
    .dbx-comparison table.three-col td:nth-child(4) {
        font-size: 13px;
    }

    /* 4. Ajusta o Badge e Botões */
    .dbx-comparison th .dbx-badge {
        font-size: 9px;
        padding: 2px 6px;
        top: -10px;
        white-space: nowrap;
    }

    .dbx-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .dbx-btn-gray {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ========================================
   FAQ
   ======================================== */
.dbx-faq { margin: 3em 0; }
.dbx-faq h2 { font-size: 1.8em; margin-bottom: 1.2em; }
details { margin: .8em 0; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; transition: all 0.2s ease; }
details:hover { border-color: #3b82f6; }
details[open] { border-color: #3b82f6; box-shadow: 0 2px 8px rgba(59, 130, 246, .1); }
summary { padding: 18px 20px; font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; color: #1f2937; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; font-size: 20px; color: #9ca3af; }
details[open] summary::after { content: "-"; color: #3b82f6; }
details[open] summary { color: #3b82f6; border-bottom: 1px solid #e5e7eb; }
details p { padding: 18px 20px; margin: 0; color: #4b5563; font-size: 1.05rem; }

/* ========================================
   MOCKUPS
   ======================================== */
.dbx-mockup-wrapper {
    position: relative; margin: 3em 0; width: 100%; background: #ffffff;
    border: 1px solid #e5e7eb; border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: visible; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; text-align: center;
}
.dbx-ribbon-tag {
    position: relative; top: -14px;
    background: linear-gradient(135deg, #0000ff 0%, #0066cc 100%);
    color: #ffffff; font-size: 0.85rem; font-weight: 800; padding: 8px 16px; border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
    z-index: 10; border: 1px solid #0066cc; letter-spacing: 0.5px;
}
.dbx-ribbon-tag::before {
    content: ""; position: absolute; bottom: -6px; left: 10px;
    border-width: 6px 6px 0 0; 
    border-color: #0000ff transparent transparent transparent;
}
.dbx-mockup-header { padding: 48px 24px 1px 24px; }
.dbx-mockup-title { font-size: 1.6rem; font-weight: 800; color: #111827; margin: 0 0 10px 0 !important; line-height: 1.3; }
.dbx-mockup-desc { font-size: 1.1rem; color: #4b5563; margin-bottom: 20px !important; line-height: 1.5; }
.dbx-browser-container { border-radius: 8px; border: 1px solid #e5e7eb; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.dbx-browser-top { background: #f3f4f6; padding: 10px 14px; display: flex; gap: 8px; border-bottom: 1px solid #e5e7eb; align-items: center; }
.dbx-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dbx-red { background: #ff5f56; }
.dbx-yellow { background: #ffbd2e; }
.dbx-green { background: #27c93f; }
.dbx-mockup-image { background: #f9fafb; padding: 0; }
.dbx-mockup-image img { width: 100%; max-width: 100%; height: auto; display: block; margin: 0 auto; }
.dbx-mockup-footer { padding: 0 24px 24px 24px; box-sizing: border-box; }
.dbx-preview-pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: linear-gradient(135deg, hsl(45, 100%, 50%) 0%, hsl(25, 100%, 55%) 100%);
    color: #333; font-size: 0.75rem; font-weight: 800; padding: 8px 18px; border-radius: 9999px;
    margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.4); margin-top: 20px;
}
.dbx-preview-pill svg { width: 14px; height: 14px; }
.dbx-mockup-btn {
    display: block; width: 100%; box-sizing: border-box; background: #0ea5e9;
    color: #ffffff !important; font-weight: 600; font-size: 1.1rem; padding: 16px 24px;
    border-radius: 28px; text-decoration: none; transition: background 0.2s ease, transform 0.1s ease;
}
.dbx-mockup-btn:hover { background: #0284c7; text-decoration: none; transform: scale(1.02); }
.template-banner-exit { border: 2px solid #ef4444; background: #fef2f2; }
.template-banner-exit .dbx-mockup-btn { background: #ef4444; }
.template-banner-exit .dbx-mockup-btn:hover { background: #dc2626; }

/* ========================================
   PROS & CONS BOX
   ======================================== */
.dbx-pros-cons-box {
    display: flex; flex-direction: column; margin: 2em 0; border-radius: 12px;
    overflow: hidden; border: 1px solid #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; text-align: center;
}
@media (min-width: 768px) { .dbx-pros-cons-box { flex-direction: row; } }
.dbx-box-half { flex: 1; padding: 0; }
.dbx-pros { background-color: #f0fdf4; border-bottom: 1px solid #e5e7eb; }
@media (min-width: 768px) { .dbx-pros { border-bottom: none; border-right: 1px solid #e5e7eb; } }
.dbx-cons { background-color: #fef2f2; }
.dbx-box-title { font-weight: 800; font-size: 1.1rem; padding: 16px 20px; margin: 0; border-bottom: 1px solid #e5e7eb; }
.dbx-pros .dbx-box-title { color: #166534; background: #dcfce7; }
.dbx-cons .dbx-box-title { color: #991b1b; background: #fee2e2; }
.dbx-box-half ul { list-style: none; padding: 0; margin: 0; }
.dbx-box-half li { padding: 14px 20px; display: flex; text-align: left; align-items: center; gap: 12px; font-size: 0.9rem; color: #374151; line-height: 1.4; border-bottom: 1px solid #e5e7eb; }
.dbx-box-half li:last-child { border-bottom: none; }
.dbx-icon-check, .dbx-icon-cross { flex-shrink: 0; }

/* ========================================
   BUY IF / SKIP IF
   ======================================== */
.dbx-verdict-card { margin: 1.5em 0; border-radius: 12px; overflow: hidden; border: 1px solid #e5e7eb; background: #ffffff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.dbx-verdict-title { font-weight: 800; font-size: 1.3rem; padding: 20px 24px; margin: 0; color: #111827; border-bottom: 1px solid #e5e7eb; }
.dbx-verdict-row { display: flex; align-items: center; gap: 14px; padding: 16px 24px; font-size: 1.05rem; color: #374151; line-height: 1.4; }
.dbx-row-even { background: #ffffff; }
.dbx-row-odd { background: #f9fafb; }
.dbx-verdict-icon { flex-shrink: 0; }
.dbx-buy-card { margin-bottom: 1em; }
.dbx-skip-card { margin-top: 1em; }

/* ========================================
   TRUST UI — SOCIAL PROOF
   ======================================== */
.trust-ui-wrapper {
    margin: 2em auto; max-width: 650px; background: #ffffff;
    border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.trust-ui-header { display: flex; align-items: center; margin-bottom: 12px; }
.trust-avatar { width: 36px; height: 36px; border-radius: 50%; margin-right: 12px; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 14px; }
.trust-meta { display: flex; flex-direction: column; }
.trust-author { font-weight: 600; font-size: 0.95rem; color: #1c1c1c; }
.trust-author-link { font-weight: 600; font-size: 0.95rem; color: #3b82f6; text-decoration: none; }
.trust-author-link:hover { text-decoration: underline; }
.trust-time { font-size: 0.8rem; color: #787c7e; }
.trust-ui-body p { font-size: 0.95rem; line-height: 1.6; color: #1c1c1c; margin: 0 0 8px 0; }
.trust-ui-footer { display: flex; gap: 16px; margin-top: 12px; font-size: 0.85rem; color: #787c7e; font-weight: 500; }
.trust-action { cursor: default; }

/* Reddit */
.reddit-style { border-left: 4px solid #ff4500; }
.reddit-avatar { background: linear-gradient(135deg, #ff4500, #ff6b3d); }
.reddit-style .trust-author-link { color: #1c1c1c; }
.reddit-style .trust-author-link:hover { color: #ff4500; }

/* Trustpilot */
.trustpilot-style { border-top: 4px solid #00b67a; }
.trustpilot-stars { color: #00b67a; font-size: 1.5rem; letter-spacing: 3px; margin-bottom: 12px; }
.trustpilot-title { color: #00b67a; font-weight: 700; font-size: 1.05rem !important; margin-bottom: 8px !important; }

/* Quora */
.quora-style { border-left: 4px solid #b92b27; }
.quora-avatar { background: linear-gradient(135deg, #b92b27, #e04040); }

/* YouTube */
.youtube-style { border-left: 4px solid #ff0000; }
.youtube-avatar { background: linear-gradient(135deg, #ff0000, #ff4444); }

/* Blog */
.blog-style { border-left: 4px solid #6366f1; background: #f8fafc; }
.blog-style .trust-ui-body p { font-style: italic; }

/* Generic */
.generic-style { border-left: 4px solid #6b7280; background: #f9fafb; }
.generic-style .trust-ui-body p { font-style: italic; color: #4b5563; }

/* ========================================
   JSON-LD DEBUG SECTION (só aparece em preview local)
   ======================================== */
.jsonld-section { margin-top: 60px; padding: 30px; background: #1a1a2e; border-radius: 12px; border: 3px dashed #e74c3c; }
.jsonld-section-title { color: #e74c3c !important; font-size: 1.5em; margin-bottom: 10px; }
.jsonld-section-desc { color: #aaa; margin-bottom: 20px; }
.jsonld-block { margin: 20px 0; background: #16213e; border-radius: 8px; border: 2px solid #e74c3c; }
.jsonld-header { background: #e74c3c; color: white; padding: 12px 16px; text-align: center; }
.jsonld-code { margin: 0; padding: 16px; background: #0f0f23; color: #00ff00; font-family: monospace; font-size: 11px; overflow-x: auto; white-space: pre-wrap; }


/* --- AJUSTE GLOBAL DE LARGURA (MOBILE) --- */
@media (max-width: 768px) {
    
    /* 1. Alivia o aperto que VOCÊ colocou no article */
    article {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* 2. Alivia o aperto que o GENERATEPRESS coloca por padrão */
    .inside-article {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* 3. Ajusta o DripBox para não somar padding sobre padding */
    .mini-affiliate-box {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}