/* ==========================================================================
   Realistic 3D Brochure & Magazine Mockup Presentation
   ========================================================================== */
.mockup-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: -6px 0 16px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 60%, rgba(255, 244, 199, 0.75) 0%, rgba(255, 253, 244, 0.4) 65%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  overflow: visible;
  transition: background 0.4s ease;
}

/* Ambient Backlight Glow */
.mockup-stage::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 234, 160, 0.7) 0%, rgba(255, 244, 199, 0.2) 60%, transparent 80%);
  filter: blur(28px);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.brochure-card:hover .mockup-stage::before {
  opacity: 0.95;
  transform: scale(1.12);
}

/* 3D Magazine / Booklet Mockup */
.book-mockup-3d {
  position: relative;
  z-index: 2;
  width: 82%;
  aspect-ratio: 16 / 10;
  border-radius: 3px 8px 8px 3px;
  transform-style: preserve-3d;
  transform: rotateY(-13deg) rotateX(4deg) translateZ(0);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
  cursor: pointer;
}

/* Page Stack Effect (Simulates Booklet Thickness) */
.book-mockup-3d::after {
  content: "";
  position: absolute;
  top: 3px;
  right: -5px;
  bottom: 3px;
  width: 5px;
  border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(
    to bottom,
    #F3EFE0 0px,
    #E4DECD 1.5px,
    #FFFFFF 3px
  );
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.12);
  transform: translateZ(-2px);
  z-index: -1;
}

/* Bottom Drop Shadow simulating 3D desk lighting */
.book-shadow-cast {
  position: absolute;
  bottom: 8%;
  left: 20%;
  right: 14%;
  height: 22px;
  background: rgba(30, 45, 40, 0.28);
  filter: blur(14px);
  border-radius: 50%;
  transform: rotateX(65deg) translateZ(-10px);
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

/* Hover Interactions on 3D Mockup */
.brochure-card:hover .book-mockup-3d {
  transform: rotateY(-4deg) rotateX(1deg) translateY(-8px) scale(1.05);
}

.brochure-card:hover .book-shadow-cast {
  transform: rotateX(65deg) translateY(14px) scale(1.14);
  opacity: 0.38;
  filter: blur(18px);
}

/* Front Cover Container */
.book-cover-front {
  position: absolute;
  inset: 0;
  border-radius: 3px 8px 8px 3px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow:
    -3px 0 6px rgba(0, 0, 0, 0.18), /* left spine crease */
    5px 8px 24px rgba(25, 45, 38, 0.22);
}

/* Left Spine Crease Highlight */
.book-cover-front::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.22) 0%,
    rgba(255, 255, 255, 0.35) 40%,
    rgba(0, 0, 0, 0.08) 75%,
    transparent 100%
  );
  z-index: 4;
  pointer-events: none;
}

/* Subtle Gloss Sheen Overlay across cover */
.book-cover-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.05) 45%,
    transparent 70%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* Image Cover */
.mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brochure-card:hover .mockup-img {
  transform: scale(1.04);
}

/* Click-to-Zoom Indicator */
.zoom-hint-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--emerald-800);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: scale(0.85);
  transition: var(--trans-fast);
  z-index: 5;
  pointer-events: none;
}

.brochure-card:hover .zoom-hint-badge {
  opacity: 1;
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   High-Fidelity Editorial Cover Generator (CSS/SVG Fallback)
   Used when static raster images are missing
   -------------------------------------------------------------------------- */
.editorial-cover-gen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 64px 24px 20px;
  position: relative;
  color: #FFFFFF;
  overflow: hidden;
}

.editorial-cover-gen.theme-emerald {
  background: linear-gradient(150deg, #1A342E 0%, #2C4A42 55%, #152420 100%);
}

.editorial-cover-gen.theme-gold {
  background: linear-gradient(150deg, #322B14 0%, #4D3D18 55%, #251E0E 100%);
}

.editorial-cover-gen.theme-teal {
  background: linear-gradient(150deg, #14323A 0%, #1D4B57 55%, #0F2329 100%);
}

.editorial-cover-gen.theme-deep {
  background: linear-gradient(150deg, #182230 0%, #26384D 55%, #111A24 100%);
}

.cover-gen-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 6px;
}

.cover-gen-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--lime-primary);
  margin: 12px 0 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cover-gen-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.cover-gen-rule {
  width: 24px;
  height: 3px;
  background: var(--lime-primary);
  border-radius: 2px;
  margin-bottom: 8px;
}

.cover-gen-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime-primary);
}
