/* ============================================
   Animations
   ============================================ */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Color Shift Animation for Mixed Flavor */
@keyframes colorShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Flavor Card Background Gradients */
.flavor-card[data-flavor="blackberry"] {
    background: linear-gradient(
        135deg,
        rgba(74, 18, 89, 0.1),
        rgba(74, 18, 89, 0.05)
    );
}

.flavor-card[data-flavor="apple"] {
    background: linear-gradient(
        135deg,
        rgba(76, 175, 80, 0.1),
        rgba(76, 175, 80, 0.05)
    );
}

.flavor-card[data-flavor="mango"] {
    background: linear-gradient(
        135deg,
        rgba(255, 167, 38, 0.1),
        rgba(255, 167, 38, 0.05)
    );
}

.flavor-card[data-flavor="mixed"] {
    background: linear-gradient(
        135deg,
        rgba(74, 18, 89, 0.1),
        rgba(255, 77, 109, 0.1),
        rgba(76, 175, 80, 0.1),
        rgba(255, 167, 38, 0.1)
    );
    background-size: 400% 400%;
    animation: colorShift 15s ease infinite;
}

/* Fade In Element (for Intersection Observer) */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Fade In (fallback) */
.section {
    animation: fadeIn 0.8s ease-out;
}

/* Glassmorphic Shine Effect */
.glassmorphic {
    position: relative;
    overflow: hidden;
}

.glassmorphic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
    pointer-events: none;
}

.glassmorphic:hover::before {
    left: 100%;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .flavor-card[data-flavor="mixed"] {
        animation: none;
        background: linear-gradient(
            135deg,
            rgba(74, 18, 89, 0.1),
            rgba(255, 77, 109, 0.1)
        );
    }
}
