/* Custom styles for Snackateria */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F9F7F2;
}
::-webkit-scrollbar-thumb {
    background: #458a74;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d6d59;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Menu button animations */
.menu-line-1 {
    transform-origin: center;
}
.menu-line-2 {
    transform-origin: center;
}
.menu-line-3 {
    transform-origin: center;
}

.menu-open .menu-line-1 {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-open .menu-line-2 {
    opacity: 0;
}
.menu-open .menu-line-3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 5px;
}

/* Button hover effects */
a:hover {
    transition: all 0.2s ease;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #e3edeb 0%, #c6dbd6 100%);
}

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-2px);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #458a74;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion preference */
@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;
    }
    img {
        transition: none;
    }
}
