/* ============================================
   Sparkle Boutique — Custom Styles
   ============================================ */

/* Base reset and smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: #2e4a33;
    color: #faf9f7;
}

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

::-webkit-scrollbar-track {
    background: #f5f3ef;
}

::-webkit-scrollbar-thumb {
    background: #bdd4c0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #93b89a;
}

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-alt {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(8px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-alt 5s ease-in-out infinite;
}

/* Scroll indicator line animation */
.scroll-line {
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -16px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 48px; opacity: 0; }
}

/* Collection card hover effect */
.collection-card {
    transition: transform 0.4s ease;
}

.collection-card:hover {
    transform: translateY(-4px);
}

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

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(26, 58, 42, 0.08);
}

/* Mobile menu button animation */
.menu-line {
    display: block;
    width: 24px;
    height: 1px;
    background-color: #1a3a2a;
    transition: all 0.3s ease;
}

#menu-toggle[aria-expanded="true"] .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-toggle[aria-expanded="true"] .menu-line:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

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

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #2e4a33;
    outline-offset: 2px;
}

/* Button focus for keyboard nav */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #2e4a33;
    outline-offset: 2px;
}
