/* Custom Styles for Manuel Candy Shop */

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

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

::-webkit-scrollbar-track {
    background: #0f1115;
}

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

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

/* Selection Color */
::selection {
    background: #ff6b6b;
    color: #ffffff;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .group:hover img,
    img {
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Image Aspect Ratio Utilities */
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Custom Glow Effects */
.glow-coral {
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
}

/* Card Hover Effects */
.group {
    will-change: transform;
}

/* Loading State for Images */
img {
    background: linear-gradient(90deg, #1a1d24 25%, #252932 50%, #1a1d24 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

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

/* Mobile Menu Transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.active {
    max-height: 400px;
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

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