/* ============================================================
   Voomi — Blog
   Design system: roxo / Plus Jakarta Sans / Bootstrap 5.3
   ============================================================ */

:root {
  --p:   #a78bfa;
  --pd:  #8b5cf6;
  --pdd: #6d28d9;
  --bg:  #f8f7fc;

  --ink:    #1e1b2e;
  --ink-2:  #3b3650;
  --muted:  #6b6780;
  --line:   #ece9f5;
  --card:   #ffffff;
  --soft:   #f3f0fb;

  --radius:   18px;
  --radius-sm:12px;
  --shadow:   0 1px 2px rgba(30,27,46,.04), 0 8px 24px rgba(109,40,217,.06);
  --shadow-h: 0 6px 14px rgba(30,27,46,.06), 0 18px 40px rgba(109,40,217,.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
a { color: var(--pdd); text-decoration: none; }
a:hover { color: var(--pd); }

.container-blog { max-width: 1120px; }

/* ---------- Skip link (acessibilidade + SEO) ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--pdd); color: #fff; padding: .6rem 1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Navbar ---------- */
.site-nav {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1030;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--pd), var(--pdd));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1rem;
  box-shadow: 0 4px 12px rgba(109,40,217,.35);
}
.nav-link-v { color: var(--ink-2); font-weight: 600; font-size: .95rem; padding: .35rem .8rem; border-radius: 8px; }
.nav-link-v:hover, .nav-link-v[aria-current="page"] { color: var(--pdd); background: var(--soft); }

.btn-v {
  background: linear-gradient(135deg, var(--pd), var(--pdd));
  color: #fff; border: 0; font-weight: 700; border-radius: 11px; padding: .55rem 1.15rem;
  box-shadow: 0 6px 16px rgba(109,40,217,.28); transition: transform .15s, box-shadow .15s;
}
.btn-v:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(109,40,217,.34); }
.btn-ghost-v { background: var(--card); color: var(--pdd); border: 1px solid var(--line); font-weight: 700; border-radius: 11px; padding: .55rem 1.15rem; }
.btn-ghost-v:hover { color: var(--pdd); border-color: var(--p); background: var(--soft); }

/* ---------- Page header ---------- */
.blog-head { padding-top: 3.2rem; padding-bottom: 1.6rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--pdd); background: var(--soft); padding: .35rem .75rem; border-radius: 999px;
}
.blog-head h1 { font-size: clamp(1.7rem, 6.5vw, 2.9rem); line-height: 1.15; margin: 1rem 0 .6rem; text-wrap: balance; }
.blog-head p { color: var(--muted); font-size: 1.08rem; max-width: 620px; }

/* Ajustes do hero no mobile */
@media (max-width: 575.98px) {
  .blog-head { padding-top: 1.8rem; padding-bottom: 1.2rem; }
  .blog-head p { font-size: 1rem; }
  .blog-head .eyebrow { font-size: .72rem; }
}

/* ---------- Category pills ---------- */
.cat-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.cat-pill {
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .95rem;
  transition: all .15s;
}
.cat-pill:hover { color: var(--pdd); border-color: var(--p); }
.cat-pill.is-active { color: #fff; background: var(--pdd); border-color: var(--pdd); }

/* ---------- Cards ---------- */
.post-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; height: 100%; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.post-card a.stretched-link::after { border-radius: var(--radius); }

.thumb {
  position: relative; aspect-ratio: 16 / 9; display: block; overflow: hidden;
  background: linear-gradient(135deg, var(--p), var(--pdd));
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.post-card:hover .thumb img { transform: scale(1.04); }
.thumb::after { /* fallback ornament visível quando a imagem não existe ainda */
  content: "voomi"; position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.55); font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; z-index: 0;
}
.thumb img { position: relative; z-index: 1; }

.post-body { padding: 1.15rem 1.25rem 1.35rem; }
.tag-cat { font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--pdd); }
.post-card h2, .post-card h3 { font-size: 1.18rem; line-height: 1.3; margin: .5rem 0 .55rem; }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.post-meta { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .82rem; margin-top: .9rem; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); display: inline-block; }

/* ---------- Featured ---------- */
.featured {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; box-shadow: var(--shadow);
}
.featured .thumb { aspect-ratio: auto; height: 100%; min-height: 280px; }
.featured .post-body { padding: 2rem; }
.featured h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; margin: .6rem 0 .8rem; }
.featured p { font-size: 1.02rem; }

/* ---------- Article ---------- */
.article-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.breadcrumb-v { font-size: .85rem; color: var(--muted); }
.breadcrumb-v a { color: var(--muted); }
.breadcrumb-v a:hover { color: var(--pdd); }
.breadcrumb-v .sep { margin: 0 .45rem; opacity: .6; }

.article-hero { aspect-ratio: 16/8; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--p), var(--pdd)); position: relative; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

.article-content { font-size: 1.075rem; color: var(--ink-2); line-height: 1.8; }
.article-content h2 { font-size: 1.55rem; margin: 2.2rem 0 .9rem; }
.article-content h3 { font-size: 1.22rem; margin: 1.8rem 0 .7rem; }
.article-content p { margin: 0 0 1.1rem; }
.article-content ul, .article-content ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.article-content li { margin-bottom: .5rem; }
.article-content a { text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote {
  border-left: 4px solid var(--p); background: var(--soft);
  margin: 1.6rem 0; padding: 1rem 1.3rem; border-radius: 0 12px 12px 0; color: var(--ink-2); font-style: italic;
}
.article-content img { max-width: 100%; height: auto; border-radius: 14px; margin: 1.4rem 0; }
.article-content iframe,
.article-content .ql-video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; margin: 1.6rem 0; }

.author-box { background: var(--soft); border-radius: 16px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--pd), var(--pdd)); color: #fff; display: grid; place-items: center; font-weight: 800; }

.share-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); display: inline-grid; place-items: center; }
.share-btn:hover { color: var(--pdd); border-color: var(--p); }

/* ---------- Newsletter / CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--pdd), var(--pd));
  border-radius: 24px; color: #fff; overflow: hidden; position: relative;
}
.cta-band h2 { color: #fff; }
.cta-band .form-control { border: 0; border-radius: 11px; padding: .7rem 1rem; }
.cta-band .btn-light { font-weight: 700; border-radius: 11px; color: var(--pdd); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c4dd; }
.site-footer a { color: #c9c4dd; }
.site-footer a:hover { color: #fff; }
.site-footer h6 { color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.3rem; }

/* ---------- Utils ---------- */
.text-muted-v { color: var(--muted) !important; }
.divider { height: 1px; background: var(--line); border: 0; }