/* Snapchat Video Downloader Custom Styles */

/* Loading Animation Enhancements */
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(251, 191, 36, 0.4);
    }
    100% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.8), 0 0 30px rgba(251, 191, 36, 0.4);
    }
}

/* Enhanced Download Progress */
.download-progress {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    background-size: 200% 100%;
    animation: progress-shine 2s linear infinite;
}

@keyframes progress-shine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Video Card Hover Effects */
.video-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Download Button Enhanced States */
.download-btn {
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

/* Quality Selection Enhanced */
.quality-option {
    transition: all 0.2s ease-in-out;
}

.quality-option:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quality-option input[type="radio"]:checked + .quality-content {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

/* URL Input Focus Effects */
.url-input {
    transition: all 0.3s ease;
}

.url-input:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

/* Thumbnail Zoom Effect */
.thumbnail-container {
    overflow: hidden;
}

.thumbnail-image {
    transition: transform 0.3s ease;
}

.thumbnail-container:hover .thumbnail-image {
    transform: scale(1.05);
}

/* Error Message Animation */
.error-shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Success Message Animation */
.success-bounce {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translateY(0);
    }
    40%,
    43% {
        transform: translateY(-8px);
    }
    70% {
        transform: translateY(-4px);
    }
    90% {
        transform: translateY(-2px);
    }
}

/* FAQ Accordion Smooth Transitions */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer.active {
    max-height: 200px;
    transition: max-height 0.3s ease-in, padding 0.3s ease-in;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column;
    }

    .mobile-full-width {
        width: 100%;
    }

    .mobile-text-sm {
        font-size: 0.875rem;
    }
}

/* Loading Spinner Custom */
.spinner-custom {
    border-top-color: #fbbf24;
    border-right-color: #f59e0b;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Advanced Button States */
.btn-processing {
    background: linear-gradient(-45deg, #fbbf24, #f59e0b, #ea580c, #dc2626);
    background-size: 400% 400%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Download Options Cards */
.download-option-card {
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.download-option-card:hover {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

/* Video Format Icons */
.format-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.format-mp4 {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.format-webm {
    background: linear-gradient(135deg, #10b981, #047857);
}
.format-avi {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Quality Indicators */
.quality-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.quality-hd {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
}
.quality-sd {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}
.quality-mobile {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
}
