/* --- Le Bloomy: Advanced UX Fixes --- */

/* 1. GALLERY: Infinite Loop with Hover Blur */
.gallery-section {
    padding: 60px 0;
    background: #000;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.gallery-slider {
    width: 100%;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: marqueeGallery 50s linear infinite;
    padding: 20px 0;
    will-change: transform;
}

@keyframes marqueeGallery {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.gallery-track:hover {
    animation-play-state: paused;
}

.gallery-item {
    width: 400px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: zoom-in;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gaussian Blur on Rest of Gallery when one is hovered */
.gallery-track:hover .gallery-item {
    filter: blur(8px) brightness(0.6);
    transform: scale(0.95);
    opacity: 0.7;
}

.gallery-track .gallery-item:hover {
    filter: blur(0) brightness(1.1);
    transform: scale(1.08);
    opacity: 1;
    z-index: 100;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

@media (max-width: 900px) {
    .gallery-item {
        width: 280px;
        height: 220px;
    }
}

/* 2. MENU MOBILE: Horizontal Cards & Auto-scroll hint */
@media (max-width: 900px) {
    .menu-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 10px 20px 40px;
        scrollbar-width: none;
    }

    .menu-grid::-webkit-scrollbar {
        display: none;
    }

    .menu-item-card {
        min-width: 85vw !important;
        scroll-snap-align: center;
        margin: 0 !important;
    }

    .indicator-arrows {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        color: var(--color-gold);
        font-size: 0.9rem;
        margin-top: -10px;
        padding-bottom: 20px;
    }

    .indicator-arrows i {
        animation: arrowBlink 1s infinite alternate;
    }

    @keyframes arrowBlink {
        from {
            opacity: 0.3;
            transform: translateX(-3px);
        }

        to {
            opacity: 1;
            transform: translateX(3px);
        }
    }
}

/* 3. BURGER FIX & ANIMATION */
.burger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* 4. RESERVATION MODAL ENHANCEMENTS */
.reservation-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.reservation-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 95%;
    max-width: 700px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    position: relative;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 100;
    transition: 0.3s;
}

.modal-close:hover {
    background: var(--color-terra);
    transform: rotate(90deg);
}

/* Lightbox Big Close */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
}

/* Body spacing for sticky btn */
body {
    padding-bottom: 70px;
}