/* Custom styles for Cornerhouse Cafe */

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

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

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

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

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

/* Selection color */
::selection {
    background: #fde68a;
    color: #581c87;
}

/* Navigation scroll state */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #fbbf24;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Mobile menu active state */
.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu.active .mobile-link {
    animation: fadeInUp 0.4s ease forwards;
}

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

/* Menu line animation */
#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Menu item hover effect */
.group:hover .text-plum-900 {
    color: #7e22ce;
    transition: color 0.3s ease;
}

/* Image hover effects */
.rounded-2xl.overflow-hidden {
    overflow: hidden;
}

.rounded-2xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* 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;
    }
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
