
/* =========================================
   BLOG ARTICLE STYLES
   ========================================= */

/* --- ANIMAÇÕES GLOBAIS (Replicadas para garantir funcionamento isolado) --- */
@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7); }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 4px rgba(96, 165, 250, 0); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
}

@keyframes shine-sweep {
    0% { left: -150%; }
    40% { left: 150%; }
    100% { left: 150%; }
}

/* --- HERO DO ARTIGO --- */
.article-hero {
    padding-top: 180px;
    padding-bottom: 60px;
    position: relative;
    /* Fundo sutilmente diferente para destacar o cabeçalho */
    background: radial-gradient(circle at 50% 0%, rgba(47, 124, 255, 0.08), transparent 70%);
}

.article-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.breadcrumb a {
    color: #64748b;
    transition: color 0.3s ease;
}

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

.breadcrumb span {
    color: var(--color-accent);
}

/* Título */
.article-hero h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Meta Data (Chips) */
.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

/* Chip Genérico */
.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    backdrop-filter: blur(4px);
}

.meta-chip i {
    color: var(--color-accent);
    font-size: 0.9em;
}

/* 
   CHIP DE CATEGORIA PREMIUM (Estilo Hero Eyebrow) 
   Com Bullet Pulsante e Brilho 
*/
.meta-chip.category {
    background: rgba(30, 58, 138, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: #bfdbfe;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15), inset 0 0 10px rgba(59, 130, 246, 0.05);
    position: relative;
    overflow: hidden;
    padding-left: 14px;
    padding-right: 20px;
}

/* O Bullet Pulsante */
.meta-chip.category .pulsing-dot {
    display: block;
    width: 6px; 
    height: 6px; 
    background: #60a5fa; 
    border-radius: 50%; 
    box-shadow: 0 0 8px #60a5fa;
    animation: pulse-dot 2s infinite ease-in-out;
}

/* Efeito Scanner/Brilho passando */
.meta-chip.category::before {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-20deg);
    animation: shine-sweep 4s infinite ease-in-out;
    pointer-events: none;
}

/* Featured Image */
.article-featured-image {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* --- LAYOUT GRID (Conteúdo + Sidebar) --- */
.article-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 340px; /* Conteúdo Fluido | Sidebar Fixa */
    gap: 60px;
    position: relative;
    margin-bottom: 100px;
}

/* --- CONTEÚDO DO ARTIGO (Typography) --- */
.article-content {
    font-family: 'Inter', sans-serif;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
}

.article-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    font-size: 1.8rem;
    margin-top: 48px;
    margin-bottom: 24px;
    font-weight: 700;
}

.article-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: #e2e8f0;
    font-size: 1.4rem;
    margin-top: 32px;
    margin-bottom: 16px;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 24px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 12px;
    position: relative;
}

.article-content ul li::marker {
    color: var(--color-accent);
}

/* Callout Boxes (Destaques) */
.callout-box {
    background: rgba(30, 41, 59, 0.4);
    border-left: 4px solid var(--color-accent);
    padding: 24px;
    border-radius: 0 12px 12px 0;
    margin: 32px 0;
    backdrop-filter: blur(8px);
}

.callout-box h4 {
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.callout-box.warning {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}
.callout-box.warning h4 { color: #fca5a5; }

.callout-box.success {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}
.callout-box.success h4 { color: #6ee7b7; }

/* Mini Framework Visual */
.mini-framework {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 40px 0;
    padding: 30px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.framework-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.f-step-num {
    background: var(--color-accent);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 0 10px rgba(47, 124, 255, 0.4);
}

/* --- SIDEBAR --- */
.article-sidebar {
    position: sticky;
    top: 110px; /* Altura do Header + respiro */
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s ease;
}

/* CTA Card */
.sidebar-cta {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(47, 124, 255, 0.3);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.sidebar-cta h3 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 12px;
    line-height: 1.3;
}

.sidebar-cta p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 24px;
}

/* Table of Contents */
.toc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.toc-list li {
    list-style: none;
    padding-left: 12px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.toc-list a {
    color: #94a3b8;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
}

.toc-list a:hover {
    color: white;
    transform: translateX(4px);
}

.toc-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .article-container {
        grid-template-columns: 1fr; /* Stack vertical */
    }

    .article-hero h1 {
        font-size: 2.2rem;
    }

    .article-sidebar {
        position: relative; /* Remove sticky no mobile */
        top: 0;
        order: 2; /* Sidebar vai para baixo */
        margin-top: 40px;
    }
}
