/* Custom styles for Market on Main, Sparta */

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

/* Marquee animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08), 0 4px 20px rgba(0, 0, 0, 0.04);
}

#navbar.scrolled .font-serif,
#navbar.scrolled span,
#navbar.scrolled a {
    color: #7B2D3B !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
    background: #c2274b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a11536;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #7B2D3B;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .animate-marquee {
        animation: none;
    }
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Image hover zoom */
.group img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover img {
    transform: scale(1.05);
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
}
