/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

/* Particle floating animations */
@keyframes particle-float-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(5deg); }
    50% { transform: translate(-10px, -50px) rotate(-3deg); }
    75% { transform: translate(15px, -20px) rotate(2deg); }
}

@keyframes particle-float-2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-25px, -40px); }
    66% { transform: translate(20px, -20px); }
}

@keyframes particle-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15px, -35px) scale(1.2); }
}

.particle-1 { animation: particle-float-1 12s ease-in-out infinite; }
.particle-2 { animation: particle-float-2 15s ease-in-out infinite 1s; }
.particle-3 { animation: particle-float-3 10s ease-in-out infinite 2s; }
.particle-4 { animation: particle-float-1 14s ease-in-out infinite 3s; }
.particle-5 { animation: particle-float-2 11s ease-in-out infinite 0.5s; }
.particle-6 { animation: particle-float-3 13s ease-in-out infinite 1.5s; }
.particle-7 { animation: particle-float-1 16s ease-in-out infinite 2.5s; }
.particle-8 { animation: particle-float-2 9s ease-in-out infinite 0.8s; }

/* Scroll-triggered fade-in animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered animation delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Hero floating card animation */
.hero-float-card-1 {
    animation: hero-card-float-1 6s ease-in-out infinite;
}

.hero-float-card-2 {
    animation: hero-card-float-2 7s ease-in-out infinite 1s;
}

@keyframes hero-card-float-1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* Inventory dot pulse */
.inventory-dot.available {
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(60, 179, 113, 0.4); }
    50% { box-shadow: 0 0 16px rgba(60, 179, 113, 0.6); }
}

.inventory-dot.growing {
    animation: dot-pulse-gold 2s ease-in-out infinite;
}

@keyframes dot-pulse-gold {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 16px rgba(255, 215, 0, 0.6); }
}

/* Button hover glow */
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(60, 179, 113, 0.4), var(--shadow-glow);
}

/* Smooth link underline */
@keyframes underline-grow {
    from { width: 0; }
    to { width: 100%; }
}

/* FAQ open/close */
.faq-item[open] {
    background: var(--color-glass-bg);
}

.faq-item[open] .faq-question {
    color: var(--color-accent-primary);
}

/* Image hover zoom (already in style.css but adding subtle overlay) */
.product-image-wrap::after,
.workshop-image-wrap::after,
.blog-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(46, 61, 47, 0.05) 100%);
    pointer-events: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in-up,
    .fade-in-left,
    .fade-in-right {
        opacity: 1;
        transform: none;
    }

    .particle {
        display: none;
    }
}