/**
 * Animation Styles
 * 25hours Hotel Theme
 */

/* ========================================
   Base Animation Setup
   ======================================== */

[data-animate] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
}

/* ========================================
   Fade Animations
   ======================================== */

.animate-fade-in {
    opacity: 0;
}

.animate-fade-in.animated {
    opacity: 1;
}

.animate-fade-up {
    transform: translateY(30px);
}

.animate-fade-up.animated {
    transform: translateY(0);
}

.animate-fade-down {
    transform: translateY(-30px);
}

.animate-fade-down.animated {
    transform: translateY(0);
}

/* ========================================
   Slide Animations
   ======================================== */

.animate-slide-left {
    transform: translateX(-30px);
}

.animate-slide-left.animated {
    transform: translateX(0);
}

.animate-slide-right {
    transform: translateX(30px);
}

.animate-slide-right.animated {
    transform: translateX(0);
}

/* ========================================
   Scale Animations
   ======================================== */

.animate-scale {
    transform: scale(0.9);
}

.animate-scale.animated {
    transform: scale(1);
}

.animate-scale-up {
    transform: scale(0.8);
}

.animate-scale-up.animated {
    transform: scale(1);
}

/* ========================================
   Rotate Animations
   ======================================== */

.animate-rotate {
    transform: rotate(-5deg);
}

.animate-rotate.animated {
    transform: rotate(0);
}

/* ========================================
   Combined Animations
   ======================================== */

.animate-fade-scale {
    opacity: 0;
    transform: scale(0.9);
}

.animate-fade-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   Animation Delays
   ======================================== */

[data-delay="100"].animated {
    transition-delay: 0.1s;
}

[data-delay="200"].animated {
    transition-delay: 0.2s;
}

[data-delay="300"].animated {
    transition-delay: 0.3s;
}

[data-delay="400"].animated {
    transition-delay: 0.4s;
}

[data-delay="500"].animated {
    transition-delay: 0.5s;
}

[data-delay="600"].animated {
    transition-delay: 0.6s;
}

/* ========================================
   Hover Animations
   ======================================== */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.6s ease;
}

.hover-zoom:hover img {
    transform: scale(1.1);
}

/* Touch device support */
.touch-device .gallery-item.touch-active .gallery-overlay {
    opacity: 1;
}

.touch-device .gallery-item.touch-active .overlay-content {
    transform: translateY(0);
}

.touch-device .gallery-item.touch-active img {
    transform: scale(1.1);
}

.touch-device .hover-zoom.touch-active img {
    transform: scale(1.1);
}

/* ========================================
   Loading Animations
   ======================================== */

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   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;
    }
    
    [data-animate] {
        opacity: 1;
        transform: none;
    }
}
