/* Video Compressor Styles */
.video-compressor-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.compressor-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border-radius: 24px;
    margin-bottom: 40px;
}

.compressor-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #1a202c;
    margin-bottom: 1rem;
}

.highlight {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-features span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2d3748;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hero-features i {
    color: #667eea;
}

/* Tool Section */
.compressor-tool {
    margin-bottom: 60px;
}

.tool-wrapper {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* Upload Area */
.upload-area {
    border: 3px dashed #cbd5e1;
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #667eea;
    background: #f7f8ff;
}

.upload-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1.5rem;
}

.upload-area h3 {
    font-size: 1.5rem;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.upload-formats {
    font-size: 0.9rem;
    color: #94a3b8;
}

.upload-size {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.btn-browse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-browse:hover {
    background: #5a6fd6;
    transform: translateY(-2px);
}

/* Processing Area */
.processing-area {
    animation: fadeIn 0.3s ease;
}

.video-preview {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.video-preview video {
    width: 100%;
    max-height: 500px;
}

.video-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.info-item {
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 4px;
}

.info-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    word-break: break-all;
}

/* Compression Settings */
.compression-settings {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
}

.compression-settings h4 {
    font-size: 1.2rem;
    color: #1a202c;
    margin-bottom: 20px;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
}

.quality-slider {
    position: relative;
}

.quality-slider input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #667eea, #764ba2);
    outline: none;
    -webkit-appearance: none;
}

.quality-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
}

.quality-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.quality-value {
    position: absolute;
    top: -30px;
    right: 0;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    background: white;
    color: #2d3748;
    cursor: pointer;
    transition: border-color 0.2s;
}

select:focus {
    outline: none;
    border-color: #667eea;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-compress,
.btn-reset,
.btn-download,
.btn-compress-again {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-compress {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    flex: 1;
    justify-content: center;
}

.btn-compress:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-compress:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-reset {
    background: #f1f5f9;
    color: #64748b;
}

.btn-reset:hover {
    background: #e2e8f0;
}

/* Progress Container */
.progress-container {
    margin-top: 24px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 16px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 500;
    color: #2d3748;
}

.progress-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Result Section */
.result-section {
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

.result-card {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 2px solid #86efac;
}

.result-icon {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 1rem;
}

.result-card h4 {
    font-size: 1.5rem;
    color: #166534;
    margin-bottom: 1.5rem;
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.result-stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
}

.stat-value.saved {
    color: #16a34a;
    font-size: 1.4rem;
}

.result-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-download {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.btn-compress-again {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-compress-again:hover {
    background: #667eea;
    color: white;
}

/* Features Section */
.features-section {
    padding: 60px 0;
}

.features-section h2,
.how-it-works h2,
.faq-section h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #1a202c;
    margin-bottom: 40px;
}

.features-section h2 i,
.how-it-works h2 i,
.faq-section h2 i {
    color: #667eea;
    margin-right: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: #667eea;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #1a202c;
}

.feature-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 60px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.step {
    text-align: center;
    padding: 32px;
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h4 {
    font-size: 1.1rem;
    color: #1a202c;
    margin-bottom: 8px;
}

.step p {
    color: #64748b;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #64748b;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 80px;
    padding: 48px 24px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #f1f5f9;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    line-height: 1.5;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: #818cf8;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.8rem;
    border-top: 1px solid #1e293b;
    font-size: 0.8rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .video-compressor-container {
        padding: 16px;
    }
    
    .tool-wrapper {
        padding: 24px;
    }
    
    .upload-area {
        padding: 40px 16px;
    }
    
    .video-info {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .result-stats {
        gap: 20px;
    }
    
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .compressor-hero {
        padding: 40px 16px;
    }
    
    .hero-features {
        gap: 8px;
    }
    
    .hero-features span {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}
/* Custom Notifications */
.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.notification-error {
    border-left: 4px solid #ef4444;
    color: #dc2626;
}

.notification-success {
    border-left: 4px solid #22c55e;
    color: #16a34a;
}

.notification-info {
    border-left: 4px solid #667eea;
    color: #4f46e5;
}

.notification-warning {
    border-left: 4px solid #f59e0b;
    color: #d97706;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.loading-spinner i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 16px;
    display: block;
}

.loading-spinner p {
    color: #2d3748;
    font-weight: 500;
    font-size: 1rem;
}