/* Custom styles for Weatherford Farmer's Market */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5ff;
}
::-webkit-scrollbar-thumb {
    background: #9333ea;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7e22ce;
}

/* Selection color */
::selection {
    background: #d8b4fe;
    color: #3b0764;
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(107, 33, 168, 0.1);
}

/* Card hover lift effect */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Button press effect */
button:active, a:active {
    transform: scale(0.98);
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Loading state for images */
img {
    background: linear-gradient(135deg, #f3e8ff 0%, #fef3c7 100%);
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
