/* ==========================================================================
   AUVERSE • NATIONAL BOYFRIEND DAY (3 OKTOBER 2026)
   From Aralie to Ryan • Deep Plum Aesthetic Slideshow (#560b2d)
   Fluid Slide Animations + Audio Player Support
   ========================================================================== */

:root {
  --bg-color: #560b2d;
  --text-white: #ffffff;
  --text-gold: #f2b705;
  --max-width: 480px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-white);
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

/* ==========================================================================
   MAIN STORY CONTAINER & SLIDES
   ========================================================================== */
.story-container {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
}

.slide-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 40px 22px 55px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(60px) scale(0.96);
  filter: blur(3px);
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), 
              opacity 0.45s ease, 
              filter 0.45s ease;
}

.slide-item.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

.slide-item.prev {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-60px) scale(0.96);
  filter: blur(3px);
}

/* ==========================================================================
   STAGGERED ENTRANCE ANIMATIONS FOR ACTIVE SLIDE CONTENT
   ========================================================================== */
.slide-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.slide-item.active .text-lead,
.slide-item.active .quote-card-left,
.slide-item.active .dual-row-1,
.slide-item.active .appreciation-lead,
.slide-item.active .finale-header {
  animation: slideInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.slide-item.active .photo-wrapper,
.slide-item.active .dual-row-2 {
  animation: photoZoomIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.slide-item.active .text-caption,
.slide-item.active .quote-card-right,
.slide-item.active .dual-row-3,
.slide-item.active .reasons-stack,
.slide-item.active .finale-message {
  animation: slideInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.slide-item.active .dual-row-4 {
  animation: slideInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

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

@keyframes photoZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.text-white {
  color: var(--text-white);
  font-size: clamp(0.92rem, 3.8vw, 1.05rem);
  line-height: 1.5;
  font-weight: 400;
}

.gold-italic {
  color: var(--text-gold);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(0.92rem, 3.8vw, 1.05rem);
  line-height: 1.5;
}

.text-lead {
  font-size: clamp(0.98rem, 4.2vw, 1.15rem);
  margin-bottom: 6px;
}

.text-caption {
  font-size: clamp(0.92rem, 3.8vw, 1.05rem);
  margin-top: 6px;
}

.text-sm {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* ==========================================================================
   PHOTO WRAPPER (Direct Photo + Shadow Only)
   ========================================================================== */
.photo-wrapper {
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 3px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 3px 10px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.8);
}

.au-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

/* ==========================================================================
   LAYOUT 1: HERO / COVER
   ========================================================================== */
.layout-hero {
  gap: 16px;
}

.hero-frame {
  width: min(270px, 72vw);
  height: min(320px, 40vh);
}

/* ==========================================================================
   LAYOUT 2: OFFSET QUOTES & PORTRAIT
   ========================================================================== */
.layout-offset {
  gap: 14px;
  width: 100%;
}

.quote-card-left {
  text-align: left;
  width: 100%;
  padding-left: 6px;
}

.offset-photo {
  width: min(280px, 74vw);
  height: min(230px, 32vh);
}

.quote-card-right {
  text-align: right;
  width: 100%;
  padding-right: 6px;
  margin-top: 2px;
}

/* ==========================================================================
   LAYOUT 3: ASYMMETRICAL DUAL (Screenshot 3 Alignment)
   ========================================================================== */
.layout-dual {
  gap: 12px;
  width: 100%;
}

.dual-row-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.dual-text-left {
  flex: 1;
  text-align: left;
  font-size: clamp(0.92rem, 3.8vw, 1.05rem);
  line-height: 1.45;
}

.dual-photo-top {
  width: min(135px, 36vw);
  height: min(110px, 15vh);
  flex-shrink: 0;
}

.dual-row-2 {
  width: 100%;
  text-align: right;
  padding-right: 4px;
}

.dual-text-right {
  font-size: clamp(0.92rem, 3.8vw, 1.05rem);
  line-height: 1.45;
}

.dual-row-3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.dual-text-prompt {
  text-align: left;
  font-size: clamp(1rem, 4.2vw, 1.15rem);
  padding-left: 10px;
}

.dual-photo-bottom {
  width: min(145px, 38vw);
  height: min(115px, 16vh);
  flex-shrink: 0;
  margin-left: auto;
}

.dual-row-4 {
  width: 100%;
  text-align: center;
  margin-top: 2px;
}

.dual-text-footer {
  font-size: clamp(0.92rem, 3.8vw, 1.05rem);
  line-height: 1.45;
}

/* ==========================================================================
   LAYOUT 4: APPRECIATION WIDE CARD
   ========================================================================== */
.layout-appreciation {
  gap: 14px;
  width: 100%;
}

.appreciation-lead {
  font-size: clamp(0.95rem, 4vw, 1.1rem);
  text-align: center;
}

.wide-frame {
  width: min(300px, 82vw);
  height: min(200px, 28vh);
}

.reasons-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
  width: 100%;
  max-width: 340px;
  margin-top: 4px;
}

/* ==========================================================================
   LAYOUT 5: FINALE CARD
   ========================================================================== */
.layout-finale {
  gap: 14px;
  width: 100%;
}

.finale-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.font-title {
  font-size: clamp(1rem, 4.2vw, 1.15rem);
  font-weight: 500;
}

.font-name {
  font-size: clamp(1.2rem, 5vw, 1.45rem);
  font-weight: 700;
}

.finale-message {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.font-quote {
  font-size: 1.05rem;
  margin: 2px 0;
}

.sign-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
}

/* ==========================================================================
   BOTTOM BAR (Dots Indicator)
   ========================================================================== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

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

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dot.active {
  background: #ffffff;
  width: 18px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}
