/* Custom Styles for Monarch Mini Market */

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

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

::-webkit-scrollbar-track {
    background: #340c19;
}

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

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

/* Selection Color */
::selection {
    background: #fbbf24;
    color: #340c19;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(52, 12, 25, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Geometric Shape Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Hover Effects */
.group:hover .group-hover\:rotate-6 {
    transform: rotate(6deg);
}

/* Image Hover Zoom */
img {
    transition: transform 0.5s ease;
}

/* Button Focus States */
button:focus,
a:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Mobile Menu Animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-plum-800\/50 {
        background-color: rgba(108, 30, 57, 0.9) !important;
    }
    
    .text-plum-200 {
        color: #f5d0d8 !important;
    }
}

/* Print Styles */
@media print {
    .animate-float,
    .animate-float-delayed,
    .animate-spin-slow {
        animation: none !important;
    }
    
    .bg-plum-950 {
        background-color: white !important;
        color: black !important;
    }
}
