/* Custom styles for Manistique Farmer & Artisan Market */

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

/* Selection color */
::selection {
    background: rgba(94, 234, 212, 0.3);
    color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050A18;
}
::-webkit-scrollbar-thumb {
    background: rgba(94, 234, 212, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(94, 234, 212, 0.5);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Menu button animations */
.menu-line-1 {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-line-2 {
    transition: opacity 0.3s ease;
}
.menu-line-3 {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#menu-btn.active .menu-line-1 {
    transform: translateY(6px) rotate(45deg);
}
#menu-btn.active .menu-line-2 {
    opacity: 0;
}
#menu-btn.active .menu-line-3 {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(94, 234, 212, 0.6);
    outline-offset: 2px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Select dropdown arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Image loading placeholder */
img {
    background-color: rgba(255, 255, 255, 0.05);
}
