/* ================================================================
   BLOG HERO — Cinematic Card  (ГермесГарант, 2026)
   Trend: rounded image card · bottom-gradient cinema overlay ·
          frosted-glass meta chips · subtle zoom on hover ·
          mobile-first collapse
   ================================================================ */

/* ── Outer wrapper (gives meta its absolute anchor) ── */
.blog-hero-wrap {
  position: relative;
  margin-bottom: 28px;
}

/* ── Image card ── */
.blog-hero-img {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #0d3d2e;
  box-shadow:
    0 2px 6px  rgba(0, 0, 0, .06),
    0 12px 32px rgba(21, 89, 69, .18),
    0 32px 56px rgba(21, 89, 69, .12);
  /* height grows with the image — no fixed ratio, no cropping */
}

.blog-hero-img img {
  width: 100%;
  height: auto;        /* natural image height — nothing cut off */
  display: block;
  will-change: transform;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (hover: hover) {
  .blog-hero-img:hover img { transform: scale(1.025); }
}

/* Cinema gradient — bottom 55 % of the image */
.blog-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 50, 35, 0.88)  0%,
    rgba(21, 89, 69, 0.42)  36%,
    rgba(21, 89, 69, 0.08)  58%,
    transparent             75%
  );
  pointer-events: none;
}

/* Noise grain overlay — very 2026 */
.blog-hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
  opacity: 0.35;
}

/* ── Frosted-glass meta bar — sits over the image ── */
.blog-hero-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 20px 22px 22px;
}

.blog-hero-meta ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Every chip */
.blog-hero-meta ul li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px 5px 11px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.015em;
  white-space: nowrap;
  line-height: 1;
  transition: background 0.22s, border-color 0.22s;
}

@media (hover: hover) {
  .blog-hero-meta ul li:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
  }
}

/* Icons inside chips */
.blog-hero-meta ul li i,
.blog-hero-meta ul li svg {
  font-size: 10.5px;
  opacity: 0.80;
  flex-shrink: 0;
}

/* Reading-time chip — warm accent tint */
.blog-hero-meta ul li.post-reading {
  background: rgba(215, 179, 154, 0.20);
  border-color: rgba(215, 179, 154, 0.38);
}

/* Author chip — slightly brighter */
.blog-hero-meta ul li.post-author {
  background: rgba(255, 255, 255, 0.17);
}

/* Date chip — subtle primary tint */
.blog-hero-meta ul li.post-date {
  background: rgba(21, 89, 69, 0.40);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ── Accent stripe — thin corporate line under the image wrap ── */
.blog-hero-wrap::after {
  content: '';
  display: block;
  height: 3px;
  width: 64px;
  margin: 14px 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #155945 0%, #d7b39a 100%);
}

/* ================================================================
   MOBILE  ≤ 640 px
   Meta drops below the image as coloured pills (no glass needed)
   ================================================================ */
@media (max-width: 640px) {
  .blog-hero-img {
    border-radius: 16px;
  }

  /* Move meta out of absolute flow */
  .blog-hero-meta {
    position: static;
    padding: 10px 0 0;
  }

  /* Re-theme chips for light background */
  .blog-hero-meta ul li {
    background: rgba(21, 89, 69, 0.09);
    border-color: rgba(21, 89, 69, 0.18);
    color: #155945;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-size: 11.5px;
    padding: 4px 11px;
  }

  .blog-hero-meta ul li.post-date {
    background: rgba(21, 89, 69, 0.13);
    border-color: rgba(21, 89, 69, 0.25);
    color: #155945;
  }

  .blog-hero-meta ul li.post-reading {
    background: rgba(215, 179, 154, 0.18);
    border-color: rgba(160, 100, 50, 0.25);
    color: #7a4a1e;
  }

  .blog-hero-meta ul li.post-author {
    background: rgba(21, 89, 69, 0.09);
    color: #155945;
  }

  /* Remove accent stripe on mobile to save space */
  .blog-hero-wrap::after { display: none; }
}

/* ================================================================
   TABLET  641 – 991 px
   ================================================================ */
@media (min-width: 641px) and (max-width: 991px) {
  .blog-hero-img {
    border-radius: 20px;
  }

  .blog-hero-meta ul li {
    font-size: 12px;
    padding: 4px 11px;
  }
}
