/* ==========================================================================
   Downloader Component Styles: Hero, URL Bar, Progress, Modals & Results
   ========================================================================== */

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-main);
    margin-bottom: 12px;
}

.hero-gradient-text {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 520px;
}

/* Downloader URL Input Bar */
.downloader-input-box {
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 6px 6px 6px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
    position: relative;
}

.downloader-input-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-lg);
}

.downloader-input {
    flex: 1;
    font-size: 15px;
    color: var(--text-main);
    background: transparent;
    height: 48px;
}

.downloader-input::placeholder {
    color: var(--text-light);
}

.btn-paste {
    background: var(--bg-input);
    color: var(--text-muted);
    border-radius: var(--radius-md);
    padding: 0 16px;
    height: 44px;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.btn-paste:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.btn-download-hero {
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    font-size: 15px;
    height: 48px;
    padding: 0 26px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.btn-download-hero:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(124, 58, 237, 0.5);
}

.downloader-terms {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 14px;
}

.downloader-terms a {
    color: var(--primary);
    text-decoration: underline;
}

/* 3D Illustration Card (Mockup Graphic) */
.hero-illustration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-window {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 380px;
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    backdrop-filter: blur(10px);
}

.window-dots {
    position: absolute;
    top: 14px;
    left: 16px;
    display: flex;
    gap: 6px;
}

.window-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--border-color);
}

.play-circle-large {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
    animation: floatPulse 3s ease-in-out infinite;
}

@keyframes floatPulse {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.03); }
}

.badge-float-mp4 {
    position: absolute;
    top: 24px;
    left: -16px;
    background: #2563eb;
    color: white;
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    animation: float1 4s ease-in-out infinite;
}

.badge-float-mp3 {
    position: absolute;
    top: 24px;
    right: -16px;
    background: #ec4899;
    color: white;
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.35);
    animation: float2 3.5s ease-in-out infinite;
}

.badge-float-arrow {
    position: absolute;
    bottom: -18px;
    right: 32px;
    background: #10b981;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
    animation: float1 3s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Supported Platforms Grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 14px;
}

.platform-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    transition: all var(--transition-fast);
}

.platform-pill:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.platform-pill-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-pill-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* How It Works Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.step-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.step-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Download Progress Bar */
.progress-container {
    width: 100%;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    height: 10px;
    overflow: hidden;
    position: relative;
    margin: 8px 0;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}
