/* ========================================
   QVNK Blog — tecnologia, IA e agentes
   ======================================== */

:root{
  --ink:#0B0E14;
  --surface:#12161F;
  --surface-2:#171C27;
  --line: rgba(237,239,242,0.09);
  --text:#EDEFF2;
  --muted:#8B93A1;
  --teal:#4FD1C5;
  --amber:#E8A33D;
  --amber-ink:#191308;
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--ink);
  color:var(--text);
  font-family:'Inter',system-ui,sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
h1,h2,h3{font-family:'Space Grotesk',sans-serif;font-weight:700;letter-spacing:-0.01em;}

.wrap{max-width:1180px;margin:0 auto;padding:0 32px;}
@media(max-width:640px){.wrap{padding:0 20px;}}

/* ---------- HEADER ---------- */
.bheader{
  border-bottom:1px solid var(--line);
  padding:20px 0;
  position:sticky;top:0;
  background:rgba(11,14,20,0.88);
  backdrop-filter:blur(10px);
  z-index:20;
}
.bheader .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;}
.bheader .brand{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:1.05rem;}
.bheader .brand .bracket{color:var(--amber);}
.bheader nav{display:flex;gap:24px;font-size:0.9rem;color:var(--muted);}
.bheader nav a:hover{color:var(--text);}
@media(max-width:640px){.bheader nav{display:none;}}

/* ---------- HERO ---------- */
.blog-hero{padding:64px 0 48px;border-bottom:1px solid var(--line);}
.blog-hero--article{padding:44px 0 36px;}
.blog-hero__inner{max-width:760px;}
.blog-hero__tag{
  display:inline-flex;align-items:center;gap:8px;
  font-family:'JetBrains Mono',monospace;font-size:0.75rem;
  letter-spacing:0.08em;text-transform:uppercase;color:var(--teal);
  margin-bottom:18px;
}
.blog-hero h1{font-size:clamp(1.9rem,4vw,2.8rem);line-height:1.15;margin-bottom:16px;}
.blog-hero--article h1{font-size:clamp(1.6rem,3.4vw,2.3rem);}
.blog-hero__subtitle{font-size:1.08rem;color:var(--muted);line-height:1.7;max-width:640px;}
.blog-hero__meta{display:flex;flex-wrap:wrap;gap:16px 24px;margin-top:22px;font-size:0.85rem;color:var(--muted);}

.breadcrumb{display:flex;flex-wrap:wrap;gap:8px;font-size:0.85rem;color:var(--muted);margin-bottom:20px;}
.breadcrumb a:hover{color:var(--text);}

/* ---------- LISTAGEM ---------- */
.blog-list{padding:48px 0 80px;}
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px;}
.blog-card{
  display:flex;flex-direction:column;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  transition:transform .2s ease, border-color .2s ease;
}
.blog-card:hover{transform:translateY(-3px);border-color:var(--teal);}
.blog-card__body{display:flex;flex-direction:column;flex:1;padding:24px;}
.blog-card__tag{
  font-family:'JetBrains Mono',monospace;font-size:0.68rem;font-weight:600;
  text-transform:uppercase;letter-spacing:0.08em;color:var(--amber);margin-bottom:10px;
}
.blog-card__title{font-size:1.1rem;line-height:1.35;margin-bottom:10px;}
.blog-card__title a:hover{color:var(--teal);}
.blog-card__excerpt{font-size:0.92rem;color:var(--muted);line-height:1.6;flex:1;margin-bottom:16px;}
.blog-card__footer{display:flex;align-items:center;justify-content:space-between;font-size:0.8rem;color:var(--muted);}
.blog-card__link{font-weight:600;color:var(--teal);}

/* ---------- ARTIGO ---------- */
.article-wrap{padding:44px 0 72px;}
.article-content{max-width:720px;margin:0 auto;}
.article-content h2{font-size:1.35rem;margin:40px 0 16px;line-height:1.3;}
.article-content h3{font-size:1.1rem;font-weight:600;margin:26px 0 12px;color:var(--text);}
.article-content p{margin-bottom:16px;line-height:1.75;color:#C7CCD6;}
.article-content ul,.article-content ol{margin:0 0 20px 24px;color:#C7CCD6;}
.article-content li{margin-bottom:8px;line-height:1.65;}
.article-content strong{color:var(--text);font-weight:600;}
.article-content a{color:var(--teal);text-decoration:underline;text-underline-offset:2px;}
.article-content a:hover{color:var(--amber);}
.article-tip{
  background:var(--surface);border-left:3px solid var(--teal);
  padding:18px 22px;border-radius:0 8px 8px 0;margin:26px 0;
}
.article-tip p:last-child{margin-bottom:0;}

/* ---------- ANÚNCIOS ---------- */
.ad-slot{overflow:hidden;text-align:center;margin:32px auto;max-width:720px;}
.ad-slot__label{
  font-family:'JetBrains Mono',monospace;font-size:0.68rem;letter-spacing:0.08em;
  text-transform:uppercase;color:var(--muted);margin-bottom:8px;
}
.ad-slot--top{margin-top:0;}

/* ---------- CTA ---------- */
.blog-cta{
  border-top:1px solid var(--line);
  padding:56px 0;
  text-align:center;
}
.blog-cta h2{font-size:clamp(1.4rem,3vw,1.9rem);margin-bottom:14px;}
.blog-cta p{color:var(--muted);max-width:560px;margin:0 auto 24px;line-height:1.6;}
.blog-cta__buttons{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;}
.btn{
  display:inline-flex;align-items:center;gap:8px;padding:13px 22px;border-radius:9px;
  font-size:0.92rem;font-weight:600;border:1px solid transparent;transition:all .15s ease;
}
.btn-primary{background:var(--amber);color:var(--amber-ink);}
.btn-primary:hover{filter:brightness(1.1);}
.btn-ghost{border-color:var(--line);color:var(--text);}
.btn-ghost:hover{border-color:var(--teal);color:var(--teal);}

/* ---------- FOOTER ---------- */
.bfooter{border-top:1px solid var(--line);padding:32px 0;}
.bfooter .wrap{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;}
.bfooter .flinks{display:flex;gap:20px;font-size:0.85rem;color:var(--muted);flex-wrap:wrap;}
.bfooter .flinks a:hover{color:var(--text);}
.bfooter .fcopy{font-size:0.78rem;color:var(--muted);}
