/* Custom styles for Bullfrog Bagels Truck */

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

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

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

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

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

/* Selection color */
::selection {
    background: #f9cfd9;
    color: #771a33;
}

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

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Scroll reveal base - always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is enabled and animation is preferred */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
    }
    
    .js-enabled .scroll-reveal.delay-1 { transition-delay: 0.1s; }
    .js-enabled .scroll-reveal.delay-2 { transition-delay: 0.2s; }
    .js-enabled .scroll-reveal.delay-3 { transition-delay: 0.3s; }
    .js-enabled .scroll-reveal.delay-4 { transition-delay: 0.4s; }
}

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

/* Hero decorative animations */
.hero-blob {
    animation: float 6s ease-in-out infinite;
}

.hero-blob:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.hero-blob:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 7s;
}

/* Menu card hover effect */
.menu-card {
    position: relative;
    overflow: hidden;
}

.menu-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.menu-card:hover::after {
    left: 100%;
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

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

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 252, 248, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 4px 20px rgba(119, 26, 58, 0.08);
}

#navbar.scrolled a:not(.bg-burgundy-700) {
    color: #3d2b1f;
}

/* Form focus states */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 64, 102, 0.1);
}

/* Image loading placeholder */
img {
    background: linear-gradient(110deg, #fce7eb 8%, #ffe1d8 18%, #fce7eb 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

img[src] {
    animation: none;
    background: none;
}

/* Print styles */
@media print {
    #navbar, #mobile-menu, button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
