/* Custom styles for West Side Sports Bar */

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

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

::-webkit-scrollbar-track {
    background: #1c0a10;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #9c1a3b;
}

/* Selection color */
::selection {
    background-color: #fad0dc;
    color: #3d0714;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

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

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

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 300px;
}

/* Header scroll state */
#site-header.scrolled {
    background-color: rgba(61, 7, 20, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

/* Button hover effects */
button[type="submit"],
a[href="#menu"],
a[href="#contact"] {
    position: relative;
    overflow: hidden;
}

button[type="submit"]::after,
a[href="#menu"]::after,
a[href="#contact"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button[type="submit"]:hover::after,
a[href="#menu"]:hover::after,
a[href="#contact"]:hover::after {
    width: 300px;
    height: 300px;
}

/* Image hover containers */
.overflow-hidden {
    position: relative;
}

.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 7, 20, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.overflow-hidden:hover::after {
    opacity: 1;
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Print styles */
@media print {
    #site-header,
    #mobile-toggle,
    #mobile-menu {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
