/* =========================================================
   COMPONENTS.CSS — PREMIUM INTERFACE ELEMENTS
   ========================================================= */


/* LUXURY BUTTONS */

.luxury-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 15px 30px;
    overflow: hidden;
    border: 1px solid var(--champagne-gold);
    border-radius: 3px;
    font-family: var(--font-royal);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .11em;
    line-height: 1.5;
    transition:
        transform .5s var(--ease-luxury),
        box-shadow .5s,
        background .5s;
}

.luxury-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(156,121,68,.2);
}

.luxury-button:active {
    transform: scale(.98);
}

.luxury-button--opening {
    background: linear-gradient(
        115deg,
        #9B773F,
        #E5C58A 45%,
        #B28B4C
    );
    color: #182331;
    box-shadow:
        0 0 30px rgba(196,163,109,.15),
        inset 0 1px 0 rgba(255,255,255,.5);
}

.luxury-button__text,
.luxury-button__icon {
    position: relative;
    z-index: 2;
}

.luxury-button__shine {
    position: absolute;
    top: -50%;
    left: -70%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.45),
        transparent
    );
    transform: rotate(25deg);
    pointer-events: none;
}

.luxury-button--primary {
    background: #193749;
    border-color: #193749;
    color: #FFF1D8;
}

.luxury-button--outline {
    background: transparent;
    color: #795D35;
}


/* FLOATING CONTROLS */

.experience-controls {
    position: fixed;
    right: 22px;
    bottom: calc(22px + var(--safe-bottom));
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: opacity .5s, transform .5s;
}

body:not(.has-entered) .experience-controls {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.music-toggle,
.back-to-top {
    position: relative;
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    padding: 0;
    border: 1px solid rgba(196,163,109,.8);
    border-radius: 50%;
    background: rgba(16,31,48,.94);
    color: #E8CCA0;
    box-shadow: 0 5px 20px rgba(0,0,0,.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.music-toggle__ring {
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(196,163,109,.4);
    border-radius: 50%;
}

.music-toggle__equalizer {
    display: none;
    align-items: center;
    gap: 3px;
    height: 22px;
}

.music-toggle__equalizer i {
    width: 2px;
    height: 14px;
    border-radius: 2px;
    background: #E8CCA0;
}

.music-toggle.is-playing .music-toggle__note {
    display: none;
}

.music-toggle.is-playing .music-toggle__equalizer {
    display: flex;
}

.back-to-top {
    width: 42px;
    height: 42px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .4s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* DIVINE LIGHT TRANSITION */

.divine-light {
    position: fixed;
    inset: 0;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
}

.divine-light__core,
.divine-light__halo,
.divine-light__rays {
    position: absolute;
    inset: 0;
}

.divine-light__core {
    background: radial-gradient(
        circle at center,
        #FFFDF4,
        #F6DEB1 50%,
        #D4AC6D
    );
}

.divine-light__halo {
    background: radial-gradient(
        circle,
        rgba(255,255,255,.95),
        transparent 70%
    );
}

.divine-light__rays {
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255,255,255,.25),
        transparent,
        rgba(255,255,255,.25),
        transparent
    );
}


/* PHOTO JOURNAL */

.photo-journal {
    position: relative;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.journal-chapter-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 0 auto 20px;
}

.journal-chapter-indicator__text {
    font-family: var(--font-royal);
    font-size: 11px;
    letter-spacing: .22em;
    color: var(--antique-gold);
}

.journal-chapter-indicator__line {
    width: 45px;
    height: 1px;
    background: #C4A36D;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    height: clamp(380px, 52vw, 600px);
    overflow: hidden;
    perspective: 1500px;
    touch-action: pan-y;
}

.carousel-stage {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.journal-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(250px, 33vw, 420px);
    height: 94%;
    margin: 0;
    transform:
        translate(-50%, -50%)
        translateX(0)
        rotateY(0)
        scale(.75);
    opacity: 0;
    pointer-events: none;
    transition:
    transform 1.4s cubic-bezier(.22, 1, .36, 1),
    opacity 1.2s ease-in-out,
    filter 1.4s ease-in-out;
    transform-style: preserve-3d;
    will-change: transform;
}

.journal-slide.is-active {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.journal-slide.is-neighbor {
    pointer-events: auto;
    cursor: pointer;
}

.journal-slide__shadow {
    position: absolute;
    inset: 7% 6%;
    background: rgba(70,40,24,.24);
    filter: blur(20px);
    transform: translateY(20px);
    border-radius: 12px;
}

.journal-slide__photo {
    position: absolute;
    inset: 5% 5%;
    overflow: hidden;
    border: 1px solid #D3B47D;
    background: #E9DCCA;
    border-radius: 5px;
}

.journal-slide__photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    image-orientation: from-image;
    user-select: none;
    transition: transform 1.2s var(--ease-luxury);
}

.journal-slide.is-active:hover .journal-slide__photo img {
    transform: scale(1.025);
}

.journal-slide__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
    z-index: 2;
}

.journal-slide__number {
    position: absolute;
    bottom: 5%;
    right: 8%;
    z-index: 3;
    font-family: var(--font-royal);
    font-size: 10px;
    color: #795D35;
    background: rgba(255,249,240,.9);
    padding: 3px 8px;
    border-radius: 2px;
}

.journal-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin-top: 18px;
}

