/* Blog leaddz.: mesma identidade do site (fundo escuro, verde-limão, Space Grotesk + JetBrains Mono) */
:root {
    --bg: #0a0b08; --bg-card: #131510; --bg-soft: rgba(19, 21, 16, 0.6);
    --text: #f2f4ec; --muted: #9aa094; --dim: #6e7468;
    --accent: #b7ff33; --accent-hover: #c9ff66;
    --line: hsla(75, 27%, 94%, 0.08); --line-strong: hsla(75, 27%, 94%, 0.14);
    --sans: 'Space Grotesk', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.accent { color: var(--accent); }
.eyebrow { font-family: var(--mono); color: var(--accent); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.75rem; }
.lead { color: var(--muted); font-size: 1.15rem; line-height: 1.65; }
.show-sm { display: none; }
@media (max-width: 640px) { .hide-sm { display: none; } .show-sm { display: inline; } }

/* Logo */
.logo { font-family: var(--mono); font-weight: 700; letter-spacing: -0.02em; }
.logo .dot { color: var(--accent); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.9rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; transition: background-color .3s, box-shadow .3s, transform .2s; }
.btn-accent { background: var(--accent); color: var(--bg); box-shadow: 0 0 40px rgba(183, 255, 51, 0.25); }
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 0 60px rgba(183, 255, 51, 0.35); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--bg-card); }

