/*
Theme Name: TikTok Downloader
Description: A clean, modern WordPress theme designed specifically for TikTok video downloading websites. Features a responsive design with a simple, user-friendly interface optimized for mobile and desktop devices.
Author: Custom Development
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tiktok-downloader
Tags: responsive, clean, modern, video, downloader, mobile-first
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    min-height: calc(100vh - 140px);
    padding: 40px 0;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo:hover {
    color: #1d4ed8;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.site-nav a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-nav a:hover {
    color: #2563eb;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Downloader Section */
.downloader-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: -40px auto 60px;
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.downloader-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.url-input-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.url-input {
    flex: 1;
    min-width: 300px;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.url-input:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.download-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

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

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

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Download Options */
.download-options {
    display: none;
    margin-top: 30px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.download-options.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.options-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e293b;
}

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

.download-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #334155;
}

.download-option:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    color: #334155;
    text-decoration: none;
}

.option-quality {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #2563eb;
}

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

/* Features Section */
.features-section {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: #f8fafc;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e293b;
}

.feature-description {
    color: #64748b;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    padding-top: 20px;
    border-top: 1px solid #334155;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .downloader-section {
        margin: -20px 20px 40px;
        padding: 30px 20px;
    }
    
    .url-input-group {
        flex-direction: column;
    }
    
    .url-input {
        min-width: auto;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .site-nav ul {
        gap: 20px;
    }
    
    .option-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .downloader-section {
        padding: 20px 15px;
    }
    
    .url-input, .download-btn {
        padding: 12px 15px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #1e293b;
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.hidden {
    display: none;
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    margin-top: 15px;
    display: none;
}

.success-message {
    background: #f0fdf4;
    color: #16a34a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
    margin-top: 15px;
    display: none;
}

