/* Custom Styles for The View Restaurant & Bar */

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

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Navbar Scroll Effect */
.nav-scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Animation */
.mobile-menu-active #line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-active #line-2 {
    opacity: 0;
}

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

.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

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

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

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

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

/* Form Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Image Hover Zoom */
img {
    transition: transform 0.5s ease;
}

/* Selection Color */
::selection {
    background-color: #FF7F50;
    color: white;
}

/* Subtle Line Animations */
.hover-line {
    position: relative;
}

.hover-line::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #FF7F50;
    transition: width 0.3s ease;
}

.hover-line:hover::after {
    width: 100%;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print Styles */
@media print {
    nav,
    #menu-btn,
    #mobile-menu {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-charcoal-900,
    .bg-charcoal-800 {
        background: #f0f0f0 !important;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .text-charcoal-600 {
        color: #000;
    }
    
    .text-white/80 {
        color: #fff;
    }
    
    .border-white/30 {
        border-color: rgba(255, 255, 255, 0.8);
    }
}

/* Tablet and Desktop Optimizations */
@media (min-width: 768px) {
    .nav-link {
        position: relative;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        width: 0;
        height: 1px;
        bottom: -4px;
        left: 50%;
        background-color: #FF7F50;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .nav-link:hover::before {
        width: 100%;
    }
}

/* Ensure proper spacing for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Gallery Grid Adjustments */
@media (max-width: 767px) {
    .grid-cols-1.md\\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .md\\:col-span-2 {
        grid-column: span 2;
    }
}
