/* Video Upload Modal Styles */

.video-upload-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-upload-modal.show {
    display: flex;
}

.video-upload-content {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    color: #fff;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-upload-header {
    margin-bottom: 30px;
}

.video-upload-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ff4500;
}

.video-upload-header p {
    font-size: 14px;
    color: #888;
}

.video-upload-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.video-upload-close:hover {
    color: #ff4500;
}

/* Tab Navigation */
.video-upload-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
}

.video-tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.video-tab-btn.active {
    color: #ff4500;
    border-bottom-color: #ff4500;
}

.video-tab-btn:hover {
    color: #fff;
}

/* Tab Content */
.video-tab-content {
    display: none;
}

.video-tab-content.active {
    display: block;
}

/* YouTube Link Input */
.youtube-input-group {
    margin-bottom: 20px;
}

.youtube-input-group label {
    display: block;
    margin-bottom: 10px;
    color: #ccc;
    font-size: 14px;
}

.youtube-input-group input {
    width: 100%;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 2px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.youtube-input-group input:focus {
    outline: none;
    border-color: #ff4500;
}

.youtube-input-group input::placeholder {
    color: #666;
}

/* File Upload Area */
.file-upload-area {
    margin-bottom: 20px;
}

.upload-dropzone {
    border: 2px dashed #444;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #2a2a2a;
}

.upload-dropzone:hover {
    border-color: #ff4500;
    background: #333;
}

.upload-dropzone.dragover {
    border-color: #ff4500;
    background: #333;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    color: #666;
    margin-bottom: 15px;
}

.upload-text {
    color: #ccc;
    margin-bottom: 10px;
}

.upload-hint {
    font-size: 12px;
    color: #666;
}

/* File Preview */
.file-preview {
    display: none;
    background: #2a2a2a;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.file-preview.show {
    display: block;
}

.preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.preview-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.preview-icon {
    font-size: 32px;
    color: #ff4500;
}

.preview-details h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 5px;
}

.preview-details p {
    color: #666;
    font-size: 12px;
}

.preview-remove {
    background: none;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.preview-remove:hover {
    color: #ff4500;
}

/* Thumbnail Upload */
.thumbnail-upload {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.thumbnail-upload h3 {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 15px;
}

.thumbnail-preview {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px;
    display: none;
}

.thumbnail-preview.show {
    display: block;
}

.thumbnail-preview img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Action Buttons */
.video-upload-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-cancel,
.btn-upload {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #333;
    color: #ccc;
}

.btn-cancel:hover {
    background: #444;
    color: #fff;
}

.btn-upload {
    background: #ff4500;
    color: #fff;
}

.btn-upload:hover {
    background: #ff6a00;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.3);
}

.btn-upload:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading State */
.upload-loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.upload-loading.show {
    display: block;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top-color: #ff4500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-text {
    color: #ccc;
    font-size: 14px;
}

/* Success/Error Messages */
.upload-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
}

.upload-message.show {
    display: block;
}

.upload-message.success {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.upload-message.error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .video-upload-content {
        padding: 30px 20px;
    }
    
    .upload-dropzone {
        padding: 30px 20px;
    }
    
    .video-upload-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-upload {
        width: 100%;
    }
}
