/* Blog: listagem e artigos. Reaproveita tokens e o vidro (.glass) de style.css. */

body.page-blog { background: var(--bg); }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 52rem); margin-inline: auto; }

/* ---------- Listagem: hero ---------- */
.blog-hero {
  position: relative; isolation: isolate; overflow: clip; text-align: center;
  padding-block: clamp(3.5rem, 9vw, 6rem) clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(60% 80% at 50% -10%, rgb(0 95 250 / .4), transparent 70%),
    radial-gradient(40% 50% at 100% 70%, rgb(91 148 255 / .16), transparent 70%),
    var(--bg);
}
.blog-hero h1 { font-size: var(--step-3); }
.blog-hero .lede { margin: 1rem auto 0; font-size: var(--step-1); line-height: 1.5; color: #c6d3ea; max-width: 44ch; }
.blog-search { display: flex; align-items: center; gap: .7rem; width: min(100%, 30rem); margin: 2rem auto 0; padding: .35rem 1.1rem; border-radius: 999px; color: #9fb4d8; }
.blog-search input { flex: 1; min-width: 0; font: inherit; font-size: var(--step-0); color: #fff; background: none; border: 0; padding: .65rem 0; }
.blog-search input::placeholder { color: #8ea3c7; }
.blog-search input:focus { outline: none; }
.blog-search:focus-within { border-color: rgb(140 180 255 / .6); }

/* ---------- Cards de post (leves: sem backdrop-filter, são muitos) ---------- */
.blog-list { padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5rem); }
.post-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr)); }
.post-card {
  --lit: 0;
  display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--radius); text-decoration: none; color: inherit;
  background: linear-gradient(155deg, rgb(255 255 255 / calc(.07 + var(--lit) * .06)), rgb(255 255 255 / calc(.025 + var(--lit) * .03)));
  border: 1px solid rgb(255 255 255 / calc(.12 + var(--lit) * .2));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / calc(.12 + var(--lit) * .12)), 0 18px 40px -26px rgb(0 20 80 / calc(.5 + var(--lit) * .4)), 0 0 calc(var(--lit) * 30px) -12px rgb(91 148 255 / calc(var(--lit) * .55));
  transition: --lit 1s cubic-bezier(.5, 0, .35, 1);
}
.post-card:hover, .post-card:focus-visible { --lit: 1; transition-duration: .6s; }
.post-card .thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; scale: calc(1 + var(--lit) * .04); transition: scale .9s var(--ease); }
.post-card .body { display: grid; align-content: start; gap: .55rem; padding: 1.2rem 1.35rem 1.4rem; }
.post-card .meta { display: flex; flex-wrap: wrap; gap: .1rem .5rem; font-size: .78rem; color: #9fb4d8; }
.post-card .meta i { font-style: normal; }
.post-card h3, .post-card h2 { font-size: var(--step-1); line-height: 1.25; color: #fff; }
.post-card .excerpt { color: var(--muted); font-size: var(--step--1); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .more { margin-top: .4rem; font-size: var(--step--1); font-weight: 600; color: var(--blue-bright); }
.post-card .more::after { content: " →"; display: inline-block; transition: translate .4s var(--ease); }
.post-card:hover .more::after { translate: 4px 0; }

/* destaque */
.feat-wrap { margin-bottom: 1.25rem; }
.post-card-big { grid-template-rows: none; }
@media (min-width: 62rem) { .post-card-big { grid-template-columns: 1.25fr 1fr; } .post-card-big .thumb { aspect-ratio: auto; min-height: 22rem; } .post-card-big .body { padding: 2.25rem; align-content: center; gap: .9rem; } }
.post-card-big h2 { font-size: var(--step-2); letter-spacing: -0.02em; }
.post-card-big .excerpt { -webkit-line-clamp: 4; line-clamp: 4; font-size: var(--step-0); }

.no-results { margin: 2rem 0 0; text-align: center; color: var(--muted); }

/* ---------- Newsletter ---------- */
.newsletter { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.newsletter-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 20px; }
.newsletter-in h2 { font-size: var(--step-2); max-width: 22ch; }
.newsletter-in p { margin: .6rem 0 0; color: var(--muted); max-width: 44ch; }

/* ---------- Artigo ---------- */
.art-head { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); background: radial-gradient(60% 90% at 50% -20%, rgb(0 95 250 / .34), transparent 70%), var(--bg); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .82rem; color: #9fb4d8; margin-bottom: 1.25rem; }
.crumbs a { color: var(--blue-bright); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.art-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); max-width: 26ch; }
.by { display: flex; align-items: center; gap: .9rem; margin: 1.5rem 0 0; font-size: var(--step--1); color: var(--muted); line-height: 1.5; }
.by strong { color: #fff; font-weight: 600; }
.av { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; font-weight: 600; font-size: .9rem; color: #fff; background: var(--blue); flex: none; }

.art-cover { margin: 0 0 clamp(2rem, 5vw, 3.5rem); position: relative; }
.art-cover::before { content: ""; position: absolute; inset: 10% 6% -6%; z-index: -1; background: radial-gradient(closest-side, rgb(0 95 250 / .55), transparent); filter: blur(40px); }
.art-cover img { width: 100%; max-height: 34rem; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 80px -30px rgb(0 0 0 / .8); }

.art-grid { display: grid; gap: 2.5rem clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(3rem, 7vw, 5rem); }
@media (min-width: 62rem) { .art-grid { grid-template-columns: minmax(0, 46rem) minmax(0, 18rem); justify-content: space-between; align-items: start; } }

.art-body { font-size: 1.0625rem; line-height: 1.85; color: #d3deef; }
.art-body > * + * { margin-top: 1.3rem; }
.art-body p { margin-bottom: 0; max-width: none; }
.art-body h2 { font-size: var(--step-2); margin-top: 3rem; max-width: none; scroll-margin-top: 6rem; }
.art-body h3 { font-size: var(--step-1); margin-top: 2rem; }
.art-body strong { color: #fff; font-weight: 600; }
.art-body a { color: var(--blue-bright); text-underline-offset: 3px; }
.art-body ul, .art-body ol { padding-left: 1.3rem; display: grid; gap: .6rem; }
.art-body ul { list-style: disc; } .art-body ol { list-style: decimal; }
.art-body li::marker { color: var(--blue-bright); }
.art-body figure { margin: 2rem 0; }
.art-body img { width: 100%; height: auto; border-radius: 14px; }
.art-body blockquote { margin: 2rem 0; padding: 1.1rem 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: rgb(255 255 255 / .04); color: #fff; font-size: 1.15rem; }

.art-side { display: grid; gap: 1.25rem; }
@media (min-width: 62rem) { .art-side { position: sticky; top: 6rem; } }
.art-toc { padding: 1.25rem 1.35rem; border-radius: 14px; border: 1px solid var(--line); background: rgb(255 255 255 / .03); }
.art-toc h2 { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #9fb4d8; margin-bottom: .8rem; max-width: none; }
.art-toc ol { display: grid; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.art-toc a { display: block; padding: .4rem .5rem; border-radius: 8px; font-size: .86rem; line-height: 1.4; color: #c3d3f0; text-decoration: none; transition: color .25s, background-color .25s; }
.art-toc a:hover, .art-toc a.active { color: #fff; background: rgb(0 95 250 / .25); }
.side-cta { padding: 1.4rem; border-radius: 16px; display: grid; gap: .6rem; }
.side-cta h2 { font-size: var(--step-1); max-width: none; }
.side-cta p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.side-cta .btn { margin-top: .4rem; }
.share { display: flex; flex-wrap: wrap; gap: .5rem; }
.share a, .share button { font: 500 .8rem var(--font); color: #cfe0ff; text-decoration: none; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .18); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; transition: background-color .25s, color .25s; }
.share a:hover, .share button:hover { background: rgb(255 255 255 / .14); color: #fff; }

.related { padding-block: clamp(3rem, 7vw, 5rem); background: var(--bg-2); border-top: 1px solid var(--line); }
.related h2 { font-size: var(--step-2); margin-bottom: 1.75rem; max-width: none; }

@media (prefers-reduced-motion: reduce) { .post-card .thumb img { scale: 1; } }
