/*--------------------------------------------------------------
# Animation Utilities
--------------------------------------------------------------*/

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: rotate(-45deg) translateY(0); 
    }
    40% { 
        transform: rotate(-45deg) translateY(-10px); 
    }
    60% { 
        transform: rotate(-45deg) translateY(-5px); 
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(0.5);
    }
    50% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

@keyframes shimmer {
    0%, 100% { 
        opacity: 0.7; 
    }
    50% { 
        opacity: 1; 
        transform: scaleX(1.1); 
    }
}

@keyframes scrollWheel {
    0%, 20% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(16px);
        opacity: 0;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes scale {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes wobble {
    0% { transform: translateX(0%); }
    15% { transform: translateX(-25%) rotate(-5deg); }
    30% { transform: translateX(20%) rotate(3deg); }
    45% { transform: translateX(-15%) rotate(-3deg); }
    60% { transform: translateX(10%) rotate(2deg); }
    75% { transform: translateX(-5%) rotate(-1deg); }
    100% { transform: translateX(0%); }
}

/* Location pin bounce animation */
@keyframes pin-bounce {
    0% {
        top: 0px;
        left: 0px;
    }
    20% {
        top: -15px;
        left: 20px;
    }
    40% {
        top: 10px;
        left: -25px;
    }
    60% {
        top: -20px;
        left: -10px;
    }
    80% {
        top: 5px;
        left: 15px;
    }
    100% {
        top: 0px;
        left: 0px;
    }
}

/* Animation Classes */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-fadeOut {
    animation: fadeOut 0.5s ease-out forwards;
}

.animate-slideUp {
    animation: slideUp 0.5s ease-out forwards;
}

.animate-slideDown {
    animation: slideDown 0.5s ease-out forwards;
}

.animate-slideLeft {
    animation: slideLeft 0.5s ease-out forwards;
}

.animate-slideRight {
    animation: slideRight 0.5s ease-out forwards;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-shimmer {
    animation: shimmer 2s ease-in-out infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-scale {
    animation: scale 0.3s ease-out forwards;
}

.animate-wobble {
    animation: wobble 1s ease-in-out;
}

/* Animation Delays */
.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

/* Animation Durations */
.animate-fast {
    animation-duration: 0.3s;
}

.animate-slow {
    animation-duration: 1s;
}

.animate-slower {
    animation-duration: 2s;
}

/* Transition Utilities */
.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.transition-shadow {
    transition: box-shadow 0.3s ease;
}

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-grow:hover {
    transform: scale(1.05);
}

.hover-shrink:hover {
    transform: scale(0.95);
}

.hover-fade:hover {
    opacity: 0.7;
}

.hover-shadow:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-top-color: var(--color-accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}