/* ===== Custom Styles for ALA Carte ===== */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFFDF9;
}
::-webkit-scrollbar-thumb {
    background: #c7285b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a81d47;
}

/* Menu card hover */
.menu-card {
    transform: translateY(0);
}
.menu-card:hover {
    transform: translateY(-4px);
}

/* Gallery items */
.gallery-item {
    position: relative;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(123, 45, 59, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    pointer-events: none;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}
#mobileMenu.hidden {
    animation: slideUp 0.2s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    left: 16px;
    bottom: 8px;
    width: 0;
    height: 2px;
    background: #7B2D3B;
    transition: width 0.2s ease;
}
.mobile-link:hover::after {
    width: calc(100% - 32px);
}

/* Navbar scrolled state handled in JS */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .menu-card:hover,
    .gallery-item img,
    .menu-card {
        transform: none;
        transition: none;
    }
    #mobileMenu {
        animation: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #f9cfd7;
    color: #3a0f17;
}