/* Cabeçalho (pílula flutuante, como na home) */
.site-header { position: sticky; top: 16px; z-index: 50; max-width: 920px; margin: 16px auto 0; padding: 0 24px; }
@media (max-width: 640px) { .site-header { padding: 0 16px; top: 10px; margin-top: 10px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.4rem 0.5rem 0.4rem 1rem; border-radius: 999px; background: rgba(19, 21, 16, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.brand { font-size: 1rem; }
.header-nav { display: flex; align-items: center; gap: 1rem; }
.nav-link { font-size: 0.8rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); margin-top: 6rem; padding: 2.5rem 0; color: var(--dim); font-size: 0.8rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-inner .brand { font-size: 1.25rem; color: var(--text); }
.copy { font-family: var(--mono); margin-top: 0.5rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-family: var(--mono); }
.footer-nav a:hover { color: var(--text); }
@media (max-width: 720px) { .footer-inner { flex-direction: column; text-align: center; } .footer-nav { justify-content: center; } }

/* Listagem */
.blog-hero { text-align: center; padding: 5rem 0 3rem; max-width: 820px; margin: 0 auto; }
.blog-hero h1 { font-size: clamp(2.2rem, 5vw + 0.5rem, 3.8rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 1.25rem; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem; }
.chip { padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 0.8rem; font-weight: 500; font-family: var(--mono); transition: all .2s; }
.chip:hover { color: var(--text); border-color: rgba(183, 255, 51, 0.4); }
.chip.active { background: rgba(183, 255, 51, 0.1); border-color: rgba(183, 255, 51, 0.5); color: var(--accent); }

.grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: border-color .3s, transform .3s, box-shadow .3s; }
.card:hover { border-color: rgba(183, 255, 51, 0.4); transform: translateY(-3px); box-shadow: 0 0 40px rgba(183, 255, 51, 0.08); }
.card[hidden] { display: none; }
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; background: #1a1d16; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 0.75rem; }
.card-text { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.25rem; flex: 1; }
.card-meta { color: var(--dim); font-size: 0.75rem; font-family: var(--mono); }
@media (min-width: 1024px) {
    .card-featured { grid-column: 1 / -1; }
    .card-featured .card-link { flex-direction: row; }
    .card-featured .card-media { flex: 0 0 55%; aspect-ratio: auto; min-height: 340px; }
    .card-featured .card-body { padding: 3rem; justify-content: center; }
    .card-featured .card-title { font-size: 2.1rem; letter-spacing: -0.025em; }
    .card-featured .card-text { flex: 0; font-size: 1.05rem; }
}

.empty { text-align: center; padding: 4rem 1.5rem; border: 1px dashed var(--line-strong); border-radius: 24px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.empty h1 { color: var(--text); font-size: 2rem; font-weight: 700; }

/* Artigo */
.article-wrap { max-width: 800px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 2.5rem 0 0; font-size: 0.78rem; color: var(--dim); font-family: var(--mono); }
.breadcrumb a:hover { color: var(--text); }
.article-header { padding: 2rem 0 2.5rem; }
.article-header h1 { font-size: clamp(2rem, 4vw + 0.6rem, 3.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 1.25rem; }
.article-meta { margin-top: 1.5rem; color: var(--dim); font-size: 0.8rem; font-family: var(--mono); }
.article-meta strong { color: var(--muted); font-weight: 500; }
.article-meta a { color: var(--accent); }
.article-cover { margin: 0 0 3rem; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.article-cover img { width: 100%; }

.toc { background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.6rem; margin-bottom: 3rem; }
.toc-title { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 0.75rem; }
.toc ol { padding-left: 1.25rem; display: grid; gap: 0.4rem; }
.toc li::marker { color: var(--dim); font-family: var(--mono); font-size: 0.85em; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--text); }

.prose { font-size: 1.1rem; line-height: 1.8; color: #c9cdc2; }
.prose > * + * { margin-top: 1.4rem; }
.prose h2 { color: var(--text); font-size: clamp(1.5rem, 2vw + 0.8rem, 1.95rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-top: 3.25rem; }
.prose h3 { color: var(--text); font-size: 1.3rem; font-weight: 600; line-height: 1.3; margin-top: 2.5rem; }
.prose h4 { color: var(--text); font-size: 1.1rem; font-weight: 600; margin-top: 2rem; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 1rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent-hover); }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li + li { margin-top: 0.5rem; }
.prose li::marker { color: var(--accent); }
.prose blockquote { border-left: 3px solid var(--accent); padding: 0.5rem 0 0.5rem 1.5rem; color: var(--text); font-size: 1.2rem; font-weight: 500; }
.prose img { border-radius: 16px; border: 1px solid var(--line); margin: 0 auto; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 3rem 0; }
.prose code { font-family: var(--mono); background: var(--bg-card); padding: 0.15em 0.4em; border-radius: 6px; font-size: 0.88em; }
.prose pre { background: var(--bg-card); border: 1px solid var(--line); padding: 1.25rem; border-radius: 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line-strong); padding: 0.7rem 1rem; text-align: left; }
.prose th { background: var(--bg-card); color: var(--text); font-weight: 600; }

.faq { margin-top: 4rem; }
.faq h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.faq details { background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.4rem; margin-bottom: 0.75rem; }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; gap: 1.5rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { color: var(--accent); font-size: 1.6rem; font-weight: 300; line-height: 1; transition: transform .3s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }

.author-box { margin-top: 4rem; padding: 1.5rem 1.75rem; border-radius: 16px; background: rgba(183, 255, 51, 0.04); border: 1px solid rgba(183, 255, 51, 0.2); color: var(--muted); }
.author-box strong { color: var(--text); font-weight: 600; }

.cta-box { margin-top: 4rem; padding: 3rem 1.5rem; text-align: center; border-radius: 24px; background: radial-gradient(ellipse at top, rgba(183, 255, 51, 0.12), transparent 70%), var(--bg-card); border: 1px solid rgba(183, 255, 51, 0.3); }
.cta-box h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.cta-box p { color: var(--muted); max-width: 560px; margin: 0 auto 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

.prose .cta-inline { margin: 2.5rem 0; padding: 1.5rem 1.75rem; border-radius: 16px; background: rgba(183, 255, 51, 0.06); border: 1px solid rgba(183, 255, 51, 0.3); display: grid; gap: 1rem; justify-items: start; }
.prose .cta-inline p { margin: 0; font-size: 1.02rem; color: var(--muted); }
.prose .cta-inline a.btn { text-decoration: none; color: var(--bg); }

.related { margin-top: 5rem; }
.section-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.article-wrap .grid { grid-template-columns: 1fr; }
@media (min-width: 720px) { .article-wrap .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Seletor de idioma (tradução automática do Google) */
.lang-switch { display: flex; align-items: center; gap: 0.15rem; padding: 0.2rem; border-radius: 999px; background: rgba(242, 244, 236, 0.04); border: 1px solid var(--line); }
.lang-switch button { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.55rem; border-radius: 999px; font-family: var(--mono); font-size: 0.7rem; font-weight: 500; opacity: 0.5; transition: opacity .2s, background-color .2s; }
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-pressed="true"] { opacity: 1; background: rgba(242, 244, 236, 0.1); }
@media (max-width: 420px) { .header-nav { gap: 0.5rem; } .lang-switch button { padding: 0.25rem 0.4rem; } .lang-switch svg { display: none; } }
/* Esconde a barra e os balões do Google Tradutor */
iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
body { top: 0 !important; }
font font { background: none !important; box-shadow: none !important; }
