/* =====================================================
   YUGANTIX — Blog & Blog Detail redesign
   Mint/white theme matching the rest of the site, plus real
   photography in place of the abstract SVG cover-art that was
   here before — with a hover zoom and a gradient overlay so the
   category tag stays legible over any photo.
   ===================================================== */

:root { --paper: #F8FCF9; --paper-deep: #EFF8F1; --paper-warm: #FAFDFB; }
.site-header { background: #FFFFFF; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid rgba(13,18,32,.06); }
.site-header.is-scrolled { background: #FFFFFF; box-shadow: 0 1px 0 rgba(13,18,32,.06); }
body::before, body::after { content: none; }
.bg-deep { background: #FFFFFF; }
.page-hero { background: #FFFFFF; }
.section--final { background: #FFFFFF; }

/* Real-photo card covers */
.case-cover, .featured-post-cover, .post-cover-art {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
}
.case-cover img, .featured-post-cover img, .post-cover-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.case-card:hover .case-cover img,
.featured-post:hover .featured-post-cover img {
  transform: scale(1.06);
}
.case-cover::after, .featured-post-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,31,0) 55%, rgba(10,14,31,.35) 100%);
  pointer-events: none;
}

/* Category chip floats on the image itself for a more editorial feel */
.case-card { position: relative; }
.case-cover-tag {
  position: absolute;
  bottom: .8rem;
  left: .9rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(13,18,32,.55);
  backdrop-filter: blur(6px);
  padding: .35rem .75rem;
  border-radius: 999px;
}
.featured-post-cover .case-cover-tag { bottom: 1.1rem; left: 1.1rem; }

/* Cards: cleaner border + lift on hover, consistent with the rest of the site */
.case-card.blog-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.case-card.blog-card:hover {
  border-color: var(--brand);
  box-shadow: 0 20px 44px -22px rgba(0,75,218,.22);
  transform: translateY(-3px);
}
.case-card.blog-card .case-cover { border-radius: 0; }

.featured-post {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.featured-post:hover { border-color: var(--brand); box-shadow: 0 24px 56px -26px rgba(0,75,218,.22); }

/* Post detail: author byline as a real card */
.post-author-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  margin-right: .6rem;
  flex-shrink: 0;
}
.sidebar-author { display: flex; align-items: center; }

/* In-article inline image */
.post-content .inline-figure {
  margin: 2rem 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.post-content .inline-figure img { width: 100%; display: block; }
.post-content .inline-figure figcaption {
  padding: .75rem 1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  background: var(--paper-deep);
}

.pull-quote {
  border-left: 3px solid var(--brand);
  background: var(--paper-deep);
  border-radius: 0 12px 12px 0;
}
