/*
 * DENTCOMM - ESTILOS DE ARTIGO PREMIUM
 * Foco: Leitura Imersiva, Conversão e Glassmorphism
 */

/* --- HERO DO ARTIGO --- */
.article-hero {
    position: relative;
    padding: calc(var(--header-height) + 4rem) 0 4rem;
    text-align: center;
    background: var(--bg-body);
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: -20%; left: 50%;
    transform: translateX(-50%);
    width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(22, 254, 237, 0.12) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
    z-index: 0;
}

.article-breadcrumbs {
    position: relative; z-index: 1;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--primary-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.article-breadcrumbs a { color: var(--primary-cyan-text); }

.article-title {
    position: relative; z-index: 1;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: var(--primary-dark);
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.article-meta {
    position: relative; z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 0.95rem;
    color: var(--text-body);
}

.meta-item { display: flex; align-items: center; gap: 0.5rem; }
.meta-icon { color: var(--primary-cyan); }

/* --- LAYOUT PRINCIPAL --- */
.article-container {
    display: grid;
    grid-template-columns: 1fr 350px; /* Conteúdo + Sidebar Fixa */
    gap: 4rem;
    padding-bottom: 4rem;
    position: relative;
    z-index: 1;
}

/* --- CONTEÚDO DO TEXTO (Tipografia Editorial) --- */
.article-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-body);
    font-weight: 400;
}

/* Títulos dentro do texto */
.article-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-dark);
    margin: 3rem 0 1.5rem;
    position: relative;
    padding-left: 1rem;
}
.article-content h2::before {
    content: '';
    position: absolute; left: 0; top: 5px; bottom: 5px;
    width: 4px; background: var(--primary-cyan);
    border-radius: 4px;
}

.article-content h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 2.5rem 0 1rem;
    font-weight: 700;
}

.article-content p { margin-bottom: 1.5rem; }

/* Citações (Highlight) */
.article-quote {
    background: linear-gradient(135deg, rgba(22, 254, 237, 0.05) 0%, rgba(22, 254, 237, 0.01) 100%);
    border: 1px solid rgba(22, 254, 237, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    margin: 3rem 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--primary-dark);
    text-align: center;
    font-style: italic;
    position: relative;
}
.article-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-cyan);
    opacity: 0.3;
    position: absolute;
    top: -1rem; left: 1rem;
    line-height: 1;
}

/* Listas */
.article-content ul {
    margin-bottom: 2rem;
    list-style: none;
}
.article-content li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}
.article-content li::before {
    content: '✓';
    position: absolute; left: 0; top: 2px;
    color: var(--primary-cyan-text);
    font-weight: 800;
}

/* Destaque Importante */
.callout-box {
    background: var(--bg-card);
    border-left: 4px solid var(--accent-secondary, #FFA500);
    padding: 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
    font-size: 1.1rem;
}

/* --- SIDEBAR STICKY (CTA) --- */
.article-sidebar { position: relative; }

.sidebar-sticky-wrapper {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    text-align: center;
}

.sidebar-card.cta-card {
    background: linear-gradient(135deg, #121212 0%, #2d2d2d 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}
[data-theme="light"] .sidebar-card.cta-card {
    background: linear-gradient(135deg, #16FEED 0%, #00D4AA 100%);
    color: #000;
    border: none;
}

.cta-card h4 { font-size: 1.5rem; margin-bottom: 1rem; color: inherit; }
.cta-card p { font-size: 0.95rem; margin-bottom: 1.5rem; opacity: 0.9; color: inherit; }
.cta-card .btn { width: 100%; justify-content: center; }

/* --- AUTOR E SHARE --- */
.article-footer {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}
[data-theme="dark"] .article-footer { border-top-color: rgba(255,255,255,0.1); }

.author-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}
.author-img {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-cyan);
}
.author-info h4 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.author-info p { font-size: 0.9rem; margin: 0; opacity: 0.8; }

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
    .article-container { grid-template-columns: 1fr; }
    .article-sidebar { order: -1; margin-bottom: 2rem; }
    .sidebar-sticky-wrapper { position: static; }
}

@media (max-width: 768px) {
    .article-title { font-size: 2.2rem; }
    .article-content { font-size: 1.1rem; }
    .author-box { flex-direction: column; text-align: center; }
}