﻿/* ????????????????????????????????????????????????????????????????????????
   BLOG ? Cliqenvio  ?  visual moderno, futurista, otimizado para leitura
   ???????????????????????????????????????????????????????????????????????? */

:root {
  --ink:        #0a1628;
  --ink-2:      #0f172a;
  --paper:      #fbfcfd;
}

body.blog, body.archive, body.single, body.search {
  background: var(--paper);
}

/* NAV clara no blog (landing usa dark) */
.blog-nav,
.blog-nav.scrolled {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--gray-100) !important;
  box-shadow: 0 4px 24px rgba(10,22,40,.06);
}
.blog-nav .nav-logo-name { color: #0F1724; }
.blog-nav .nav-links a   { color: #5A6477; }
.blog-nav .nav-links a:hover,
.blog-nav .nav-links a.active { color: #0F1724; }
.blog-nav .btn-ghost      { color: #5A6477; }
.blog-nav .btn-ghost:hover{ color: #0F1724; }

/* ?? Barra de progresso de leitura ?? */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--green), #14b8a6);
  z-index: 100; transition: width .1s linear;
  box-shadow: 0 0 12px rgba(39,197,139,.6);
}

/* ?? Breadcrumb ?? */
.blog-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .82rem; margin-bottom: 22px;
}
.blog-breadcrumb a { color: rgba(255,255,255,.65); transition: color .2s; }
.blog-breadcrumb a:hover { color: #fff; }
.blog-breadcrumb .bc-sep { color: rgba(255,255,255,.3); }
.blog-breadcrumb .bc-current { color: rgba(255,255,255,.9); }

/* ????????????????????????????????????????????????????????????????????????
   HERO DO BLOG (/blog)
   ???????????????????????????????????????????????????????????????????????? */
.blog-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% -10%, rgba(39,197,139,.18) 0%, transparent 60%),
    radial-gradient(40% 60% at 85% 20%, rgba(59,130,246,.14) 0%, transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: 92px 0 76px;
  text-align: center;
}
.blog-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 75%);
}
.blog-hero-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 520px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(39,197,139,.35) 0%, transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.blog-hero-inner { position: relative; max-width: 760px; }
.blog-hero-badge {
  display: inline-block; font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); background: rgba(39,197,139,.12);
  border: 1px solid rgba(39,197,139,.3);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 22px;
}
.blog-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.3rem); font-weight: 900;
  line-height: 1.1; color: #fff; letter-spacing: -.02em; margin-bottom: 18px;
}
.grad-text {
  background: linear-gradient(120deg, #27C58B, #5eead4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.blog-hero p {
  font-size: 1.12rem; color: rgba(255,255,255,.66);
  line-height: 1.6; max-width: 600px; margin: 0 auto 34px;
}

/* Busca */
.blog-search {
  display: flex; align-items: center; gap: 8px;
  max-width: 520px; margin: 0 auto 30px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px; padding: 6px 6px 6px 18px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .2s, box-shadow .2s;
}
.blog-search:focus-within {
  border-color: rgba(39,197,139,.5);
  box-shadow: 0 0 0 4px rgba(39,197,139,.15);
}
.blog-search svg { color: rgba(255,255,255,.5); flex-shrink: 0; }
.blog-search input {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font-size: .95rem; font-family: inherit;
}
.blog-search input::placeholder { color: rgba(255,255,255,.4); }
.blog-search button {
  background: var(--green); color: #fff; font-weight: 600; font-size: .88rem;
  padding: 9px 20px; border-radius: 999px; transition: opacity .2s;
}
.blog-search button:hover { opacity: .9; }

/* Pills de categoria */
.blog-cat-pills {
  display: flex; flex-wrap: wrap; gap: 9px; justify-content: center;
}
.cat-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 7px 15px; border-radius: 999px; transition: all .2s;
}
.cat-pill:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-1px); }
.cat-pill.active { background: var(--green); border-color: var(--green); color: #fff; }
.cat-pill-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ????????????????????????????????????????????????????????????????????????
   GRID + CARDS
   ???????????????????????????????????????????????????????????????????????? */
.blog-main { padding: 56px 0 80px; }

/* Post em destaque */
.post-featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); overflow: hidden;
  margin-bottom: 48px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.post-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(10,22,40,.12);
  border-color: rgba(39,197,139,.4);
}
.post-featured-cover { position: relative; min-height: 320px; height: 100%; }
.post-featured-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.post-featured-body h2 {
  font-size: 1.75rem; font-weight: 800; color: var(--gray-900);
  line-height: 1.2; letter-spacing: -.01em; margin: 14px 0 12px;
}
.post-featured-body p { color: var(--gray-500); font-size: 1rem; line-height: 1.6; margin-bottom: 18px; }
.post-featured-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 6px;
  color: var(--green); font-weight: 700; font-size: .92rem;
}
.post-featured:hover .post-featured-link svg { transform: translateX(3px); }
.post-featured-link svg { transition: transform .2s; }

