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

html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

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

.font-esthetic {
    font-family: 'Great Vibes', 'Playfair Display', cursive !important;
}

.font-serif {
    font-family: 'Playfair Display', Georgia, serif !important;
}

.font-sans {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

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

html[data-bs-theme="dark"] .btn-transparent {
    background-color: rgba(var(--bs-dark-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

html[data-bs-theme="light"] .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;
}

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

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

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

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

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

html[data-bs-theme="dark"] .bg-white-black {
    background-color: rgb(var(--bs-black-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;
}

.welcome-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.welcome-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

html[data-bs-theme="light"] .welcome-overlay {
    background: rgba(255, 255, 255, 0.78);
}

html[data-bs-theme="dark"] .welcome-overlay {
    background: rgba(18, 18, 18, 0.82);
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    border-radius: 1rem;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: 0;
}

.nav-pills-romantic .nav-link {
    color: var(--bs-secondary);
    border-radius: 50rem;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    font-weight: 500;
}

.nav-pills-romantic .nav-link.active {
    background-color: #d63384;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.35);
}

.img-welcome-couple {
    width: 145px;
    height: 215px;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 1.25rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.img-welcome-couple:hover {
    transform: scale(1.03);
}

.img-welcome-circle,
.welcome-circle-frame {
    width: 185px;
    height: 185px;
    border-radius: 50% !important;
    object-position: top center;
}

.welcome-circle-frame {
    overflow: hidden;
    display: inline-block;
}

.img-welcome-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
    transform: scale(1.32);
    transform-origin: 41% 44%;
    cursor: pointer;
    transition: transform 0.35s ease;
}

.img-welcome-cover:hover {
    transform: scale(1.36);
}

/* Bespoke Wedding Brand & Monogram */
.wedding-monogram-badge {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #881337, #4c0519);
    border: 2px solid #d4af37;
    box-shadow: 0 4px 15px rgba(136, 19, 55, 0.4), inset 0 0 10px rgba(212, 175, 55, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    position: relative;
    user-select: none;
}

.monogram-letter {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    font-style: italic;
    background: linear-gradient(135deg, #ffe082, #d4af37, #aa7c11);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.monogram-heart {
    font-size: 0.75rem;
    color: #fb7185;
    animation: heartGlow 2s infinite ease-in-out;
}

@keyframes heartGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px #fb7185); }
    50% { transform: scale(1.2); filter: drop-shadow(0 0 6px #f43f5e); }
}

/* Luxury Story Card & Animated Timeline */
.love-timeline {
    position: relative;
    padding-left: 0.25rem;
}

.love-timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding-bottom: 1.15rem;
}

.love-timeline-item:last-child {
    padding-bottom: 0;
}

.love-timeline-axis {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.love-timeline-item:not(:last-child) .love-timeline-axis::after {
    content: "";
    position: absolute;
    top: 2.4rem;
    bottom: -1.15rem;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(225, 29, 72, 0.45), rgba(212, 175, 55, 0.35));
}

.story-card {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(225, 29, 72, 0.14);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.story-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(225, 29, 72, 0.1) !important;
    border-color: rgba(225, 29, 72, 0.32);
}

.story-card-compact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.8rem 1rem;
}

.story-card-final {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.06), rgba(212, 175, 55, 0.08));
}

.story-milestone-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: clamp(0.72rem, 2.6vw, 0.8rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.story-milestone-title {
    font-size: clamp(0.95rem, 3.6vw, 1.08rem);
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: break-word;
    margin: 0;
}

.timeline-circle-anim {
    animation: milestoneFloat 3s ease-in-out infinite;
    animation-delay: var(--pulse-delay, 0s);
}

@keyframes milestoneFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.story-milestone-desc {
    font-size: 0.86rem;
    line-height: 1.5;
    margin: 0;
}

.timeline-circle {
    position: relative;
    z-index: 1;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35), 0 0 0 3px rgba(255, 255, 255, 0.8);
    transition: transform 0.25s ease;
}

.love-timeline-item:hover .timeline-circle {
    transform: scale(1.08);
}

.timeline-circle-final {
    animation: milestonePulse 2.4s ease-in-out infinite;
}

@keyframes milestonePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.45), 0 4px 12px rgba(225, 29, 72, 0.35);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(225, 29, 72, 0), 0 4px 16px rgba(225, 29, 72, 0.45);
    }
}

.wish-like-btn {
    transition: transform 0.15s ease, border-color 0.2s ease, color 0.2s ease;
}

.wish-like-btn:active {
    transform: scale(0.92);
}

.wish-like-pop {
    animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
    }
    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-card,
    .timeline-circle,
    .timeline-circle-anim,
    .timeline-circle-final,
    .wish-like-btn,
    .wish-like-pop {
        animation: none !important;
        transition: none !important;
    }
}

/* Ribbon Badge */
.wedding-ribbon {
    display: inline-block;
    padding: 0.35rem 1.25rem;
    border-radius: 50rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(225, 29, 72, 0.12));
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #b8860b;
}

html[data-bs-theme="dark"] .wedding-ribbon {
    color: #ffd54f;
    border-color: rgba(255, 213, 79, 0.3);
}

