/* TikTok Downloader Styles */
.ttd-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ttd-header {
    text-align: center;
    margin-bottom: 25px;
}

.ttd-title {
    color: white;
    font-size: 2.2em;
    margin: 0 0 10px 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.ttd-description {
    color: rgba(255,255,255,0.9);
    font-size: 1.1em;
    margin: 0;
    line-height: 1.5;
}

.ttd-disclaimer {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.ttd-disclaimer p {
    color: white;
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.ttd-form {
    margin-bottom: 30px;
}

.ttd-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ttd-input {
    flex: 1;
    min-width: 300px;
    padding: 15px 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.ttd-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.ttd-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.ttd-button {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.ttd-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,107,0.4);
}

.ttd-button:active {
    transform: translateY(0);
}

.ttd-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ttd-spinner {
    font-size: 1.2em;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ttd-result {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.ttd-video-info {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.ttd-thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.ttd-video-details h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.3em;
}

.ttd-video-meta {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.ttd-download-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ttd-download-btn {
    padding: 12px 24px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ttd-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76,175,80,0.4);
    color: white;
    text-decoration: none;
}

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

.ttd-feature {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.ttd-feature:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.15);
}

.ttd-icon {
    font-size: 1.5em;
    display: block;
    margin-bottom: 8px;
}

.ttd-error {
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
}

.ttd-success {
    background: linear-gradient(45deg, #2ed573, #1e90ff);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ttd-container {
        margin: 10px;
        padding: 20px;
    }
    
    .ttd-input {
        min-width: 100%;
        margin-bottom: 10px;
    }
    
    .ttd-button {
        width: 100%;
    }
    
    .ttd-video-info {
        flex-direction: column;
        text-align: center;
    }
    
    .ttd-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ttd-title {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .ttd-features {
        grid-template-columns: 1fr;
    }
    
    .ttd-download-buttons {
        flex-direction: column;
    }
    
    .ttd-download-btn {
        text-align: center;
        justify-content: center;
    }
}

/* Dark theme variant */
.ttd-container[data-style="dark"] {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.ttd-container[data-style="dark"] .ttd-input {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

/* Minimal theme variant */
.ttd-container[data-style="minimal"] {
    background: white;
    border: 2px solid #e0e0e0;
    color: #333;
}

.ttd-container[data-style="minimal"] .ttd-title,
.ttd-container[data-style="minimal"] .ttd-description {
    color: #333;
}

.ttd-container[data-style="minimal"] .ttd-input {
    background: white;
    border-color: #ddd;
    color: #333;
}

.ttd-container[data-style="minimal"] .ttd-input::placeholder {
    color: #999;
}