/* =====================================================
   BBW Candle Warmer Article — Premium Visual System
   High-engagement image design for max dwell time
   ===================================================== */

/* ── Hero Full-Bleed Cinematic Image ── */
.bbw-hero-visual {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: clamp(320px, 55vw, 560px);
  overflow: hidden;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.bbw-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.06);
  transition: transform 8s ease-out;
  will-change: transform;
}

.bbw-hero-visual:hover img {
  transform: scale(1.0);
}

.bbw-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.0) 40%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
}

.bbw-hero-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  right: 2rem;
  z-index: 2;
  color: #fff;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.bbw-hero-caption em {
  display: block;
  font-size: 0.8em;
  font-weight: 400;
  font-style: normal;
  opacity: 0.85;
  margin-top: 0.25rem;
}

/* ── Magazine Feature Image ── */
.bbw-feature-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin: 2.25rem 0;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.05),
    0 10px 40px rgba(0,0,0,0.12),
    0 0 0 1px rgba(0,0,0,0.04);
  cursor: zoom-in;
  background: #1a1209;
}

.bbw-feature-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.4s ease;
  transform-origin: center;
  will-change: transform;
}

.bbw-feature-img-wrap:hover img {
  transform: scale(1.04);
  filter: brightness(1.05) saturate(1.1);
}

.bbw-img-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fbbf24;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  z-index: 3;
  border: 1px solid rgba(251,191,36,0.3);
}

.bbw-img-caption {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: #6b7280;
  font-style: italic;
  text-align: center;
  background: #fafaf8;
  border-top: 1px solid #f0ede8;
  line-height: 1.45;
}

/* ── Full-Width Cinematic Break ── */
.bbw-cinematic-break {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: clamp(250px, 40vw, 420px);
  overflow: hidden;
  margin: 2.5rem 0;
}

.bbw-cinematic-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
  transform: scale(1.03);
}

.bbw-cinematic-break:hover img {
  transform: scale(1.0);
}

.bbw-cinematic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(180, 100, 20, 0.35) 0%,
    rgba(0,0,0,0.0) 50%,
    rgba(0,0,0,0.4) 100%
  );
  z-index: 1;
  mix-blend-mode: multiply;
}

.bbw-cinematic-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.bbw-cinematic-quote {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  max-width: 520px;
  text-align: center;
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.bbw-cinematic-quote span {
  display: block;
  font-size: 0.8em;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ── Side-by-Side Comparison Grid ── */
.bbw-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

@media (max-width: 600px) {
  .bbw-compare-grid {
    grid-template-columns: 1fr;
  }
}

.bbw-compare-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  cursor: zoom-in;
}

.bbw-compare-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.bbw-compare-item:hover img {
  transform: scale(1.06);
}

.bbw-compare-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.bbw-compare-label.bad {
  background: linear-gradient(to top, rgba(180,30,30,0.85), transparent);
}

.bbw-compare-label.good {
  background: linear-gradient(to top, rgba(20,130,50,0.85), transparent);
}

/* ── Floating Stat Cards over Image ── */
.bbw-stats-visual {
  position: relative;
  border-radius: 16px;
  overflow: visible;
  margin: 2.5rem 0;
}

.bbw-stats-visual img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.bbw-stat-float {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.8);
  text-align: center;
  min-width: 110px;
  z-index: 4;
  animation: floatCard 3s ease-in-out infinite;
}

.bbw-stat-float:nth-child(2) { animation-delay: 0s; }
.bbw-stat-float:nth-child(3) { animation-delay: 1s; }
.bbw-stat-float:nth-child(4) { animation-delay: 2s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.bbw-stat-float.top-left {
  top: -16px;
  left: -12px;
}

.bbw-stat-float.top-right {
  top: -16px;
  right: -12px;
}

.bbw-stat-float.bottom-center {
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
}

.bbw-stat-float.bottom-center:hover {
  transform: translateX(-50%) translateY(-4px);
  animation: none;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 900;
  color: #b45309;
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
  line-height: 1.25;
}

/* ── Lightbox ── */
.bbw-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1rem;
}

.bbw-lightbox-overlay.active {
  display: flex;
}

.bbw-lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.8);
  animation: lightboxIn 0.25s ease;
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.bbw-lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.15s;
  background: none;
  border: none;
}

.bbw-lightbox-close:hover { opacity: 1; }

/* ── Blur-up lazy load animation ── */
.bbw-lazy {
  filter: blur(8px) saturate(0.5);
  transition: filter 0.5s ease;
}
.bbw-lazy.loaded {
  filter: blur(0) saturate(1);
}

/* ── Scroll-reveal animations ── */
.bbw-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.bbw-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Autumn color accent strip ── */
.bbw-autumn-strip {
  background: linear-gradient(90deg,
    #b45309 0%, #d97706 25%, #f59e0b 50%, #d97706 75%, #b45309 100%
  );
  height: 3px;
  border-radius: 100px;
  margin: 1.5rem 0;
}