/* Couple Card Enhancements */
.couple-avatar-wrap {
    position: relative;
    display: inline-block;
    padding: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f3e8ff, #e11d48);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.couple-avatar-wrap .img-center-crop,
.couple-avatar-inner {
    border: 3px solid #ffffff !important;
}

.couple-avatar-inner {
    width: 13rem;
    height: 13rem;
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.img-bride-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 56%;
    transform: scale(2);
    transform-origin: 55% 48%;
    cursor: pointer;
}

.img-groom-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 56%;
    transform: scale(2);
    transform-origin: 50% 46%;
    cursor: pointer;
}

/* Bottom Nav Glassmorphism on Mobile */
#navbar-menu {
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-top: 1px solid rgba(212, 175, 55, 0.25) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
}

html[data-bs-theme="light"] #navbar-menu {
    background-color: rgba(255, 255, 255, 0.92) !important;
}

html[data-bs-theme="dark"] #navbar-menu {
    background-color: rgba(18, 18, 18, 0.92) !important;
}

#navbar-menu .nav-link {
    transition: color 0.2s ease, transform 0.2s ease;
    border-radius: 0.75rem;
    margin: 2px 4px;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

#navbar-menu .nav-link.active {
    color: #e11d48 !important;
    font-weight: 600;
}

/* Floating Controls Spacing for Mobile */
@media (max-width: 576px) {
    .floating-controls {
        bottom: 5.5rem !important;
        right: 0.85rem !important;
    }
}


/* ── Responsive Enhancements ─────────────────────────────────────── */

/* Gallery carousel – responsive image height */
@media (max-width: 575px) {
    .carousel-img-h {
        height: 240px !important;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .carousel-img-h {
        height: 300px !important;
    }
}

/* Avatar on very small screens (< 380px) */
@media (max-width: 380px) {
    .img-center-crop,
    .couple-avatar-inner {
        width: 10rem;
        height: 10rem;
    }
    .img-welcome-circle,
    .welcome-circle-frame {
        width: 145px;
        height: 145px;
    }
}

/* Welcome circle image on smallest screens */
@media (max-width: 360px) {
    .img-welcome-circle,
    .welcome-circle-frame {
        width: 130px;
        height: 130px;
    }
    /* Countdown numbers */
    #day, #hour, #minute, #second {
        font-size: 1.1rem !important;
    }
}

/* Search input placeholder overflow on small screens */
@media (max-width: 430px) {
    #search-wishes-input::placeholder {
        font-size: 0.78rem;
    }
}

/* Video container responsive max-height */
#video-love-stroy video {
    max-height: 75vw;
    min-height: 200px;
}

/* Story timeline card text on mobile */
@media (max-width: 576px) {
    .story-card p.small {
        font-size: 0.82rem !important;
        line-height: 1.55 !important;
    }
}

/* Map iframe taller on mobile for better usability */
@media (max-width: 576px) {
    .map-responsive {
        padding-bottom: 70%;
    }
}

/* Section heading font clamp for large screens */
@media (min-width: 576px) {
    .font-esthetic {
        overflow-wrap: anywhere;
    }
}

/* Tablet – constrain content column width for better readability */
@media (min-width: 576px) and (max-width: 991px) {
    #root > div:last-child {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .carousel-img-h {
        height: 340px !important;
    }
}

/* Mobile – fluid headings override inline sizes */
@media (max-width: 576px) {
    h1.font-esthetic,
    h2.font-esthetic {
        font-size: clamp(1.75rem, 7vw, 2.75rem) !important;
    }

    h3.font-esthetic,
    h4.font-esthetic {
        font-size: clamp(1.5rem, 5.5vw, 2.25rem) !important;
    }

    .heartbeat.font-esthetic {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
    }
}

/* Desktop – cap content column on ultra-wide screens */
@media (min-width: 992px) {
    #root > div:last-child {
        max-width: 540px;
    }
}

/* Safe area for notched phones (iPhone X+) */
@supports (padding: env(safe-area-inset-bottom)) {
    #navbar-menu {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .floating-controls {
        right: calc(0.85rem + env(safe-area-inset-right, 0px)) !important;
    }

    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* ── Personalized Guest Greeting ─────────────────────────────────── */
.welcome-guest-box {
    display: inline-block;
    max-width: min(92vw, 24rem);
    padding: 0.65rem 1.35rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(225, 29, 72, 0.08));
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.welcome-guest-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9f1239;
    font-weight: 600;
}

.welcome-guest-name {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(1.15rem, 4.5vw, 1.45rem);
    font-weight: 700;
    color: #881337;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.guest-greeting-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    max-width: min(90%, 22rem);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(225, 29, 72, 0.07));
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.guest-greeting-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b8860b;
    font-weight: 600;
}

.guest-greeting-name {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(1.05rem, 4vw, 1.3rem);
    color: #9f1239;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

html[data-bs-theme="dark"] .welcome-guest-label,
html[data-bs-theme="dark"] .guest-greeting-label {
    color: #ffd54f;
}

html[data-bs-theme="dark"] .welcome-guest-name,
html[data-bs-theme="dark"] .guest-greeting-name {
    color: #fda4af;
}

/* ── Gallery Aspect & Crop Consistency (No CLS / No Distortion) ──── */
.carousel-img-h {
    height: 360px;
    object-fit: cover;
    object-position: center;
}

.carousel-img-portrait {
    height: 440px;
    object-fit: cover;
    object-position: center 20%;
}

@media (max-width: 575px) {
    .carousel-img-portrait {
        height: 360px;
    }
}