/* Blog do Clube Suprema: tokens de styles.css (docs/design-system.md) + camada "luxo"
   (preto profundo, feixes de luz dourados, degradê dourado em botões e destaques, pílulas com borda dourada). */
/* Tokens da camada luxo (--gold-grad, --gold-hi, --panel…) vivem em styles.css. */

/* Fundo: imagem com feixes dourados e partículas, fixa atrás de tudo */
body.page-blog, body.page-post { background: #000; } /* fundo 100% preto */

/* Topo e marca */
.page-blog .topbar, .page-post .topbar { background: rgba(0, 0, 0, .82); }
.topnav-blog { display: flex; }
@media (max-width: 899px) { .topnav-blog { display: none; } }

/* Botões, pílulas (.eyebrow) e marca seguem as regras globais de styles.css. */
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.post-tags span { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); background: rgba(14, 10, 5, .6); border: 1px solid var(--gold-border); border-radius: var(--pill); padding: 4px 11px; }

.blog { max-width: 1120px; margin: 0 auto; padding: 24px var(--side) 64px; }
.crumbs { color: var(--muted); font-size: .85rem; margin: 8px 0 24px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--text); }

/* Cabeçalho do índice */
.blog-head { max-width: 820px; margin: 0 auto 44px; text-align: center; }
.blog-head h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.02; margin: 0 0 16px; text-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.blog-head .eyebrow { margin-bottom: 18px; }
.blog-head .lead { max-width: 640px; margin: 0 auto; }
.blog-head::after { content: ""; display: block; width: min(520px, 70%); height: 1px; margin: 30px auto 0; background: var(--gold-line); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 18px 0 0; }

/* Cards */
.post-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.post-card { padding: 0; display: flex; flex-direction: column; background: var(--card-luxo); border: 1px solid var(--gold-border-soft); }
.post-card:hover { border-color: var(--gold-border); transform: translateY(-3px); box-shadow: 0 18px 60px rgba(0, 0, 0, .55), var(--glow-gold); }
.post-card-cover { display: block; aspect-ratio: 1200 / 630; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--bg-0); border-bottom: 1px solid var(--gold-border-soft); }
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.post-card:hover .post-card-cover img { transform: scale(1.03); }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.post-card h2 { font-size: 1.15rem; line-height: 1.3; margin: 0; font-weight: 800; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--gold-hi); }
.post-card .muted { margin: 0; font-size: .95rem; }
.post-meta { color: var(--muted); font-size: .85rem; margin: 4px 0 0; }

/* Artigo */
.post { max-width: 760px; margin: 0 auto; }
.post-head h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; margin: 12px 0 14px; text-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.post-head .lead { font-size: 1.15rem; color: #d9d4cb; }
.post-cover { margin: 24px 0 8px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gold-border-soft); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(239, 161, 68, .12); }
.post-cover img { display: block; width: 100%; height: auto; }

.toc { margin: 28px 0; padding: 18px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--gold-border-soft); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.toc strong { display: block; margin-bottom: 8px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: #d9d4cb; }
.toc a { color: #d9d4cb; text-decoration: none; }
.toc a:hover { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }

.prose { font-size: 1.05rem; line-height: 1.75; color: #e6e2da; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; letter-spacing: -.015em; margin: 44px 0 14px; padding-top: 14px; position: relative; scroll-margin-top: 90px; }
.prose h2::before { content: ""; position: absolute; left: 0; top: 0; width: 72px; height: 2px; background: var(--gold-grad); box-shadow: 0 0 14px rgba(239, 161, 68, .5); }
.prose h3 { font-size: 1.15rem; margin: 28px 0 10px; scroll-margin-top: 90px; }
.prose h4 { font-size: 1rem; margin: 22px 0 8px; color: var(--gold-hi); }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--gold-hi); text-underline-offset: 3px; }
.prose strong { color: #fff; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 24px; display: grid; gap: 6px; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose blockquote { margin: 24px 0; padding: 14px 20px; border-left: 3px solid var(--accent); background: rgba(239, 161, 68, .07); border-radius: 0 12px 12px 0; color: #d9d4cb; }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; height: 1px; background: var(--gold-line); margin: 36px 0; opacity: .7; }
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: rgba(255, 255, 255, .08); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--bg-0); border: 1px solid var(--gold-border-soft); border-radius: 12px; padding: 14px 16px; overflow: auto; font-size: .9rem; }
.prose pre code { background: none; padding: 0; }
.prose figure { margin: 26px 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--gold-border-soft); background: var(--bg-0); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.prose figure.narrow img, .prose .narrow img { max-width: 420px; margin: 0 auto; }
.prose figcaption { margin-top: 10px; color: var(--muted); font-size: .88rem; text-align: center; }
.prose img { max-width: 100%; height: auto; }
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--gold-border-soft); border-radius: 12px; background: rgba(10, 8, 6, .55); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: rgba(239, 161, 68, .12); color: var(--gold-hi); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.prose tr:last-child td { border-bottom: 0; }

/* Caixas */
.post-cta, .post-note, .post-tip, .post-shot { margin: 28px 0; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--gold-border-soft); }
.post-cta { background: linear-gradient(180deg, rgba(34, 24, 11, .96), rgba(10, 8, 6, .96)); border-color: var(--gold-border); box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 50px rgba(239, 161, 68, .14); position: relative; overflow: hidden; }
.post-cta::before { content: ""; position: absolute; inset: 0; background: var(--glass-gold); pointer-events: none; }
.post-cta::after { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: var(--gold-line); }
.post-cta > * { position: relative; }
.post-cta .box-title { display: block; font-size: 1.35rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0; color: #fff; margin-bottom: 8px; }
.post-cta p:last-child { margin: 0; }
.post-cta-end { margin-top: 44px; text-align: center; padding: 36px 24px; }
.post-cta-end .cta-actions { justify-content: center; }
.post-note { background: var(--panel); }
.post-tip { background: rgba(40, 167, 69, .08); border-color: rgba(40, 167, 69, .35); }
.post-shot { background: var(--panel); border-style: dashed; }
.box-title { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: 6px; }
.post-tip .box-title { color: #4ade80; }
.post-note p:last-child, .post-tip p:last-child, .post-shot p:last-child { margin: 0; }

/* FAQ e rodapé do post */
.post-faq { margin-top: 40px; }
.post-faq h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; }
.post-faq details { background: var(--panel); border: 1px solid var(--gold-border-soft); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.post-faq details[open] { border-color: var(--gold-border); box-shadow: var(--glow-gold); }
.post-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: "+"; color: var(--gold-hi); font-size: 1.3rem; line-height: 1; }
.post-faq details[open] summary::after { content: "–"; }
.post-faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; }
.post-foot { margin-top: 28px; padding-top: 22px; position: relative; }
.post-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gold-line); }

.related { max-width: 1120px; margin: 56px auto 0; }
.related > h2 { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 20px; text-align: center; }

/* Rodapé */
.page-blog .footer, .page-post .footer { border-top: 0; position: relative; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .65)); }
.page-blog .footer::before, .page-post .footer::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: var(--gold-line); }
.page-blog .footer a, .page-post .footer a { color: var(--gold-hi); }

@media (prefers-reduced-motion: reduce) { .post-card-cover img { transition: none; } .post-card:hover { transform: none; } }
