/* Base styles and custom overrides */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #241118;
}

::-webkit-scrollbar-thumb {
    background: #7B3F5B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a04452;
}

/* Selection color */
::selection {
    background: #7B3F5B;
    color: #f9f3f5;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* Menu category hover */
.menu-category {
    transition: transform 0.3s ease;
}

.menu-category:hover {
    transform: translateY(-4px);
}

/* Navbar transition for scroll state */
#navbar.scrolled {
    background: rgba(36, 17, 24, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 63, 91, 0.3);
}

#navbar.scrolled .nav-logo {
    color: #f9f3f5;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-link {
    transition: all 0.3s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .group:hover img {
        transform: none;
    }
}

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

/* Loading state for images */
picture img {
    background: linear-gradient(135deg, #3d1e2a 0%, #7B3F5B 100%);
    background-size: 200% 200%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, iframe {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .font-serif {
        color: #000;
    }
}
