/* Custom styles for Evergreen Market */

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

/* Custom animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 7s ease-in-out infinite;
    animation-delay: 1s;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(30, 32, 40, 0.08) !important;
}

.nav-scrolled .nav-link {
    color: #434759 !important;
}

.nav-scrolled .nav-link:hover {
    color: #E07A5F !important;
    background: rgba(224, 122, 95, 0.08) !important;
}

.nav-scrolled .font-serif {
    color: #1e2028 !important;
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s 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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Product card hover */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #c5c7ce;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9a9dad;
}

/* Selection color */
::selection {
    background: rgba(224, 122, 95, 0.2);
    color: #1e2028;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #E07A5F;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f6f6f7 0%, #e3e4e8 100%);
}

/* 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;
    }
    
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

/* Print styles */
@media print {
    header,
    #community,
    .animate-float,
    .animate-float-delayed {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-charcoal-900 {
        background: #f5f5f5 !important;
    }
}
