/* ===========================
   ANIMATION SYSTEM
   =========================== */

/* Fade in up */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Fade in left */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Fade in right */
.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered children */
.fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.fade-in-up:nth-child(4) { transition-delay: 0.3s; }
.fade-in-up:nth-child(5) { transition-delay: 0.35s; }
.fade-in-up:nth-child(6) { transition-delay: 0.4s; }
.fade-in-up:nth-child(7) { transition-delay: 0.45s; }
.fade-in-up:nth-child(8) { transition-delay: 0.5s; }

/* Button hover glow */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Card lift */
.product-card,
.recipe-card,
.event-card,
.value-card,
.team-card {
    will-change: transform;
}

/* Parallax subtle */
.hero-parallax-bg {
    will-change: transform;
}

/* Quick add animation */
.quick-add-btn.added {
    background: var(--color-green) !important;
    color: white !important;
    animation: addPulse 0.5s ease;
}

@keyframes addPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Smooth scroll indicator fade */
.hero-scroll-indicator {
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Header transition on scroll */
.header {
    will-change: background, box-shadow;
}

/* Link underline animation */
@keyframes underlineGrow {
    from { width: 0; }
    to { width: 100%; }
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--color-text);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    z-index: 3000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: toastIn 0.4s ease, toastOut 0.4s ease 2.6s forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes toastIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(20px); opacity: 0; }
}