/* Tokens compartilhados com style.css — mesma fonte em sites/shared/css/,
   sincronizada por `npm run sync:css` (ver scripts/sync-shared-css.js). */
@import url('tokens.css');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    background: var(--bg);

    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

/* Nav */
nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    position: sticky; top: 0; z-index: 100;
}
.nav-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center;
    justify-content: space-between; height: 60px;
}
.nav-logo {
    height: 32px;
}
.nav-back {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.82rem; font-weight: 500;
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 50px;
    border: 1px solid transparent;
    transition: all var(--t);
}
.nav-back:hover {
    color: var(--text);
    background: var(--overlay-2);
    border-color: var(--border);
}

/* Hero do artigo */
.article-hero {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 100px 2rem 40px; text-align: center;
    position: relative;
}
.article-hero .tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--accent-soft); color: var(--accent);
    padding: 5px 14px; border-radius: 50px;
    font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 1rem;
    border: 1px solid rgba(30,66,56,0.2);
    position: relative;
}
.article-hero h1 {
    font-size: 2rem; font-weight: 800;
    max-width: 800px; margin: 0 auto 1rem;
    line-height: 1.3; letter-spacing: -0.02em;
    color: var(--text); position: relative;
}
.article-meta {
    display: flex; align-items: center; justify-content: center;
    gap: 1.5rem; color: var(--text-muted);
    font-size: 0.78rem; flex-wrap: wrap;
    position: relative;
}
.article-meta span { display: flex; align-items: center; gap: 4px; }
.article-hero-img {
    max-width: 800px; margin: 2rem auto 0;
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}
.article-hero-img img { width: 100%; display: block; opacity: 0.85; }

/* Conteudo */
.article-content {
    max-width: 720px; margin: 0 auto; padding: 3rem 2rem 4rem;
}
.article-content p {
    margin-bottom: 1.5rem; font-size: 0.95rem;
    color: var(--text-secondary); line-height: 1.9;
}
.article-content p:first-child {
    font-size: 1.05rem; font-weight: 500; color: var(--text);
}
.article-content ul {
    margin: 0 0 1.5rem 0; padding: 0; list-style: none;
}
.article-content ul li {
    padding: 0.5rem 0 0.5rem 1.3rem; position: relative;
    font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8;
}
.article-content ul li::before {
    content: ''; position: absolute; left: 0; top: 14px;
    width: 5px; height: 5px;
    background: var(--accent); border-radius: 50%;
}
.article-content strong { color: var(--text); }
.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem; margin: 1.5rem 0;
    background: var(--bg-card);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-style: italic; color: var(--text-secondary);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.article-source {
    max-width: 720px; margin: 0 auto; padding: 0 2rem 3rem;
}
.article-source p {
    font-size: 0.78rem; color: var(--text-muted);
    border-top: 1px solid var(--border); padding-top: 1.5rem;
}
.article-source strong { color: var(--text-secondary); }

.article-tags {
    max-width: 720px; margin: 0 auto; padding: 0 2rem 3rem;
    display: flex; flex-wrap: wrap; gap: 8px;
}
.article-tags span {
    background: var(--accent-soft); color: var(--accent);
    font-size: 0.7rem; font-weight: 600;
    padding: 4px 14px; border-radius: 50px;
    border: 1px solid rgba(30,66,56,0.15);
}

/* CTA */
.article-cta {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem; text-align: center;
}
.article-cta a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 8px;
    font-size: 0.85rem; font-weight: 600; text-decoration: none;
    background: var(--accent); color: #fff;
    font-family: 'Roboto', sans-serif;
    transition: all var(--t);
    box-shadow: var(--shadow-1);
}
.article-cta a:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

footer {
    --bg: #0a0a0a;
    --text: #fafafa;
    --text-secondary: rgba(255,255,255,0.72);
    --text-muted: rgba(255,255,255,0.55);
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.14);
    background: var(--bg);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    text-align: center; padding: 2rem; font-size: 0.78rem;
}
footer span { color: var(--accent); }

@media (max-width: 768px) {
    .article-hero h1 { font-size: 1.4rem; }
    .article-hero { padding: 80px 1.5rem 30px; }
    .article-content { padding: 2rem 1.5rem 3rem; }
}
