/* ═══════════════════════════════════════════════════════════════
   STYLING 101 WITH DIAMONDS — HAUTE JEWELLERY IN MOTION
   Interactive 3D Curved Panoramic Spread Hero & Video Reels Deck
   Recreated from @/components/ui/panoramic-spread-hero & Reels Showcase
   ═══════════════════════════════════════════════════════════════ */

.styling-reels-section {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: clamp(40px, 5vw, 80px) auto clamp(60px, 7vw, 110px);
  padding: 0 clamp(16px, 3.5vw, 48px);
  box-sizing: border-box;
  color: var(--color-text-main, #F5F7FA);
  font-family: var(--font-jakarta, 'Plus Jakarta Sans', sans-serif);
  z-index: 5;
  clear: both;
  overflow: hidden;
}

.styling-reels-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
}

/* ── Section Header ────────────────────────────────────────────── */
.styling-reels-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(28px, 3.8vw, 48px);
  opacity: 1;
}

.styling-reels-title {
  font-family: var(--font-playfair, 'Playfair Display', serif);
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.12;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.styling-reels-subtitle {
  font-family: var(--font-playfair, 'Playfair Display', serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 400;
  color: #C5CBD3;
  margin: 0;
  letter-spacing: 0.02em;
}

/* ── 3D Perspective Stage ──────────────────────────────────────── */
.styling-reels-stage {
  position: relative;
  width: 100%;
  height: clamp(500px, 60vh, 640px);
  perspective: 1200px;
  perspective-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

/* 3D Track Container reacting to pointer tilt */
.styling-reels-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* ── Individual Reel Card (9:16 Vertical Video Aspect) ─────────── */
.styling-reel-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(255px, 20vw, 310px);
  height: clamp(420px, 34vw, 520px);
  margin-left: calc(clamp(255px, 20vw, 310px) / -2);
  margin-top: calc(clamp(420px, 34vw, 520px) / -2);
  border-radius: clamp(18px, 2vw, 26px);
  overflow: hidden;
  background: #0E1015;
  border: 1px solid rgba(226, 230, 236, 0.16);
  box-shadow: 
    0 24px 60px -15px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(226, 230, 236, 0.06);
  cursor: pointer;
  transform-origin: center center -50px;
  transition: 
    transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.6s ease,
    filter 0.5s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

.styling-reel-card.is-active {
  cursor: default;
  border-color: #E2E6EC;
  border-width: 1.5px;
  box-shadow: 
    0 32px 80px -12px rgba(0, 0, 0, 0.95),
    0 0 35px rgba(226, 230, 236, 0.55),
    0 0 70px rgba(226, 230, 236, 0.25),
    inset 0 0 2px 1px rgba(255, 255, 255, 0.4);
}

/* Inactive cards have softened overlays for strong visual focus */
.styling-reel-card:not(.is-active) .styling-reel-topbar,
.styling-reel-card:not(.is-active) .styling-reel-product-pill {
  opacity: 0.2;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.styling-reel-card.is-active .styling-reel-topbar,
.styling-reel-card.is-active .styling-reel-product-pill {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s ease;
}

.styling-reel-card:not(.is-active) .styling-reel-occasion-wrap {
  opacity: 0.65;
  transition: opacity 0.4s ease;
}

/* Media (Video or Image) Frame */
.styling-reel-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0B0D12;
}

.styling-reel-media img,
.styling-reel-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #0B0D12;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.styling-reel-card.is-active:hover .styling-reel-media img,
.styling-reel-card.is-active:hover .styling-reel-media video {
  transform: scale(1.04);
}

/* Gradients over video for readability */
.styling-reel-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 9, 12, 0.72) 0%,
    transparent 28%,
    transparent 55%,
    rgba(8, 9, 12, 0.88) 85%,
    #08090C 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* ── Top Reel Bar (Sound, Share, Fullscreen) ─────────────────────── */
.styling-reel-topbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 4;
}

.styling-reel-caption {
  font-size: 0.72rem;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.styling-reel-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.styling-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(12, 15, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.styling-control-btn:hover {
  background: #D4AF37;
  border-color: #FFEBA3;
  color: #08090C;
  transform: scale(1.1);
}

/* ── Center Occasion Tag (e.g. BRUNCH WITH THE GIRLS!) ─────────── */
.styling-reel-occasion-wrap {
  position: absolute;
  bottom: 24px;
  left: 16px;
  right: 16px;
  text-align: center;
  z-index: 3;
  pointer-events: none;
}

.styling-reel-occasion {
  font-family: var(--font-playfair, 'Playfair Display', serif);
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFEBA3;
  text-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.95),
    0 0 16px rgba(212, 175, 55, 0.4);
  margin: 0;
}

/* ── Bottom Product Tag Pill (Hidden per user request) ─────────── */
.styling-reel-product-pill {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute;
  bottom: 14px;
  left: 12px;
  right: 12px;
  height: 64px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(20, 24, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 4;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.styling-reel-product-pill:hover {
  background: rgba(28, 34, 46, 0.96);
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
}

.styling-product-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: #FFFFFF;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  box-sizing: border-box;
}

.styling-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.styling-product-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.styling-product-title {
  font-family: var(--font-playfair, 'Playfair Display', serif);
  font-size: 0.84rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.2;
}

.styling-product-spec {
  font-size: 0.68rem;
  color: #A8B2C1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.styling-product-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFEBA3;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.styling-reel-product-pill:hover .styling-product-arrow {
  background: #D4AF37;
  color: #08090C;
  transform: translateX(2px);
}

/* ── Navigation Arrows (< and >) ───────────────────────────────── */
.styling-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(44px, 4vw, 54px);
  height: clamp(44px, 4vw, 54px);
  border-radius: 50%;
  background: rgba(18, 22, 28, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}

.styling-nav-prev {
  left: clamp(10px, 2.5vw, 40px);
}

.styling-nav-next {
  right: clamp(10px, 2.5vw, 40px);
}

.styling-nav-btn:hover {
  background: #D4AF37;
  border-color: #FFEBA3;
  color: #08090C;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
}

.styling-nav-btn:active {
  transform: translateY(-50%) scale(0.96);
}

/* ── Floating Toast for Share Link ─────────────────────────────── */
.styling-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(20, 24, 32, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid #D4AF37;
  color: #FFEBA3;
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.styling-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive Adaptations ────────────────────────────────────── */
@media (max-width: 900px) {
  .styling-reels-stage {
    height: 520px;
  }
}

@media (max-width: 640px) {
  .styling-reels-section {
    margin: 36px auto 70px;
    padding: 0 12px;
  }
  
  .styling-reels-stage {
    height: 480px;
  }

  .styling-reel-card {
    width: 240px;
    height: 390px;
    margin-left: -120px;
    margin-top: -195px;
  }

  .styling-nav-btn {
    width: 40px;
    height: 40px;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(18, 22, 28, 0.95) !important;
  }

  .styling-nav-prev { left: 4px; }
  .styling-nav-next { right: 4px; }
}

/* ═══════════════════════════════════════════════════════════════════
   STYLING REEL FULLSCREEN CINEMA MODAL
   ═══════════════════════════════════════════════════════════════════ */
.styling-video-modal {
  position: fixed;
  inset: 0;
  z-index: 99999999;
  display: none !important;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.styling-video-modal:not(.is-open),
.styling-video-modal:not(.is-open) * {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.styling-video-modal.is-open {
  display: flex !important;
  opacity: 1;
  visibility: visible !important;
  pointer-events: auto !important;
}

.styling-video-modal.is-open * {
  visibility: visible;
}

.styling-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 10, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
}

.styling-video-modal-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  height: min(88vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
}

.styling-video-modal-player {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #000000;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.95), 
    0 0 35px rgba(212, 175, 55, 0.22);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.styling-modal-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
  background: #000000;
}

.styling-modal-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(12, 15, 20, 0.85);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  color: #FFEBA3;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.styling-modal-play-indicator.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.styling-modal-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px 16px 30px;
  background: linear-gradient(to bottom, rgba(8, 9, 12, 0.9) 0%, rgba(8, 9, 12, 0.45) 60%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.styling-video-modal.is-open .styling-modal-topbar {
  pointer-events: auto;
}

.styling-modal-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.styling-modal-badge {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.22);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #FFEBA3;
  flex-shrink: 0;
}

.styling-modal-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.styling-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.styling-modal-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(12, 15, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.styling-modal-btn:hover {
  background: #D4AF37;
  border-color: #FFEBA3;
  color: #08090C;
  transform: scale(1.08);
}

.styling-modal-close-btn:hover {
  background: #E53E3E;
  border-color: #FEB2B2;
  color: #FFFFFF;
}

.styling-modal-bottombar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 44px 20px 22px;
  background: linear-gradient(to top, rgba(8, 9, 12, 0.96) 0%, rgba(8, 9, 12, 0.65) 60%, transparent 100%);
  z-index: 5;
  pointer-events: none;
  text-align: center;
}

.styling-modal-occasion {
  font-family: var(--font-playfair, 'Playfair Display', serif);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  color: #FFEBA3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.styling-modal-caption {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

@media (max-width: 640px) {
  .styling-video-modal-container {
    max-width: 100vw;
    height: 100vh;
    padding: 0;
  }
  
  .styling-video-modal-player {
    border-radius: 0;
    border: none;
    height: 100vh;
    max-height: 100vh;
  }
}