.journal-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #C4A36D;
    background: rgba(255,249,240,.65);
    color: #927344;
    display: grid;
    place-items: center;
    transition: .4s var(--ease-luxury);
}

.journal-arrow:hover {
    background: #C4A36D;
    color: #FFF9F0;
    transform: scale(1.06);
}

.journal-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.journal-dot {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: 0;
}

.journal-dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #C9B79E;
    transform: translate(-50%, -50%);
    transition: .4s;
}

.journal-dot.is-active::after {
    width: 19px;
    border-radius: 8px;
    background: #9C7944;
}

.journal-autoplay {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 0;
    font-size: 13px;
    color: #806D57;
    padding: 10px 15px;
    margin-top: 10px;
}

.journal-progress {
    width: 120px;
    height: 2px;
    margin: 4px auto 0;
    background: rgba(156,121,68,.18);
    overflow: hidden;
}

.journal-progress__bar {
    width: 100%;
    height: 100%;
    background: #C4A36D;
    transform: scaleX(0);
    transform-origin: left;
}

/* LUXURY EDITORIAL STORYTELLING */

.journal-story {
    position: relative;
    width: min(800px, calc(100% - 40px));
    min-height: 0;
    margin: 0 auto;
    padding: 0 15px 20px;
    text-align: center;
}

.journal-story__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #B3935D;
    font-size: 16px;
    margin: 0 auto 14px;
}

.journal-story__ornament::before,
.journal-story__ornament::after {
    content: "";
    width: 45px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        #C4A36D
    );
}

.journal-story__ornament::after {
    transform: rotate(180deg);
}

.journal-story__title {
    font-family: "Cinzel", serif;
    color: #8C6A3B;
    font-size: clamp(10px, 1vw, 13px);
    font-weight: 600;
    letter-spacing: .24em;
    line-height: 1.6;
    text-transform: uppercase;
    margin: 0 auto 8px;
}

.journal-story__calligraphy {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(32px, 4.2vw, 58px);
    font-weight: 500;
    font-style: italic;
    color: #702C32;
    line-height: 1.15;
    letter-spacing: -.025em;
    margin: 8px auto 12px;
}

.journal-story__description {
    font-family: "Cormorant Garamond", serif;
    max-width: 600px;
    margin: 0 auto;
    color: #745B47;
    font-size: clamp(17px, 1.65vw, 22px);
    font-weight: 500;
    line-height: 1.5;
    text-wrap: balance;
}

.journal-story__quote {
    color: #9C7944;
    font-style: italic;
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
}

.journal-story__quote:empty {
    display: none;
}

/* WEDDING EVENT DECK */

.event-navigation {
    position: sticky;
    top: 12px;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: calc(100% - 24px);
    padding: 8px 12px;
    margin: 0 auto 30px;
    border: 1px solid rgba(196,163,109,.3);
    border-radius: 50px;
    background: rgba(250,243,231,.94);
    box-shadow: 0 5px 25px rgba(70,40,24,.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.event-nav-button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    color: #9C7944;
    font-family: var(--font-royal);
    font-size: 11px;
    transition: .35s;
}

.event-nav-button.is-active {
    background: #193749;
    color: #F8E7C3;
    border-color: #C4A36D;
}

.event-deck {
    width: min(960px, calc(100% - 48px));
    margin: 0 auto;
    position: relative;
    padding-bottom: 60px;
}

.event-card {
    position: relative;
    display: grid;
    grid-template-columns: 43% 57%;
    min-height: 520px;
    margin-bottom: 55px;
    border-radius: 12px;
    border: 1px solid var(--event-accent);
    background: #FFF9F0;
    box-shadow: 0 20px 55px rgba(70,40,24,.14);
    overflow: hidden;
    isolation: isolate;
    transform-origin: center top;
}

.event-card:last-child {
    margin-bottom: 0;
}

.event-card__artwork {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: #EAD8BF;
}

.event-card__artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.2s var(--ease-luxury);
}

