/* Custom styles for Naked Chop Eateries */

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

/* Navigation link underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: theme('colors.terracotta.600');
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu animation */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Mobile nav links */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background-color: theme('colors.terracotta.600');
    transition: height 0.3s ease;
}

.mobile-nav-link:hover::before {
    height: 100%;
}

/* Scroll reveal animations (below fold only) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is visible without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

::-webkit-scrollbar-track {
    background: theme('colors.sand.100');
}

::-webkit-scrollbar-thumb {
    background: theme('colors.terracotta.400');
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: theme('colors.terracotta.600');
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid theme('colors.terracotta.600');
    outline-offset: 2px;
}

/* Image loading optimization */
img {
    background-color: theme('colors.sand.200');
}

/* Print styles */
@media print {
    .nav-fixed,
    .mobile-menu,
    .animate-bounce {
        display: none;
    }
}
