/* ============================================
   AS WEDDING — Story Onboarding Styles
   Full-screen slides, progress bars, animations
   ============================================ */

/* ================ CONTAINER ================ */
.story-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    flex: 1;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
}

/* ================ SLIDES ================ */
.story-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 28px 80px;
    text-align: center;
    overflow: hidden;
    transform: translateX(100%);
    /* Default off-screen right */
    transition: transform 0.35s ease-in-out;
}

.story-slide.active {
    transform: translateX(0);
    /* On-screen */
}

.story-slide.prev {
    transform: translateX(-100%);
    /* Off-screen left */
}

/* ================ PROGRESS BARS (bottom) ================ */
.story-progress {
    position: absolute;
    bottom: 20px;
    left: 16px;
    right: 16px;
    display: flex;
    gap: 4px;
    z-index: 20;
}

.story-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(201, 168, 76, 0.25);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-fill {
    height: 100%;
    width: 0%;
    background: #C9A84C;
    border-radius: 2px;
}

.story-progress-fill.filled {
    width: 100%;
}

/* ================ NAV ARROWS ================ */
.story-nav {
    position: absolute;
    bottom: 40px;
    z-index: 15;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid #C9A84C;
    border-radius: 50%;
    color: #C9A84C;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.story-nav:active {
    transform: scale(0.95);
    background: rgba(201, 168, 76, 0.1);
}

.story-nav.hidden {
    display: none !important;
}

.story-nav-prev {
    left: 20px;
}

.story-nav-next {
    right: 20px;
}

.story-nav-begin {
    position: absolute;
    bottom: 40px;
    right: 20px;
    z-index: 15;
    background: #C9A84C;
    color: #1C1008;
    border: none;
    border-radius: 24px;
    padding: 10px 20px;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: none;
    transition: transform 0.2s;
}

.story-nav-begin:active {
    transform: scale(0.97);
}

/* ================ TAP ZONES ================ */
.story-tap-left,
.story-tap-right {
    position: absolute;
    top: 0;
    bottom: 80px;
    z-index: 10;
    cursor: pointer;
}

/* ================ GLOBAL SKIP BUTTON ================ */
#story-skip-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 50; /* Needs to sit above slides and tap zones */
  background: rgba(250, 247, 242, 0.75);
  border: 1px solid #C9A84C;
  color: #C9A84C;
  font-size: 0.78rem;
  font-family: inherit;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, color 0.2s ease;
}

#story-skip-btn:hover,
#story-skip-btn:active {
  background: #C9A84C;
  color: #ffffff;
}

.story-tap-left {
    left: 0;
    width: 40%;
}

.story-tap-right {
    right: 0;
    width: 60%;
}

/* ============================================================
   SLIDE 1: MEDHASHI DEFINITION (moved from slide 2)
   ============================================================ */
.slide-medhashi {
    background: #1C1008;
}



.medhashi-card {
    width: 100%;
    max-width: 340px;
    text-align: left;
    padding: 0 8px;
}

.medhashi-word {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #F5EFE6;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    min-height: 2.2rem;
    margin-bottom: 4px;
}

.medhashi-word .typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.6rem;
    background: #C9A84C;
    margin-left: 2px;
    animation: blink 0.6s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.medhashi-pronunciation {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    color: rgba(245, 239, 230, 0.5);
    font-style: italic;
    margin-bottom: 12px;
    opacity: 0;
}

.medhashi-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C9A84C, transparent);
    margin-bottom: 16px;
    opacity: 0;
}

.medhashi-type {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    color: rgba(245, 239, 230, 0.45);
    font-style: italic;
    margin-bottom: 16px;
    opacity: 0;
}

.medhashi-def {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: #F5EFE6;
    line-height: 1.7;
    margin-bottom: 12px;
    opacity: 0;
}

.medhashi-def .def-num {
    color: #C9A84C;
    font-weight: 600;
    margin-right: 4px;
}

.medhashi-def-hi {
    font-family: 'Tiro Devanagari Hindi', serif;
    font-size: 0.92rem;
    color: rgba(245, 239, 230, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0;
}

.medhashi-site {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8rem;
    color: #C9A84C;
    letter-spacing: 0.05em;
    opacity: 0;
}

.medhashi-card .fade-in-def {
    animation: defFadeIn 0.8s ease forwards;
}

@keyframes defFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============================================================
   SLIDE 2: INVITATION
   ============================================================ */
.slide-invitation {
    background: #FAF7F2;
}

.invite-card {
    text-align: center;
    width: 100%;
    max-width: 360px;
}

.invite-blessings {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    font-style: italic;
    color: #7D8F7B;
    /* sage green */
    margin: 16px 0 12px;
    opacity: 0;
}

.invite-parents-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    opacity: 0;
}

.invite-parents-col {
    flex: 1;
    font-size: 0.85rem;
    color: #A38848;
    /* soft gold */
    line-height: 1.5;
}

.invite-parents-ampersand {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #A38848;
    margin: 0 10px;
    margin-top: 8px;
}

.invite-divider {
    width: 80px;
    height: 1px;
    background: #C9A84C;
    margin: 0 auto 24px;
    opacity: 0.5;
    opacity: 0;
}

.invite-together {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    color: #B58A8A;
    /* dusty rose */
    margin-bottom: 20px;
    opacity: 0;
}

.invite-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: #4A1A26;
    /* deep burgundy */
    line-height: 1.1;
    margin-bottom: 4px;
    opacity: 0;
}

.invite-names-hi {
    font-family: 'Tiro Devanagari Hindi', serif;
    font-size: 1.4rem;
    color: #4A1A26;
    margin-bottom: 24px;
    opacity: 0;
}

.invite-request {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    color: #5A4A3A;
    line-height: 1.6;
    margin-bottom: 28px;
    opacity: 0;
}

.invite-date-location {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: #A38848;
    text-transform: uppercase;
    line-height: 1.8;
    margin-top: 24px;
    margin-bottom: 16px;
    opacity: 0;
}

.invite-fade-in {
    animation: inviteFadeUp 0.8s ease forwards;
}

@keyframes inviteFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   SLIDE 3: VIDEO BACKGROUND
   ============================================================ */
.slide-video {
    background: #FAF7F2;
    padding: 0;
}

#story-video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#coupleVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#couple-video-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FAF7F2;
    z-index: 10;
    transition: opacity 0.4s ease;
}

#couple-video-loader span {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-size: 2rem;
    color: #C9A84C;
    letter-spacing: 0.3em;
    animation: monogramPulse 1.8s ease-in-out infinite;
}

@keyframes monogramPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.96); }
}