@import url("common.css");
@import url("animation.css");

html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.with-scrollbar {
    scrollbar-width: auto !important;
    -ms-overflow-style: auto !important;
}

/* Styled story scrollbar */
.story-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.35) transparent;
}
.story-scroll::-webkit-scrollbar {
    width: 4px;
}
.story-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.story-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.35);
    border-radius: 99px;
}
.story-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.6);
}

.font-esthetic {
    font-family: 'Cormorant Garamond', serif !important;
    font-style: italic !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
}

.font-arabic {
    font-family: 'Noto Naskh Arabic', serif !important;
}

.img-center-crop {
    width: 13rem;
    height: 13rem;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.img-portrait {
    width: 11rem;
    height: 15rem;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

.btn-transparent {
    background-color: rgba(var(--bs-light-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

.loading-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1056;
}

/* Loading icon shine animation */
@keyframes iconShine {
    0%   { filter: drop-shadow(0 0 0px rgba(255,255,255,0)); }
    40%  { filter: drop-shadow(0 0 12px rgba(255,255,255,0.9)) drop-shadow(0 0 24px rgba(200,180,255,0.6)); }
    60%  { filter: drop-shadow(0 0 16px rgba(255,255,255,1)) drop-shadow(0 0 32px rgba(180,160,255,0.8)); }
    100% { filter: drop-shadow(0 0 0px rgba(255,255,255,0)); }
}
.loading-icon-shine {
    animation: iconShine 2.2s ease-in-out infinite;
}

/* =============================================
   LIQUID GLASS THEME
   ============================================= */

/* Ambient orb background */
#ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    /* Static — no animation. Animated blur+backdrop-filter kills main thread & breaks audio */
    will-change: auto;
    transform: translateZ(0);
}

.orb-1 {
    width: 55vw; height: 55vw;
    background: radial-gradient(circle, #7c5cbf 0%, #3a2a7a 60%, transparent 100%);
    top: -15%; left: -10%;
}
.orb-2 {
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, #4a9eda 0%, #1a5fa8 60%, transparent 100%);
    top: 30%; right: -15%;
}
.orb-3 {
    width: 45vw; height: 45vw;
    background: radial-gradient(circle, #c06090 0%, #7a2050 60%, transparent 100%);
    bottom: -10%; left: 20%;
}
.orb-4 {
    width: 35vw; height: 35vw;
    background: radial-gradient(circle, #5abf9a 0%, #1a7a5a 60%, transparent 100%);
    top: 60%; left: 5%;
}

/* Global: soft ambient background */
body {
    background: linear-gradient(135deg, #f2dae5 0%, #ebd0dd 35%, #e5ccd0 65%, #f0e0e8 100%) !important;
    background-attachment: fixed !important;
}

/* Desktop: darken the outer area, keep invitation bright in center */
@media (min-width: 576px) {
    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.12);
        z-index: 0;
        pointer-events: none;
    }

    #root {
        position: relative;
        z-index: 1;
    }

    /* Invitation column: transparent so orbs show through, capped width */
    #root > div {
        background: transparent;
        max-width: 480px;
    }
}

/* Base glass panel */
.glass {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(255,255,255,0.1) !important;
    background: rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Strong glass — for cards and sections */
.glass-strong {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.42) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2), inset 0 1.5px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(255,255,255,0.12) !important;
    background: rgba(255, 255, 255, 0.68) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Glass buttons */
.btn-outline-auto {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
/* Like button states */
.btn-like {
    background: #fff !important;
    border-color: #e8b4c8 !important;
    color: #c0304a !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
/* State 3: liked → pink bg, white icon */
.btn-like.btn-like-active {
    background: #e91e8c !important;
    border-color: #e91e8c !important;
    color: #fff !important;
}


/* Sections: transparent so body gradient shows through */
.bg-light-dark,
.bg-white-black,
.bg-theme-auto {
    background: transparent !important;
}

/* Unified main content background — glass effect */
main {
    position: relative;
    background: rgba(255, 255, 255, 0.38) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Navbar glass */
.navbar {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-bottom: 1px solid rgba(255,255,255,0.4) !important;
}

/* Form controls glass */
.form-control, .form-select {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.45) !important;
    border-color: rgba(0,0,0,0.15) !important;
}

/* Override bg-overlay-auto for glass feel */
.bg-overlay-auto {
    background-color: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* SVG wave separators: transparent */
.color-theme-svg {
    color: rgba(232, 228, 240, 0.0);
    background-color: transparent;
}


html[data-bs-theme="light"] .bg-light-dark {
    background-color: rgb(var(--bs-light-rgb));
}

html[data-bs-theme="light"] .bg-white-black {
    background-color: rgb(var(--bs-white-rgb));
}

.bg-cover-home {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(0.5turn, transparent, black 40%, black 60%, transparent);
}

.width-loading {
    width: 25%;
}

.cursor-pointer {
    cursor: pointer;
}

@media screen and (max-width: 992px) {
    .width-loading {
        width: 50%;
    }
}

@media screen and (max-width: 576px) {
    .width-loading {
        width: 75%;
    }
}

svg {
    display: block;
    line-height: 0;
    shape-rendering: geometricPrecision;
    backface-visibility: hidden;
}

.svg-wrapper {
    overflow: hidden !important;
    transform: translateZ(0) !important;
}

.no-gap-bottom {
    margin-bottom: -0.75rem !important;
}

/* Story gallery thumbnails */
.story-thumb {
    opacity: 0.55;
    border: 2px solid transparent;
    transition: opacity 0.2s, border-color 0.2s;
}
.story-thumb-active {
    opacity: 1;
    border-color: rgba(255,255,255,0.85) !important;
}

/* Story photo carousel */
.story-carousel-track-wrap {
    overflow: hidden;
    width: 100%;
    position: relative;
    touch-action: pan-y;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.story-carousel-track {
    display: flex;
    gap: 8px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.story-carousel-item {
    flex: 0 0 38%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    padding-top: 57%;
    transition: opacity 0.4s, transform 0.4s;
    opacity: 0.7;
    transform: scale(0.93);
}
.story-carousel-item.active {
    opacity: 1;
    transform: scale(1);
}
.story-carousel-item img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

/* ─── Gallery carousel (single slide) ─── */

/* Gallery section — hide 100vw overflow */
#gallery {
    overflow: hidden;
}
/* Home background slideshow */
.home-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    pointer-events: none;
}
.home-slide.active {
    opacity: 1;
}


.gallery-header-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 24px 18px;
}
.gallery-header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(180,180,180,0.4), transparent);
}
.gallery-header-label {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #aaa;
    white-space: nowrap;
    opacity: 0.8;
}

/* Gallery overlays */
.gallery-overlay-counter {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 6;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.22);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 3px 9px;
    border-radius: 20px;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    pointer-events: none;
}
.gallery-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 6;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 0 16px 38px;   /* 38px leaves room above the dots */
    pointer-events: none;
}
.gallery-caption {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1rem;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.82);
    text-transform: uppercase;
}

