/* ==========================================================================
   FLIX CYCLE — ADVANCED CINEMATIC ENGINE v1.1
   Features:
   1. Liquid Gold Aura Cursor (Native pointer kept, luxury golden trailing aura)
   2. Golden Scroll Progress Ribbon
   3. Draggable 5-Scene Story Carousel with Snap, Drag Physics & Controls
   4. Magnetic CTA Buttons
   5. Multi-Layer Hero Parallax
   6. 3D Card Tilt Effects
   7. Bulletproof Typography & Smooth Scroll Storytelling
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GOLDEN SCROLL PROGRESS RIBBON
   -------------------------------------------------------------------------- */
.fc-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 99998;
  background: rgba(10, 8, 15, 0.06);
  pointer-events: none;
}

.fc-scroll-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d4af37 0%, #f5d061 50%, #fffde7 85%, #f5d061 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8), 0 0 20px rgba(212, 175, 55, 0.4);
  animation: progressGleam 3s ease-in-out infinite;
}

@keyframes progressGleam {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --------------------------------------------------------------------------
   3. KINETIC HEADINGS (Clean, CSS-Driven, Zero Mangling)
   -------------------------------------------------------------------------- */
.fc-kinetic-line {
  display: inline-block;
  animation: kineticLineUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fc-kinetic-line--delay {
  animation-delay: 0.15s;
}

@keyframes kineticLineUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   4. DRAGGABLE STORY CAROUSEL (.fc-drag-track-outer)
   -------------------------------------------------------------------------- */
.fc-drag-track-outer {
  position: relative;
  overflow: hidden;
  margin: 36px 0 0;
  padding: 10px 0 20px;
}

.fc-drag-track {
  display: flex;
  gap: 24px;
  padding: 12px 20px 24px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.fc-drag-track.is-dragging {
  cursor: grabbing !important;
  transition: none !important;
}

.fc-drag-card {
  flex: 0 0 320px;
  max-width: 320px;
  background: rgba(26, 21, 35, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 22px;
  padding: 28px 24px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fc-drag-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 24px rgba(212, 175, 55, 0.3);
  border-color: rgba(245, 208, 97, 0.7);
}

.fc-drag-card.is-active {
  border-color: #f5d061;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.65), 0 0 30px rgba(212, 175, 55, 0.45);
}

.fc-drag-card__step {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f5d061;
  margin-bottom: 14px;
}

.fc-drag-card__visual {
  margin-bottom: 16px;
  border-radius: 14px;
  overflow: hidden;
  height: 150px;
  background: #110d18;
  border: 1px solid rgba(212, 175, 55, 0.25);
  position: relative;
}

.fc-drag-card__visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.fc-drag-card__img,
.fc-story-card__img,
.fc-drag-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  transition: transform 0.5s ease;
}

.fc-drag-card:hover .fc-drag-card__visual img,
.fc-drag-card:hover .fc-drag-card__img {
  transform: scale(1.06);
}

.fc-drag-card__icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 14px;
  display: inline-block;
  filter: drop-shadow(0 3px 8px rgba(212, 175, 55, 0.4));
}

.fc-drag-card__heading {
  font-family: var(--wp--preset--font-family--display, 'Instrument Serif', serif);
  font-size: 22px;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 10px;
}

.fc-drag-card__body {
  font-size: 13.5px;
  line-height: 1.6;
  color: #d1c9dc;
  margin: 0 0 20px;
  flex-grow: 1;
}

.fc-drag-card__tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #f5d061;
  background: rgba(212, 175, 55, 0.15);
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

/* Carousel Interactive Controls (Arrows + Dots) */
.fc-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.fc-carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(28, 23, 38, 0.9);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  color: #f5d061;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.fc-carousel-arrow:hover {
  background: #f5d061;
  border-color: #f5d061;
  color: #0d0b12;
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.7);
}

.fc-drag-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fc-drag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.35s ease;
}

.fc-drag-dot.is-active {
  width: 26px;
  border-radius: 13px;
  background: #f5d061;
  box-shadow: 0 0 12px rgba(245, 208, 97, 0.8);
}

.fc-drag-hint {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #a49db2;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   5. MAGNETIC CTA BUTTONS
   -------------------------------------------------------------------------- */
.btn--magnetic {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease !important;
  will-change: transform;
}

.btn--magnetic:hover {
  box-shadow: 0 14px 34px rgba(74, 21, 75, 0.28) !important;
}

/* --------------------------------------------------------------------------
   6. 3D CARD TILT ON RITUAL STEPS
   -------------------------------------------------------------------------- */
.fc-ritual-step-item {
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease !important;
}

.fc-ritual-step-item:hover {
  box-shadow: 0 16px 40px rgba(74, 21, 75, 0.12) !important;
}

/* --------------------------------------------------------------------------
   7. MOBILE ADAPTATIONS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .fc-drag-track {
    padding: 12px 16px 20px;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .fc-drag-track::-webkit-scrollbar {
    display: none;
  }

  .fc-drag-card {
    flex: 0 0 270px;
    max-width: 270px;
    scroll-snap-align: center;
  }

  .fc-carousel-arrow {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   8. REDUCED MOTION COMPLIANCE
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .fc-scroll-progress {
    display: none !important;
  }

  .fc-kinetic-line {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .fc-drag-card,
  .fc-ritual-step-item,
  .btn--magnetic {
    transform: none !important;
    transition: none !important;
  }
}
