/* Estilos compartilhados do blog (listagem e posts). Mesmo visual do site: Inter, gradiente azul e roxo. */

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

body {
    font-family: Inter, sans-serif;
    background: #f6f8ff;
    color: #0b1a3a;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Rodapé fica no fim da tela quando o conteúdo é curto */
body > main { flex: 1 0 auto; }
footer { margin-top: auto; }

/* ===== NAV (igual às páginas de produto) ===== */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.menu-toggle { font-size: 22px; cursor: pointer; }

.menu {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: white;
    display: none;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    align-items: flex-end;
}

.menu a {
    text-align: right;
    text-decoration: none;
    color: #0b1a3a;
    font-weight: 500;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-row {
    padding: 78px 5% 0;
    font-size: 12px;
    color: #5c6b8a;
}

.breadcrumb-row a { color: #1f4fff; text-decoration: none; }

/* ===== HERO DA LISTAGEM ===== */
.blog-hero {
    padding: 24px 5% 40px;
    background: linear-gradient(135deg, #eef3ff, #f6f2ff);
}

.blog-hero h1 {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(90deg, #1f4fff, #7a3cff, #00c2ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-hero p { font-size: 14px; margin-top: 12px; color: #5c6b8a; max-width: 640px; }

/* ===== LISTA DE POSTS ===== */
.post-list { padding: 40px 5%; display: grid; align-content: start; grid-template-columns: 1fr; gap: 20px; }

.post-card {
    display: block;
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #f4f7ff);
    border: 1px solid #e6ecff;
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}

.post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(31, 79, 255, 0.14); }

.post-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    background: #eef2ff;
    color: #1f4fff;
}

.post-card h2 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.post-card p { font-size: 13px; color: #5c6b8a; margin-top: 8px; }
.post-card .post-date { font-size: 12px; color: #8a96b2; margin-top: 10px; display: block; }

.empty-state {
    grid-column: 1 / -1;
    padding: 28px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px dashed #cfd8ff;
    text-align: center;
    color: #5c6b8a;
    font-size: 14px;
}

/* ===== ARTIGO ===== */
.article { max-width: 760px; margin: 0 auto; padding: 24px 5% 50px; }

.article h1 { font-size: 1.7rem; font-weight: 700; line-height: 1.25; }

.article .post-meta { font-size: 13px; color: #5c6b8a; margin: 10px 0 24px; }

.article h2 { font-size: 1.25rem; font-weight: 700; margin: 32px 0 10px; line-height: 1.3; }

.article p, .article li { font-size: 16px; color: #24324f; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 16px 22px; }
.article li { margin-bottom: 6px; }
.article a { color: #1f4fff; }

.article blockquote {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-left: 4px solid #7a3cff;
    background: #f0f4ff;
    border-radius: 0 10px 10px 0;
}

.article table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14px; }
.article th, .article td { border: 1px solid #e6ecff; padding: 8px 10px; text-align: left; vertical-align: top; }
.article th { background: #f0f4ff; }

/* Caixa do produto e leitura relacionada */
.product-box, .related-box {
    margin: 28px 0;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #f4f7ff);
    border: 1px solid #e6ecff;
}

.product-box h3, .related-box h3 { font-size: 15px; margin-bottom: 6px; }
.product-box p, .related-box p { font-size: 14px; margin-bottom: 10px; }

/* ===== BOTÕES ===== */
.btn-main {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1f4fff, #7a3cff);
    color: white !important;
    border: none;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.article-cta {
    margin-top: 32px;
    padding: 28px 20px;
    border-radius: 16px;
    text-align: center;
    background: linear-gradient(135deg, #1f4fff, #7a3cff);
    color: white;
}

.article-cta h2 { margin: 0 0 8px; font-size: 1.3rem; color: white; }
.article-cta p { color: white; opacity: .9; font-size: 14px; }
.article-cta .btn-main { background: white; color: #1f4fff !important; margin-top: 8px; }

.signature { font-size: 14px; color: #5c6b8a; margin-top: 28px; }

/* ===== WHATS FLUTUANTE ===== */
.whats-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
}

/* ===== COOKIES ===== */
.cookie-banner {
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: white;
    border-radius: 14px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.cookie-text { font-size: 13px; margin-bottom: 10px; }
.cookie-actions { display: flex; gap: 10px; }
.btn-cookie { flex: 1; padding: 10px; border-radius: 8px; border: none; font-size: 13px; }
.btn-cookie.primary { background: linear-gradient(135deg, #1f4fff, #7a3cff); color: white; }
.btn-cookie.secondary { background: #eef2ff; }

/* ===== FOOTER ===== */
footer { padding: 40px 20px; text-align: center; color: #777; font-size: 14px; }
footer a { margin: 0 8px; text-decoration: none; color: #5c6b8a; }
footer .meta-note { display: block; margin-top: 10px; font-size: 12px; color: #5c6b8a; }

@media (min-width: 768px) {
    nav { justify-content: flex-start; }
    .menu-toggle { display: none; }
    .menu {
        position: static !important;
        display: flex !important;
        flex-direction: row;
        gap: 30px;
        margin-left: auto;
        width: auto;
        padding: 0;
    }
    .blog-hero { padding: 24px 5% 60px; }
    .blog-hero h1 { font-size: 2.6rem; }
    .post-list { grid-template-columns: repeat(2, 1fr); }
    .article h1 { font-size: 2.2rem; }
    .whats-float { bottom: 70px; }
}
