/* ==========================================================================
   WSX BLOG - STYLES FOR ADVERTORIALS
   Foco em legibilidade e leitura mobile (Clean Design)
   ========================================================================== */

:root {
    --bg-page: #f8fafc;
    /* Leve cinza azulado para não cansar a vista */
    --bg-content: #ffffff;

    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --blue-primary: #2563eb;
    --blue-light: #eff6ff;

    --border-light: #e2e8f0;

    --radius-md: 12px;
    --radius-lg: 16px;

    --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==================== HEADER ==================== */
.blog-header {
    background: #ffffff;
    padding: 16px 24px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    text-decoration: none;
}

.brand-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #0f172a;
}

/* ==================== LAYOUT PRINCIPAL ==================== */
.article-container {
    max-width: 680px;
    /* Largura ideal para leitura não cansar a vista (aprox 75 caracteres por linha) */
    margin: 0 auto;
    background: var(--bg-content);
    padding: 32px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
}

@media (min-width: 768px) {
    .article-container {
        margin-top: 40px;
        margin-bottom: 40px;
        border-radius: var(--radius-lg);
        padding: 48px;
    }
}

/* ==================== HERO DO ARTIGO ==================== */
.article-category {
    display: inline-block;
    color: var(--blue-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.article-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 24px;
}

.article-meta {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--border-light);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 15px;
    font-weight: 700;
}

.publish-date {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==================== CORPO DO TEXTO (BLOCKS) ==================== */
.article-content p {
    font-size: 18px;
    /* Fonte maior para facilitar leitura mobile */
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.article-content h2 {
    font-size: 26px;
    font-weight: 800;
    margin-top: 48px;
    margin-bottom: 16px;
    color: #0f172a;
    letter-spacing: -0.01em;
}

/* Blockquote para quebra de atenção */
.article-content blockquote {
    font-size: 20px;
    font-weight: 600;
    font-style: italic;
    color: var(--blue-primary);
    line-height: 1.5;
    padding: 24px 32px;
    background: var(--blue-light);
    border-left: 4px solid var(--blue-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 40px 0;
}

/* Blocos de Destaque */
.article-highlight {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    padding: 32px;
    border-radius: var(--radius-md);
    margin: 40px 0;
}

.article-highlight h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0f172a;
}

.article-highlight ul {
    list-style: none;
}

.article-highlight li {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 12px;
    position: relative;
    padding-left: 24px;
    color: var(--text-secondary);
}

.article-highlight li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue-primary);
    font-weight: bold;
}

.article-highlight li strong {
    color: #0f172a;
}

/* ==================== CTA FINAL ==================== */
.article-cta-box {
    margin-top: 56px;
    padding: 40px 32px;
    background: #0f172a;
    /* Quebra drástica de cor para chamar atenção final */
    border-radius: var(--radius-lg);
    text-align: center;
    color: #ffffff;
}

.article-cta-box h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.article-cta-box p {
    font-size: 16px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-primary);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    padding: 18px 32px;
    border-radius: 8px;
    font-size: 16px;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* ==================== FOOTER ==================== */
.blog-footer {
    text-align: center;
    padding: 32px 24px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ==================== NOVOS ELEMENTOS (CARDS E AVISOS) ==================== */
.alert-category {
    color: #ef4444;
    /* Vermelho alerta */
}

.article-divider {
    height: 1px;
    background: var(--border-light);
    margin: 48px 0;
    width: 100%;
}

.reason-cards-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 40px 0;
}

.reason-card {
    background: #ffffff;
    border: 1.5px solid #ef4444;
    /* Borda vermelha sempre visível */
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(239, 68, 68, 0.15);
    /* Sombra avermelhada suave no hover */
}

.reason-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.reason-card-icon {
    width: 44px;
    height: 44px;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

.reason-card-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.reason-card-body p {
    font-size: 16px !important;
    /* Sobrescreve o 18px padrão do p */
    margin-bottom: 12px !important;
}

.reason-card-body p:last-child {
    margin-bottom: 0 !important;
}

.alert-box {
    background: #fef2f2 !important;
    border-left-color: #ef4444 !important;
    color: #991b1b !important;
}

.success-highlight {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.success-highlight li::before {
    color: #16a34a;
}

.cta-whatsapp {
    background: #25D366;
    /* Verde WhatsApp */
    color: #ffffff;
}

.cta-whatsapp:hover {
    background: #128C7E;
}

/* ==================== IMAGENS DINÂMICAS ==================== */
.blog-img-container {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.img-wide {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    max-height: 350px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.img-float-right {
    float: right;
    width: 45%;
    max-width: 280px;
    margin-left: 32px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

.img-round-center {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin: 0 auto 32px auto;
    display: block;
    border: 4px solid #ffffff;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Ajustes Mobile Finos */
@media (max-width: 640px) {
    .article-title {
        font-size: 28px;
    }

    .article-content p {
        font-size: 17px;
    }

    .article-content blockquote {
        font-size: 18px;
        padding: 20px;
    }

    .article-highlight {
        padding: 24px;
    }

    .article-cta-box {
        padding: 32px 24px;
    }

    .reason-card {
        padding: 24px;
    }

    .reason-card-header h3 {
        font-size: 19px;
    }

    .img-float-right {
        float: none;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-bottom: 24px;
    }
}

/* ==================== POP-UP QUALIFICAÇÃO ==================== */
.qualification-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.qualification-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.qualification-modal {
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    position: relative;
}

.qualification-modal-overlay.active .qualification-modal {
    transform: translateY(0) scale(1);
}

.qualification-modal h3 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.3;
}

.qualification-modal p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-yes {
    background: #25D366;
    color: white;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-yes:hover {
    background: #128C7E;
}

.btn-no {
    background: #f1f5f9;
    color: #64748b;
    padding: 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-no:hover {
    background: #e2e8f0;
    color: #475569;
}

.modal-close-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    cursor: pointer;
    color: #94a3b8;
    background: transparent;
    border: none;
    font-size: 24px;
}
.modal-close-icon:hover {
    color: #0f172a;
}