/**
 * WordPress Animation System Styles
 */

/* Base animation wrapper styles */
.wp-animation {
    position: relative;
    overflow: hidden;
}

.wp-animation-responsive {
    max-width: 100%;
    height: auto;
}

/* Canvas animations */
.wp-animation canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.wp-animation .layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Circles animation specific styles */
.wp-circles-animation {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
}

/* Loading state */
.wp-animation.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: wp-spin 1s linear infinite;
}

@keyframes wp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wp-animation {
        height: 300px !important;
    }
    
    .wp-circles-animation {
        height: 300px !important;
    }
}

@media (max-width: 480px) {
    .wp-animation {
        height: 250px !important;
    }
    
    .wp-circles-animation {
        height: 250px !important;
    }
}

/* Animation fade-in */
.wp-animation {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.wp-animation.loaded {
    opacity: 1;
}

/* SVG Animation styles */
.wp-animation svg {
    width: 100%;
    height: 100%;
}

/* CSS-based animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Utility classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Print media - hide animations */
@media print {
    .wp-animation,
    .wp-animation * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}