/* Grid */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}

/* Card */
.post-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(10,22,40,.12);
  border-color: rgba(39,197,139,.45);
}
.post-card-link { position: absolute; inset: 0; z-index: 2; }
.post-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card-body h3 {
  font-size: 1.12rem; font-weight: 700; color: var(--gray-900);
  line-height: 1.3; letter-spacing: -.01em; margin: 12px 0 10px;
}
.post-card-body p { color: var(--gray-500); font-size: .9rem; line-height: 1.55; margin-bottom: 16px; flex: 1; }

/* Capas */
.post-cover, .post-card-cover, .post-featured-cover { position: relative; overflow: hidden; }
.post-card-cover { aspect-ratio: 16 / 9; }
.post-cover-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-cover-img, .post-featured:hover .post-cover-img { transform: scale(1.05); }
.post-cover-grad {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.post-cover-grad::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 18px 18px; opacity: .5;
}
.post-cover-emoji { font-size: 3.2rem; filter: drop-shadow(0 4px 12px rgba(0,0,0,.2)); position: relative; z-index: 1; }
.post-featured-cover .post-cover-emoji { font-size: 4.5rem; }

/* Tag de categoria */
.post-cat-tag {
  display: inline-block; align-self: flex-start;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green); background: var(--green-light);
  padding: 4px 11px; border-radius: 999px;
}

/* Meta */
.post-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--gray-400); margin-top: auto;
}
.meta-dot { opacity: .5; }

/* Pagina&ccedil;&atilde;o */
.blog-pagination { margin-top: 52px; display: flex; justify-content: center; }
.blog-pagination ul { display: flex; gap: 6px; align-items: center; }
.blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px; border-radius: 11px;
  font-weight: 600; font-size: .9rem; color: var(--gray-600);
  background: #fff; border: 1px solid var(--gray-200); transition: all .2s;
}
.blog-pagination .page-numbers:hover { border-color: var(--green); color: var(--green); }
.blog-pagination .page-numbers.current {
  background: var(--green); border-color: var(--green); color: #fff;
}

/* Vazio */
.blog-empty { text-align: center; padding: 80px 20px; max-width: 460px; margin: 0 auto; }
.blog-empty-emoji { font-size: 3rem; margin-bottom: 18px; }
.blog-empty h2 { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); margin-bottom: 10px; }
.blog-empty p { color: var(--gray-500); }
.blog-empty a { color: var(--green); font-weight: 600; }

/* ????????????????????????????????????????????????????????????????????????
   ARTIGO (single)
   ???????????????????????????????????????????????????????????????????????? */
