/* YouTube Downloader Custom Animations */

/* Animated Download Icon - Bounce on hover */
.mud-button:hover .mud-icon-root {
    animation: iconBounce 0.5s ease-in-out;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-5px);
    }
    75% {
        transform: translateY(-2px);
    }
}

/* Pulse animation for loading icons */
.mud-progress-circular {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Scale animation for icons on hover */
.download-icon-scale:hover .mud-icon-root {
    animation: scaleUp 0.3s ease-in-out;
}

@keyframes scaleUp {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Rotate animation for audio icons */
.mud-button[class*="mud-success"]:hover .mud-icon-root {
    animation: rotate360 0.6s ease-in-out;
}

@keyframes rotate360 {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Shake animation for video-only icons (warning) */
.mud-button[class*="mud-warning"]:hover .mud-icon-root {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-3px);
    }
    75% {
        transform: translateX(3px);
    }
}

/* Smooth transition for all buttons */
.mud-button {
    transition: all 0.3s ease-in-out;
}

.mud-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Card hover effect */
.mud-card {
    transition: all 0.3s ease-in-out;
}

.mud-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Icon color transitions */
.mud-icon-root {
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Glow effect for success icon in dialog */
@keyframes successGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(76, 175, 80, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(76, 175, 80, 0.8));
    }
}

.mud-dialog .mud-icon-root[class*="mud-success"] {
    animation: successGlow 2s ease-in-out infinite;
}
