/* Lottie Animation Styles for GTA6 Events Planner */

/* Base animation container styles */
.lottie-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Loading states */
.lottie-loading {
    background: transparent;
    position: relative;
}



/* Loaded state */
.lottie-loaded {
    animation: fade-in 0.3s ease-in-out;
    background: transparent !important;
}

.lottie-loaded::before {
    display: none;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Error state */
.lottie-error .lottie-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.875rem;
    font-style: italic;
    min-height: 100px;
}

/* Hero section specific animation */
.hero-lottie {
    width: 100%;
    max-width: 400px;
    height: 300px;
    margin: 2rem auto;
    background: transparent !important;
}

/* Ensure Lottie SVG/Canvas has transparent background */
.hero-lottie svg,
.hero-lottie canvas {
    background: transparent !important;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    .hero-lottie {
        max-width: 280px;
        height: 220px;
        margin: 1.5rem auto;
    }
    
    /* Mobile optimizations */
    .lottie-mobile {
        transform: scale(0.9);
        transform-origin: center;
    }
}

@media (max-width: 480px) {
    .hero-lottie {
        max-width: 240px;
        height: 180px;
        margin: 1rem auto;
    }
    
    .lottie-mobile {
        transform: scale(0.8);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-lottie {
        max-width: 350px;
        height: 260px;
    }
}

@media (min-width: 1025px) {
    .hero-lottie {
        max-width: 400px;
        height: 300px;
    }
}

/* Performance optimizations */
.lottie-container svg,
.lottie-container canvas {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .lottie-container {
        animation: none;
    }
    
    /* Provide static fallback for users who prefer reduced motion */
    .lottie-container[data-respect-motion="true"] {
        display: none;
    }
    
    .lottie-fallback-static {
        display: block;
        text-align: center;
        padding: 2rem;
        color: #495057;
        font-size: 1.1rem;
    }
}

/* Dark mode support (if implemented later) */
@media (prefers-color-scheme: dark) {
    .lottie-loading {
        background: linear-gradient(90deg, #2d3748 25%, #4a5568 50%, #2d3748 75%);
    }
    
    .lottie-error .lottie-fallback {
        color: #a0aec0;
    }
}