.gallery-artistic {
    position: relative;
    overflow: hidden;
    border-radius: 0;        /* no card, no rounding */
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    left: 50%;
    transform: translateX(-50%);
}

.gallery-track {
    display: flex;
    gap: 0;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    width: 100%;
}

.gallery-item {
    flex: 0 0 100%;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item.active {
    z-index: 2;
}

.gallery-img {
    display: block;
    width: 100% !important;
    height: auto;
    aspect-ratio: 9 / 16 !important;
    object-fit: cover;
    pointer-events: auto;
    margin-bottom: 0 !important;
}

/* Nav arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.gallery-nav:hover {
    background: rgba(0,0,0,0.4);
    transform: translateY(-50%) scale(1.1);
}
.gallery-nav-prev { left: 12px; }
.gallery-nav-next { right: 12px; }

/* Dot indicators — overlaid on the photo, bottom center */
.gallery-dots {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 5;
    margin-top: 0;
}
.gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.gallery-dot.active {
    background: rgba(255,255,255,0.95);
    width: 18px;
    border-radius: 3px;
}

/* Desktop — cap gallery to viewport height so arrows sit at visible center */
@media (min-width: 768px) {
    .gallery-artistic {
        height: 90vh;
        max-height: 90vh;
    }
    .gallery-track {
        height: 100%;
    }
    .gallery-item {
        height: 100%;
    }
    .gallery-img {
        aspect-ratio: unset !important;
        height: 100% !important;
        width: 100% !important;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .gallery-nav {
        width: 30px;
        height: 30px;
        font-size: 0.6rem;
    }
    .gallery-nav-prev { left: 8px; }
    .gallery-nav-next { right: 8px; }
}

/* Language toggle */
.lang-btn { opacity: 0.55; transition: opacity 0.2s, background 0.2s; }
.lang-btn.lang-active { opacity: 1; background: rgba(255,255,255,0.18) !important; }


/* ─── Bride section scroll animation ─── */
.bride-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.bride-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.bride-animate .bride-card:nth-child(1) { transition-delay: 0s; }
.bride-animate .bride-card:nth-child(3) { transition-delay: 0.25s; }
.bride-animate.is-visible .bride-card:nth-child(1) { transition-delay: 0.15s; }
.bride-animate.is-visible .bride-card:nth-child(3) { transition-delay: 0.4s; }


/* ─── Pink button palette ─── */
.btn-primary {
    --bs-btn-bg: #e91e8c;
    --bs-btn-border-color: #e91e8c;
    --bs-btn-hover-bg: #d0187a;
    --bs-btn-hover-border-color: #d0187a;
    --bs-btn-active-bg: #b8146a;
    --bs-btn-active-border-color: #b8146a;
    --bs-btn-disabled-bg: #e91e8c;
    --bs-btn-disabled-border-color: #e91e8c;
}
