/* Custom styles for HangTime Bar and Patio */

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

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

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

::-webkit-scrollbar-thumb {
    background: #9ebf7e;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background-color: #3f6624;
    color: #fdfcfa;
}

/* Hero image hover effect */
#hero img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#hero .group:hover img {
    transform: scale(1.02);
}

/* Feature card hover lift */
.group {
    will-change: transform;
}

.group:hover {
    transform: translateY(-4px);
}

/* Floating card animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.absolute.z-20 {
    animation: float 4s ease-in-out infinite;
}

/* Decorative blob animations */
@keyframes blob {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.absolute.top-32.right-0,
.absolute.bottom-32.left-0 {
    animation: blob 8s ease-in-out infinite;
}

/* Pulse animation for the live indicator */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

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

/* Reduced motion preference */
@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;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #588533;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

button:active, a:active {
    transform: scale(0.98);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #e3ecd8 0%, #c7dab0 100%);
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, .animate-pulse {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
