/* Instagram Video Downloader Pro - Complete Styles */

.ivdp-wrapper {
    position: relative;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
    color: #ffffff;
    overflow: hidden;
    border-radius: 24px;
    margin: 2rem 0;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Animated Background */
.ivdp-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

.ivdp-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: ivdpFloat 20s infinite ease-in-out;
}

.ivdp-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.ivdp-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 87, 108, 0.4) 0%, transparent 70%);
    bottom: 10%;
    right: -5%;
    animation-delay: 7s;
}

.ivdp-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.4) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes ivdpFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(30px, 50px) scale(1.05); }
}

/* Hero Section */
.ivdp-hero {
    text-align: center;
    position: relative;
    z-index: 5;
    margin-bottom: 4rem;
}

.ivdp-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ivdpFadeInUp 0.8s ease-out;
}

.ivdp-title span {
    display: block;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ivdp-subtitle {
    font-size: 1.15rem;
    color: #e0e0e0;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    animation: ivdpFadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes ivdpFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Download Tool */
.ivdp-download-tool {
    max-width: 650px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: ivdpFadeInUp 0.8s ease-out 0.4s backwards;
}

.ivdp-input-group {
    margin-bottom: 1.5rem;
}

.ivdp-input-group input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
}

.ivdp-input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.ivdp-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ivdp-download-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.ivdp-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.ivdp-download-btn:active {
    transform: translateY(0);
}

.ivdp-download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading */
.ivdp-loading {
    display: none;
    text-align: center;
    margin-top: 1.5rem;
    animation: ivdpFadeIn 0.3s ease-out;
}

.ivdp-loading.active {
    display: block;
}

.ivdp-spinner {
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: ivdpSpin 1s linear infinite;
    margin: 0 auto;
}

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

@keyframes ivdpFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ivdp-loading p {
    margin-top: 1rem;
    color: #e0e0e0;
    font-weight: 500;
}

/* Result */
.ivdp-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    display: none;
    animation: ivdpFadeIn 0.3s ease-out;
}

.ivdp-result.show {
    display: block;
}

.ivdp-result.success {
    background: rgba(76, 175, 80, 0.15);
    border: 2px solid rgba(76, 175, 80, 0.4);
}

.ivdp-result.error {
    background: rgba(244, 67, 54, 0.15);
    border: 2px solid rgba(244, 67, 54, 0.4);
}

.ivdp-result p {
    margin: 0 0 1rem 0;
    font-weight: 600;
    font-size: 1rem;
}

.ivdp-result.success p {
    color: #4caf50;
}

.ivdp-result.error p {
    color: #f44336;
}

.ivdp-result img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 12px;
    margin: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ivdp-download-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.ivdp-download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    color: white !important;
}

/* Supported Types */
.ivdp-supported-types {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 0.95rem;
    color: #e0e0e0;
}

/* Features */
.ivdp-features {
    position: relative;
    z-index: 5;
    margin: 4rem 0;
}

.ivdp-section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 3rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ivdp-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ivdp-feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.ivdp-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ivdp-feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.ivdp-feature-card:hover::before {
    opacity: 0.1;
}

.ivdp-feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.ivdp-feature-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    position: relative;
    z-index: 2;
}

.ivdp-feature-card p {
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
}

/* Steps */
.ivdp-steps {
    position: relative;
    z-index: 5;
    margin: 4rem 0;
}

.ivdp-steps-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ivdp-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.ivdp-step:hover {
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.ivdp-step-number {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    line-height: 1;
}

.ivdp-step-content h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.ivdp-step-content p {
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Footer */
.ivdp-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 5;
}

.ivdp-footer p {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .ivdp-wrapper {
        padding: 3rem 1.5rem;
        border-radius: 16px;
    }
    
    .ivdp-download-tool {
        padding: 1.5rem;
    }
    
    .ivdp-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .ivdp-step:hover {
        transform: translateY(-5px);
    }
    
    .ivdp-feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ivdp-title {
        font-size: 2rem;
    }
    
    .ivdp-subtitle {
        font-size: 1rem;
    }
    
    .ivdp-download-tool {
        padding: 1.25rem;
    }
    
    .ivdp-feature-card {
        padding: 1.5rem;
    }
}
