/* ============================================
   Video Downloader - Professional UI
   Color Scheme: Orange (#FF6B35) & Black (#1a1a1a)
   ============================================ */

/* ============================================
   CSS Reset & Base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* ============================================
   Navigation Bar
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.brand-icon {
    width: 28px;
    height: 28px;
    color: #FF6B35;
}

.brand-name {
    color: #FF6B35;
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #FF6B35;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: #FF6B35;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #FF6B35;
    border-radius: 2px;
    transition: 0.3s;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: #1a1a1a;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 20px;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ============================================
   Download Card
   ============================================ */
.download-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 32px;
}

.download-form {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 16px;
}

#video-url {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-family: inherit;
    color: #1a1a1a;
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s;
}

#video-url::placeholder {
    color: #9ca3af;
}

#video-url:focus {
    outline: none;
    border-color: #FF6B35;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 56px;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c42 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ============================================
   Loading State
   ============================================ */
.loading {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border: 4px solid #f3f4f6;
    border-top-color: #FF6B35;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    color: #6b7280;
    font-size: 14px;
}

/* ============================================
   Error Message
   ============================================ */
.error-message {
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 8px;
}

/* ============================================
   Results
   ============================================ */
.results {
    margin-top: 24px;
}

.video-info {
    margin-bottom: 24px;
    text-align: center;
}

.video-info img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 16px;
}

.video-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.download-options h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 16px;
    margin-top: 24px;
}

.download-options h4:first-child {
    margin-top: 0;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.download-grid .download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    box-shadow: none;
    margin-bottom: 0;
}

.download-grid .download-card:hover {
    border-color: #FF6B35;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.download-grid .download-card .download-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    color: #FF6B35;
    transition: color 0.3s;
    flex-shrink: 0;
}

.download-grid .download-card:hover .download-icon {
    color: #FF6B35;
}

.download-grid .download-card .download-info {
    text-align: center;
    width: 100%;
}

.download-grid .download-card .download-quality {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    transition: color 0.3s;
}

.download-grid .download-card:hover .download-quality {
    color: #1a1a1a;
}

.download-grid .download-card .download-format {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    transition: color 0.3s;
}

.download-grid .download-card:hover .download-format {
    color: #6b7280;
}

.download-grid .download-card .download-size {
    font-size: 0.75rem;
    color: #9ca3af;
    transition: color 0.3s;
}

.download-grid .download-card:hover .download-size {
    color: #9ca3af;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.download-btn:hover {
    background: #FF6B35;
    border-color: #FF6B35;
    color: #fff;
    transform: translateX(4px);
}

/* ============================================
   Supported Platforms
   ============================================ */
.supported-platforms {
    margin-top: 24px;
    text-align: center;
}

.platforms-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 16px;
}

.platforms {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
}

.platform:hover {
    background: #FF6B35;
    transform: translateY(-2px);
}

.platform:hover .platform-name {
    color: #fff;
}

.platform-icon {
    width: 32px;
    height: 32px;
    color: #4b5563;
    transition: color 0.3s;
}

.platform:hover .platform-icon {
    color: #fff;
}

.platform-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    transition: color 0.3s;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    padding: 80px 20px;
    background: #fff;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: #6b7280;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.feature-card {
    padding: 32px 24px;
    background: #f8f9fa;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: #FF6B35;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.feature-description {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c42 100%);
    border-radius: 50%;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.step-description {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    padding: 60px 20px;
    background: #1a1a1a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 24px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FF6B35;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9375rem;
    color: #d1d5db;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #1a1a1a;
    color: #d1d5db;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-column {
    text-align: center;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #9ca3af;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #FF6B35;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FF6B35;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #374151;
    text-align: center;
}

.footer-bottom p {
    margin: 8px 0;
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-disclaimer {
    font-size: 0.8125rem;
    opacity: 0.8;
}

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero {
        padding: 100px 20px;
    }
    
    .hero-title {
        font-size: 3rem;
        white-space: nowrap;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        text-align: left;
    }
    
    .footer-column {
        text-align: left;
    }
    
    .footer-title {
        justify-content: flex-start;
    }
}

/* ============================================
   Responsive - Desktop
   ============================================ */
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-title {
        font-size: 3rem;
    }
}
