/* ABZ Blog theme — matches the "ABZ Blog" / "ABZ Blog Post" design mockups.
   Scoped to /blog/ only; rest of the site keeps its existing Poppins/abz_redesign look
   until the wider redesign rolls out. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

.abz-blog {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  background: #08060d;
  color: #f3f0fa;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
.abz-blog a { color: #e7e2ef; text-decoration: none; }
.abz-blog a:hover { color: #ff8cf0; }
.abz-blog ::selection { background: #b43cff; color: #fff; }

@keyframes abzGradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.abz-g-text {
  background: linear-gradient(115deg,#ff8cf0 0%,#c37bff 42%,#3cdcff 72%,#ff8cf0 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: abzGradientShift 7s ease-in-out infinite;
}
.abz-press { transition: transform .12s ease; }
.abz-press:active { transform: scale(0.97); }

/* ---- Nav ---- */
.abz-blog-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px; backdrop-filter: blur(16px);
  background: rgba(8,6,13,0.6); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.abz-blog-brand {
  display: flex; align-items: center; gap: 11px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 21px; color: #f3f0fa;
}
.abz-blog .abz-blog-brand { color: #fff; }
.abz-blog-brand img { width: 32px; height: 32px; object-fit: contain; }
.abz-blog-nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.abz-blog-nav-links a { color: #fff; }
.abz-blog-nav-links a[aria-current="page"] { color: #fff; }
.abz-blog-nav-links a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 5px; border-radius: 99px;
  background: linear-gradient(90deg,#ff8cf0,#b43cff,#3cdcff);
}
.abz-blog-nav-right { display: flex; align-items: center; gap: 18px; }
.abz-blog-nav-logins { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 500; color: #b7b0c6; }
.abz-blog-nav-logins a { color: #fff; }
.abz-blog-nav-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.14); }
.abz-blog-cta {
  padding: 10px 20px; border-radius: 10px;
  background: linear-gradient(115deg,#ff8cf0,#b43cff 55%,#7c3cff);
  color: #fff !important; font-size: 15px; font-weight: 600;
}
.abz-blog-burger {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05); color: #f3f0fa; font-size: 19px; cursor: pointer;
}
.abz-blog-mobile-menu {
  display: none;
  position: fixed; top: 66px; left: 12px; right: 12px; z-index: 99;
  border-radius: 18px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(14,11,24,0.97); backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5); padding: 14px;
  flex-direction: column; gap: 4px;
}
.abz-blog-mobile-menu.abz-open { display: flex; }
.abz-blog-mobile-menu a { padding: 13px 14px; border-radius: 10px; font-size: 16px; font-weight: 500; color: #e8e3f2; }
.abz-blog-mobile-menu .abz-blog-mobile-primary { margin-top: 4px; color: #fff; background: linear-gradient(115deg,#ff8cf0,#b43cff 55%,#7c3cff); }
.abz-blog-mobile-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 6px 4px; }

.abz-blog-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 101; background: transparent; }
.abz-blog-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg,#ff8cf0,#b43cff 55%,#3cdcff); }

/* ---- Hero (index) ---- */
.abz-blog-hero { position: relative; padding: 148px 40px 46px; overflow: hidden; }
.abz-blog-hero::before {
  content: ""; position: absolute; top: -140px; left: 12%; width: 760px; height: 460px;
  background: radial-gradient(ellipse at center, rgba(180,60,255,0.24), rgba(60,220,255,0.1) 46%, transparent 70%);
  filter: blur(50px); z-index: 0;
}
.abz-blog-hero-inner { position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; }
.abz-blog-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #b478ff; margin-bottom: 16px; }
.abz-blog-hero h1 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(40px,6vw,76px);
  line-height: 0.98; letter-spacing: -0.035em; margin: 0 0 20px; max-width: 900px; text-wrap: pretty;
}
.abz-blog h1, .abz-blog h2, .abz-blog h3 { color: #f7f5fb; }
.abz-blog-hero-lead { font-size: clamp(17px,1.7vw,20px); line-height: 1.55; max-width: 600px; margin: 0; color: #a8a1ba; }

/* ---- Post cards / grid (index) ---- */
.abz-post-section { max-width: 1160px; margin: 0 auto; padding: 0 40px 60px; }
.abz-post-filterbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 34px;
}
.abz-post-cats { display: flex; gap: 10px; flex-wrap: wrap; }
.abz-cat-pill {
  padding: 10px 18px; border-radius: 99px; cursor: pointer; font-family: inherit; font-size: 14.5px; font-weight: 500;
  transition: all .18s ease; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: #b7b0c6;
}
.abz-cat-pill.abz-active { border: 1px solid transparent; background: linear-gradient(115deg,#ff8cf0,#b43cff 55%,#7c3cff); color: #fff; }
.abz-post-count { font-size: 14px; color: #6f6883; }

.abz-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.abz-post-card {
  display: flex; flex-direction: column; border-radius: 22px; border: 1px solid rgba(255,255,255,0.07);
  background: #0e0b18; overflow: hidden; color: inherit; text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.abz-blog .abz-post-card { color: #f7f5fb; }
.abz-post-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.16); background: #120f1e; color: inherit; }
.abz-post-cover { height: 168px; position: relative; background-size: cover; background-position: center; }
.abz-post-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 75% 15%, rgba(255,255,255,0.28), transparent 58%); }
.abz-post-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.abz-post-cat { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #b478ff; margin-bottom: 12px; }
.abz-post-body h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: pretty; color: #f7f5fb; }
.abz-post-desc { font-size: 15.5px; line-height: 1.6; color: #b8b2c7; margin: 0 0 22px; flex: 1; }
.abz-post-meta { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #6f6883; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); }
.abz-post-dot { width: 3px; height: 3px; border-radius: 99px; background: #4c4660; }

/* ---- Newsletter (index) ---- */
.abz-blog-newsletter {
  position: relative; margin: 0 24px 24px; border-radius: 30px; padding: 84px 40px; text-align: center; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.09);
  background: radial-gradient(ellipse at 50% 120%, rgba(180,60,255,0.4), transparent 60%), #0c0916;
}
.abz-blog-newsletter-inner { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; }
.abz-blog-newsletter h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(30px,4vw,48px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 16px; }
.abz-blog-newsletter p { font-size: 17px; color: #a8a1ba; margin: 0 0 30px; }
.abz-newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.abz-newsletter-form input {
  flex: 1 1 260px; max-width: 340px; padding: 15px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.05); color: #f3f0fa; font-family: inherit; font-size: 16px; outline: none;
}
.abz-newsletter-form input:focus { border-color: rgba(255,140,240,0.6); }
.abz-newsletter-form button {
  padding: 15px 30px; border-radius: 12px; border: none; background: linear-gradient(115deg,#ff8cf0,#b43cff 55%,#7c3cff);
  color: #fff; font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 10px 34px rgba(180,60,255,0.34);
}

/* ---- Article page header ---- */
.abz-article-header { position: relative; padding: 132px 40px 0; overflow: hidden; }
.abz-article-header::before {
  content: ""; position: absolute; top: -160px; left: 50%; transform: translateX(-50%); width: 880px; height: 480px;
  background: radial-gradient(ellipse at center, rgba(180,60,255,0.22), rgba(60,220,255,0.08) 48%, transparent 72%);
  filter: blur(52px); z-index: 0;
}
.abz-article-header-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.abz-back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: #8f88a3; margin-bottom: 30px; }
.abz-article-meta-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.abz-cat-badge {
  padding: 6px 12px; border-radius: 99px; background: rgba(180,60,255,0.16); border: 1px solid rgba(180,60,255,0.32);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #d8a9ff;
}
.abz-read-time { font-size: 13.5px; color: #6f6883; }
.abz-article-header h1 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(34px,4.6vw,58px);
  line-height: 1.04; letter-spacing: -0.033em; margin: 0 0 22px; text-wrap: pretty;
}
.abz-article-dek { font-size: 20px; line-height: 1.55; color: #a8a1ba; margin: 0 0 34px; }
.abz-article-byline { display: flex; align-items: center; gap: 13px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.abz-author-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#ff8cf0,#b43cff);
  display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; color: #fff;
}
.abz-author-name { font-size: 15px; font-weight: 600; color: #f3f0fa; }
.abz-author-role { font-size: 13.5px; color: #6f6883; }

.abz-article-cover-section { max-width: 1000px; margin: 0 auto; padding: 44px 40px 0; }
.abz-article-cover {
  position: relative; height: 340px; border-radius: 24px; overflow: hidden; background-size: cover; background-position: center;
}
.abz-article-cover-fallback {
  background: radial-gradient(ellipse at 25% 20%, rgba(255,140,240,0.55), transparent 58%), radial-gradient(ellipse at 82% 82%, rgba(60,220,255,0.45), transparent 60%), linear-gradient(135deg,#b43cff,#7c3cff);
}

/* ---- Prose (article body) ---- */
.abz-article-body { max-width: 760px; margin: 0 auto; padding: 54px 40px 30px; }
.prose { font-size: 18.5px; }
.prose p { font-size: 18.5px; line-height: 1.72; color: #c4bed4; margin: 0 0 26px; }
.prose h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 30px; line-height: 1.15; letter-spacing: -0.025em; color: #f3f0fa; margin: 52px 0 18px; }
.prose h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 21px; letter-spacing: -0.02em; color: #f3f0fa; margin: 36px 0 12px; }
.prose ul, .prose ol { margin: 0 0 26px; padding-left: 22px; }
.prose li { font-size: 18.5px; line-height: 1.7; color: #c4bed4; margin-bottom: 12px; }
.prose strong { color: #f3f0fa; font-weight: 600; }
.prose img { max-width: 100%; height: auto; border-radius: 16px; margin: 0 0 26px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 16.5px; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid rgba(255,255,255,0.1); text-align: left; color: #c4bed4; }
.prose th { color: #f3f0fa; font-family: 'Space Grotesk', sans-serif; }
.prose nav.toc { background: #0e0b18; border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 20px 24px; margin: 0 0 30px; }
.prose nav.toc h2 { margin: 0 0 12px; font-size: 20px; }
.prose nav.toc ol, .prose nav.toc ul { margin: 0; padding-left: 20px; }
.prose nav.toc li { font-size: 15.5px; margin-bottom: 6px; }

/* ---- CTA strip (article) ---- */
.abz-cta-section { max-width: 760px; margin: 0 auto; padding: 24px 40px 60px; }
.abz-cta-strip {
  border-radius: 20px; border: 1px solid rgba(255,255,255,0.09);
  background: radial-gradient(ellipse at 100% 0%, rgba(180,60,255,0.22), transparent 62%), #0e0b18;
  padding: 34px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.abz-cta-strip-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.abz-cta-strip-desc { font-size: 15.5px; line-height: 1.6; color: #8f88a3; margin: 0; max-width: 400px; }
.abz-cta-strip-btn { padding: 14px 28px; border-radius: 12px; background: linear-gradient(115deg,#ff8cf0,#b43cff 55%,#7c3cff); color: #fff !important; font-size: 16px; font-weight: 600; white-space: nowrap; }

/* ---- Keep reading ---- */
.abz-more-section { max-width: 1160px; margin: 0 auto; padding: 30px 40px 90px; border-top: 1px solid rgba(255,255,255,0.07); }
.abz-more-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 44px 0 28px; }
.abz-more-heading h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 30px; letter-spacing: -0.025em; margin: 0; }
.abz-more-heading a { font-size: 15px; font-weight: 600; }
.abz-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.abz-more-card { height: 150px; }
.abz-more-card .abz-post-body { padding: 24px 24px 26px; }
.abz-more-card h3 { font-size: 19.5px; line-height: 1.22; margin: 0 0 12px; }
.abz-more-card-meta { margin-top: auto; font-size: 13.5px; color: #6f6883; }

/* ---- Footer ---- */
.abz-blog-footer { padding: 70px 40px 40px; border-top: 1px solid rgba(255,255,255,0.06); }
.abz-blog-footer-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.abz-blog-footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; color: #f3f0fa; margin-bottom: 14px; }
.abz-blog-footer-brand img { width: 30px; height: 30px; object-fit: contain; }
.abz-blog-footer p { font-size: 15px; line-height: 1.6; color: #8f88a3; margin: 0; max-width: 280px; }
.abz-blog-footer-col-heading { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px; color: #f3f0fa; margin-bottom: 16px; }
.abz-blog-footer-links { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.abz-blog-footer-links a { color: #8f88a3; }
.abz-blog-footer-bottom { max-width: 1160px; margin: 44px auto 0; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 13.5px; color: #6f6883; }

@media (max-width: 1000px) {
  .abz-blog-nav-links, .abz-blog-nav-logins { display: none !important; }
  .abz-blog-burger { display: inline-flex !important; }
  .abz-post-grid, .abz-more-grid { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 720px) {
  .abz-blog-hero, .abz-post-section, .abz-article-header, .abz-article-body, .abz-cta-section, .abz-more-section { padding-left: 22px !important; padding-right: 22px !important; }
  .abz-blog-nav { padding: 14px 20px !important; }
  .abz-blog-footer-grid { grid-template-columns: 1fr 1fr !important; }
  .abz-post-grid, .abz-more-grid { grid-template-columns: 1fr !important; }
  .prose p, .prose li { font-size: 17.5px !important; }
}