.event-card:hover .event-card__artwork img {
    transform: scale(1.035);
}

.event-card__image-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        transparent 60%,
        rgba(32,21,15,.25)
    );
}

.event-card__number {
    position: absolute;
    left: 20px;
    top: 20px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 50%;
    background: rgba(30,23,19,.25);
    color: #FFF3D9;
    font-family: var(--font-royal);
    font-size: 12px;
    backdrop-filter: blur(6px);
}

.event-card__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 35px clamp(25px, 5vw, 60px);
}

.event-card__content::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid var(--event-accent);
    opacity: .25;
    pointer-events: none;
}

.event-card__eyebrow {
    font-family: var(--font-royal);
    font-size: 10px;
    letter-spacing: .16em;
    color: #927344;
    margin-bottom: 16px;
}

.event-card__hindi {
    font-size: clamp(21px, 3vw, 29px);
    color: #927344;
}

.event-card__title {
    font-size: clamp(38px, 5.5vw, 66px);
    color: var(--bridal-maroon);
    font-weight: 500;
    margin-top: 8px;
}

.event-card__tagline {
    font-size: clamp(29px, 4vw, 43px);
    color: #9C7944;
    margin-top: 12px;
}

.event-card__details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 18px 0;
    margin: 20px 0;
    border-block: 1px solid rgba(196,163,109,.25);
    font-family: var(--font-royal);
    font-size: 11px;
    line-height: 1.7;
    color: #71583C;
    letter-spacing: .05em;
}

.event-card__description {
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.5;
    color: #655342;
}

.event-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: min(280px, 75%);
    margin: 25px auto 0;
    font-family: var(--font-royal);
    font-size: 11px;
    color: #9C7944;
}

.event-progress__track {
    flex: 1;
    height: 2px;
    background: rgba(196,163,109,.25);
}

.event-progress__bar {
    height: 100%;
    width: 100%;
    transform: scaleX(.142857);
    transform-origin: left;
    background: #9C7944;
    transition: transform .5s;
}


/* COUNTDOWN */

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 2vw, 25px);
    margin: 0 auto 45px;
    width: min(760px, 100%);
}

.countdown-unit {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 22px 10px;
    min-width: 0;
    background: rgba(255,249,240,.7);
    border: 1px solid rgba(196,163,109,.4);
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
}

.countdown-unit__value {
    font-size: clamp(35px, 6vw, 72px);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: #795D35;
    line-height: 1;
}

.countdown-unit__label {
    font-family: var(--font-royal);
    font-size: 10px;
    letter-spacing: .1em;
    color: #8B765C;
    margin-top: 12px;
}

.countdown-separator {
    color: #C4A36D;
    font-size: 32px;
}

.countdown-message {
    text-align: center;
    color: #795D35;
    font-style: italic;
    margin-bottom: 20px;
}


/* VENUE CARD */

.venue-card {
    width: min(680px, 100%);
    margin: 0 auto;
    padding: clamp(30px, 6vw, 70px);
    text-align: center;
    background: rgba(255,249,240,.92);
    border: 1px solid #C4A36D;
    border-radius: 8px;
    box-shadow: var(--shadow-deep);
}

.venue-card__icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 1px solid rgba(196,163,109,.5);
    color: #9C7944;
    margin: 0 auto 24px;
}

.venue-card .eyebrow {
    color: #9C7944;
}

.venue-card__name {
    font-size: clamp(36px, 5vw, 56px);
    color: var(--bridal-maroon);
    margin: 12px auto;
}

.venue-card__address {
    font-size: 21px;
    color: #716356;
}

.venue-card__date {
    font-family: var(--font-royal);
    font-size: 13px;
    letter-spacing: .07em;
    color: #795D35;
}

.venue-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.venue-card__note {
    font-style: italic;
    color: #716356;
    font-size: 18px;
    margin-top: 24px;
}


/* TOAST NOTIFICATIONS */

.toast-container {
    position: fixed;
    bottom: calc(30px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 4000;
    width: min(400px, calc(100% - 40px));
    pointer-events: none;
}

.toast {
    padding: 15px 22px;
    border: 1px solid #C4A36D;
    border-radius: 6px;
    background: #193749;
    color: #FFF1D8;
    font-size: 17px;
    text-align: center;
    box-shadow: var(--shadow-deep);
    animation: toast-enter .4s var(--ease-luxury) both;
}
    