.single-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(50% 70% at 80% 0%, rgba(39,197,139,.16) 0%, transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: 80px 0 64px;
}
.single-hero-glow {
  position: absolute; top: -100px; right: 5%;
  width: 380px; height: 280px; border-radius: 50%;
  background: var(--cat-grad, radial-gradient(circle, rgba(39,197,139,.3), transparent));
  opacity: .25; filter: blur(60px); pointer-events: none;
}
.single-hero-inner { position: relative; max-width: 800px; }
.single-cat-tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--cat-grad, var(--green));
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  transition: transform .2s;
}
.single-cat-tag:hover { transform: translateY(-1px); }
.single-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; line-height: 1.15;
  color: #fff; letter-spacing: -.02em; margin-bottom: 26px;
}
.single-meta { display: flex; align-items: center; }
.single-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #14b8a6);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 1.1rem; flex-shrink: 0;
}
.author-name { font-weight: 700; color: #fff; font-size: .95rem; }
.author-sub { font-size: .82rem; color: rgba(255,255,255,.55); margin-top: 1px; }

/* Capa do artigo (sobrep&otilde;e o hero) */
.single-cover-wrap { margin-top: -40px; position: relative; z-index: 3; }
.single-cover {
  width: 100%; max-width: 920px; margin: 0 auto;
  border-radius: var(--radius-xl); aspect-ratio: 16/9; object-fit: cover;
  box-shadow: 0 24px 60px rgba(10,22,40,.28);
  border: 1px solid rgba(255,255,255,.1);
}

/* Layout: conte&uacute;do + share */
.single-layout {
  display: grid; grid-template-columns: 56px minmax(0, 1fr);
  gap: 36px; max-width: 860px; margin: 0 auto; padding: 56px 24px 20px;
}
.single-share {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: sticky; top: 96px; height: max-content;
}
.share-label {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: 4px;
}
.share-btn {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--gray-200); color: var(--gray-500);
  transition: all .2s; position: relative;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.share-wpp:hover { background: #25D366; border-color: #25D366; color: #fff; }
.share-fb:hover  { background: #1877F2; border-color: #1877F2; color: #fff; }
.share-x:hover   { background: #000; border-color: #000; color: #fff; }
.share-copy:hover { background: var(--green); border-color: var(--green); color: #fff; }
.share-copy.copied { background: var(--green); border-color: var(--green); color: #fff; }
.share-copy.copied::after {
  content: "Copiado!"; position: absolute; left: 52px; top: 50%; transform: translateY(-50%);
  background: var(--gray-900); color: #fff; font-size: .72rem; font-weight: 600;
  padding: 5px 10px; border-radius: 7px; white-space: nowrap;
}

/* ?? Tipografia do conte&uacute;do (the_content) ?? */
.single-content { font-size: 1.135rem; line-height: 1.82; color: #1f2937; }
.single-content > * + * { margin-top: 1.55em; }
.single-content p { margin: 0 0 0; }
.single-content h2 {
  font-size: 1.7rem; font-weight: 800; color: var(--gray-900);
  letter-spacing: -.01em; line-height: 1.25; margin: 2em 0 .2em; scroll-margin-top: 90px;
}
.single-content h3 {
  font-size: 1.32rem; font-weight: 700; color: var(--gray-900);
  line-height: 1.3; margin: 1.7em 0 .1em; scroll-margin-top: 90px;
}
.single-content h4 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin: 1.5em 0 .1em; }
.single-content a {
  color: var(--green-dark); font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(39,197,139,.35);
  text-underline-offset: 3px; transition: text-decoration-color .2s;
}
.single-content a:hover { text-decoration-color: var(--green); }
.single-content strong { color: var(--gray-900); font-weight: 700; }
.single-content ul, .single-content ol { padding-left: 0; margin-left: 0; }
.single-content ul li, .single-content ol li {
  position: relative; padding-left: 30px; margin-bottom: .65em; list-style: none;
}
.single-content ul li::before {
  content: ""; position: absolute; left: 6px; top: .62em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
}
.single-content ol { counter-reset: li; }
.single-content ol li { counter-increment: li; }
.single-content ol li::before {
  content: counter(li); position: absolute; left: 0; top: .05em;
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--green-light); color: var(--green-dark);
  font-size: .78rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.single-content blockquote {
  border-left: 4px solid var(--green); background: var(--green-bg);
  padding: 18px 24px; border-radius: 0 14px 14px 0;
  font-size: 1.18rem; font-style: italic; color: var(--gray-700);
}
.single-content blockquote p { margin: 0; }
.single-content img { border-radius: 16px; box-shadow: 0 12px 36px rgba(10,22,40,.12); margin: 0 auto; }
.single-content figure { margin: 0; }
.single-content figcaption { text-align: center; font-size: .85rem; color: var(--gray-400); margin-top: 10px; }
.single-content code {
  background: var(--gray-100); color: #be185d; font-size: .9em;
  padding: 2px 7px; border-radius: 6px; font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.single-content pre {
  background: var(--ink-2); color: #e2e8f0; padding: 20px 22px;
  border-radius: 14px; overflow-x: auto; font-size: .92rem; line-height: 1.6;
}
.single-content pre code { background: none; color: inherit; padding: 0; }
.single-content hr { border: none; height: 1px; background: var(--gray-200); margin: 2.4em 0; }
.single-content table {
  width: 100%; border-collapse: collapse; font-size: .95rem;
  border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden;
}
.single-content th { background: var(--gray-50); font-weight: 700; color: var(--gray-900); text-align: left; }
.single-content th, .single-content td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); }

/* Tags */
.single-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2.5em; }
.single-tag {
  font-size: .82rem; font-weight: 600; color: var(--gray-500);
  background: var(--gray-100); padding: 6px 13px; border-radius: 999px; transition: all .2s;
}
.single-tag:hover { background: var(--green-light); color: var(--green-dark); }

/* Relacionados */
.single-related { padding: 60px 0 20px; }
.related-title { font-size: 1.6rem; font-weight: 800; color: var(--gray-900); margin-bottom: 28px; text-align: center; }

/* CTA antes do rodap&eacute; */
.blog-cta-final { padding: 40px 0 72px; }
.blog-cta-card {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(39,197,139,.2) 0%, transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  border: 1px solid rgba(39,197,139,.22);
  border-radius: var(--radius-xl); padding: 52px 32px;
  max-width: 760px; margin: 0 auto;
}
.blog-cta-icon {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 18px;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.blog-cta-card h2 { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.blog-cta-card p { color: rgba(255,255,255,.66); max-width: 480px; margin: 0 auto 26px; line-height: 1.6; }

/* ????????????????????????????????????????????????????????????????????????
   ARQUIVO (categoria / tag)
   ???????????????????????????????????????????????????????????????????????? */
.archive-hero {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(55% 80% at 50% -10%, rgba(39,197,139,.16) 0%, transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: 80px 0 60px;
}
.archive-hero-glow {
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 420px; height: 260px; border-radius: 50%;
  background: var(--cat-grad, radial-gradient(circle, rgba(39,197,139,.3), transparent));
  opacity: .3; filter: blur(50px); pointer-events: none;
}
.archive-hero-inner { position: relative; max-width: 680px; }
.archive-hero .blog-breadcrumb { justify-content: center; }
.archive-emoji {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.archive-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; color: #fff; letter-spacing: -.02em; margin-bottom: 14px; }
.archive-hero p { font-size: 1.05rem; color: rgba(255,255,255,.62); line-height: 1.6; margin-bottom: 22px; }
.archive-hero p strong { color: #fff; }
.archive-back {
  display: inline-block; font-size: .88rem; font-weight: 600;
  color: var(--green); background: rgba(39,197,139,.12);
  border: 1px solid rgba(39,197,139,.3); padding: 8px 18px; border-radius: 999px; transition: all .2s;
}
.archive-back:hover { background: rgba(39,197,139,.2); }
.archive-hero .blog-search { margin-top: 4px; margin-bottom: 24px; }

/* ????????????????????????????????????????????????????????????????????????
   RESPONSIVO
   ???????????????????????????????????????????????????????????????????????? */
@media (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured-cover { min-height: 220px; aspect-ratio: 16/9; }
  .post-featured-body { padding: 30px; }
}
@media (max-width: 760px) {
  .blog-hero { padding: 72px 0 56px; }
  .single-layout { grid-template-columns: 1fr; gap: 0; padding: 40px 22px 10px; }
  .single-share {
    flex-direction: row; position: static; justify-content: center;
    margin-bottom: 28px; gap: 10px;
  }
  .share-label { writing-mode: horizontal-tb; transform: none; margin: 0 6px 0 0; }
  .single-content { font-size: 1.06rem; }
  .post-featured-body h2 { font-size: 1.4rem; }
}
@media (max-width: 540px) {
  .post-grid { grid-template-columns: 1fr; }
  .blog-search { flex-wrap: nowrap; }
  .blog-search button { padding: 9px 14px; }
}

