/* Custom styles for Plaza Cafe */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #064e3b;
}
::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* Navigation transitions */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu animation */
#mobileMenu {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}
#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

/* Reveal animations - progressive enhancement */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal-left {
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal-right {
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-up.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-up {
        transform: translateY(30px);
    }
    
    .reveal-left.is-visible {
        opacity: 1;
        transform: translateX(0);
    }
    .reveal-left {
        transform: translateX(-30px);
    }
    
    .reveal-right.is-visible {
        opacity: 1;
        transform: translateX(0);
    }
    .reveal-right {
        transform: translateX(30px);
    }
}

/* Image hover effects */
.rounded-2xl {
    will-change: transform;
}

/* Button focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Selection color */
::selection {
    background: #059669;
    color: #fef3c7;
}

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

/* Loading state */
body {
    background: #fdfbf7;
}

/* Print styles */
@media print {
    nav,
    #gallery,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        display: none;
    }
    body {
        background: white;
    }
    a {
        color: #064e3b;
    }
}
