/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes cosmicGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.15), 0 0 5px rgba(212, 175, 55, 0.1);
    }
    50% {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.3), 0 0 10px rgba(212, 175, 55, 0.2);
    }
}

/* Helper Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Micro-interactions & Transitions */
.hover-scale {
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.02);
}

.hover-glow-primary:hover {
    box-shadow: 0 0 20px var(--primary-glow);
    border-color: var(--primary-hover);
}

.hover-glow-secondary:hover {
    box-shadow: 0 0 20px var(--secondary-glow);
    border-color: var(--secondary-hover);
}

/* Page transitions */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 200ms ease-out;
}

/* Pulse animation for highlights */
.pulse-glow {
    animation: cosmicGlow 3s infinite ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }
}
