/* ==========================================================================
   BLOG SINGLE PAGE
   Styles for the full blog post detail view.
   Reuses .vw-legal for content typography and .vw-legal-toc for the sidebar.
   ========================================================================== */


/* ==========================================================================
   POST HERO (title / meta strip above the image)
   ========================================================================== */

.vw-post-hero-section {
  padding-bottom: 32px;
}

/* Breadcrumb Navigation */
.vw-breadcrumb {
  margin-bottom: 20px;
}

.vw-breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.vw-breadcrumb__item {
  display: flex;
  align-items: center;
}

.vw-breadcrumb__item::after {
  content: '';
  display: inline-flex;
  align-items: center;
  margin: 0 8px;
  color: var(--vw-muted);
  opacity: 0.4;
  width: 16px;
  height: 16px;
}

.vw-breadcrumb__item::after {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="9 18 15 12 9 6"></polyline></svg>') no-repeat center;
  background-size: contain;
}

.vw-breadcrumb__item:last-child::after {
  display: none;
}

.vw-breadcrumb__link {
  color: var(--vw-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.vw-breadcrumb__link:hover {
  color: var(--vw-blue-dark);
  text-decoration: underline;
}

.vw-breadcrumb__item--current .vw-breadcrumb__text {
  color: var(--vw-muted);
  font-weight: 500;
}

.vw-post-hero__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vw-blue);
  background: var(--vw-bg-blue);
  border: 1px solid rgba(9, 105, 208, 0.18);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 20px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.vw-post-hero__category:hover {
  background: var(--vw-blue);
  color: #fff;
}

.vw-post-hero__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--vw-ink);
  max-width: 820px;
  margin-bottom: 20px;
}

.vw-post-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 0;
  font-size: 14px;
  color: var(--vw-muted);
}

.vw-post-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vw-post-hero__meta-item svg {
  flex-shrink: 0;
  color: var(--vw-blue);
}

.vw-post-hero__meta-sep {
  margin: 0 12px;
  opacity: 0.4;
}


/* ==========================================================================
   FEATURED IMAGE
   ========================================================================== */

.vw-post-thumb-section {
  padding: 0;
  background: var(--vw-bg);
}

.vw-post-thumb {
  margin: 0;
  border-radius: var(--vw-radius);
  overflow: hidden;
  max-height: 520px;
  box-shadow: 0 20px 50px -20px rgba(15, 27, 51, 0.25);
}

.vw-post-thumb img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Disable the global .vw-frame hover scale for the featured image */
.vw-post-thumb.vw-frame:hover img {
  transform: none;
}


/* ==========================================================================
   TWO-COLUMN LAYOUT: TOC sidebar + post body
   ========================================================================== */

.vw-post-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.vw-post-body {
  min-width: 0; /* Prevent grid blowout */
}


/* ==========================================================================
   MID-PAGE CTA BLOCK
   ========================================================================== */

.vw-post-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
  padding: 32px 36px;
  background: linear-gradient(135deg, var(--vw-navy) 0%, #0d2a6e 100%);
  border-radius: var(--vw-radius);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Decorative ring */
.vw-post-cta::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.vw-post-cta::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.vw-post-cta__body {
  flex: 1;
  min-width: 0;
}

.vw-post-cta__body .vw-eyebrow {
  color: var(--vw-orange);
  margin-bottom: 8px;
  font-size: 11px;
}

.vw-post-cta__text {
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  margin: 0;
}

.vw-post-cta .vw-btn {
  flex-shrink: 0;
  white-space: nowrap;
}


/* ==========================================================================
   SHARE SECTION
   ========================================================================== */

.vw-post-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--vw-line);
}

.vw-post-share__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vw-muted);
  margin-right: 4px;
}

.vw-post-share__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vw-post-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid var(--vw-line);
  background: #fff;
  color: var(--vw-ink);
  cursor: pointer;
  transition: all 0.2s var(--vw-ease);
  line-height: 1;
}

.vw-post-share__btn:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(15, 27, 51, 0.18);
}

.vw-post-share__btn--fb:hover  { background: #1877f2; color: #fff; }
.vw-post-share__btn--x:hover   { background: #000;    color: #fff; }
.vw-post-share__btn--li:hover  { background: #0a66c2; color: #fff; }
.vw-post-share__btn--wa:hover  { background: #25d366; color: #fff; }
.vw-post-share__btn--copy:hover { background: var(--vw-bg-blue); color: var(--vw-blue); border-color: var(--vw-blue); }

/* Copied feedback state */
.vw-post-share__btn--copy.is-copied {
  background: var(--vw-green);
  border-color: var(--vw-green);
  color: #fff;
  transform: none;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .vw-post-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .vw-legal-toc {
    display: none;
  }

  .vw-post-cta {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
    gap: 16px;
  }
}

@media (max-width: 680px) {
  .vw-breadcrumb__list {
    font-size: 12px;
  }

  .vw-breadcrumb__item::after {
    margin: 0 6px;
  }

  .vw-post-hero__title {
    font-size: 26px;
  }

  .vw-post-thumb {
    border-radius: 12px;
    max-height: 260px;
  }

  .vw-post-hero__meta-sep {
    margin: 0 6px;
  }

  .vw-post-cta {
    padding: 24px 20px;
  }

  .vw-post-cta__text {
    font-size: 15px;
  }

  .vw-post-share {
    gap: 10px;
  }

  .vw-post-share__btn {
    padding: 7px 12px;
    font-size: 12px;
  }
}
