/* Videos Section Styles */

.videos-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Video Display Area */
.generated-video-display {
    width: 100%;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.video-placeholder {
    text-align: center;
    color: #999;
}

.video-placeholder i {
    font-size: 120px;
    color: #ddd;
    margin-bottom: 20px;
}

.video-placeholder p {
    font-size: 18px;
    font-family: 'Inter', sans-serif;
}

/* Video Player */
.video-player-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
}

.video-player {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Video Loading State */
.video-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.video-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.video-loading-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    font-family: 'Inter', sans-serif;
}

.video-loading-subtext {
    font-size: 14px;
    color: #999;
    font-family: 'Inter', sans-serif;
    font-style: italic;
}

/* Progress Bar */
.video-progress-container {
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
}

.video-progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

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

.video-progress-text {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    font-family: 'Inter', sans-serif;
}

/* Video Actions */
.video-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.video-action-btn {
    padding: 12px 24px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.video-action-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.video-action-btn i {
    font-size: 18px;
}

/* Video Error State */
.video-error {
    text-align: center;
    color: #dc3545;
}

.video-error i {
    font-size: 80px;
    margin-bottom: 16px;
}

.video-error p {
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

/* Video Prompt Container */
.video-prompt-container {
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 16px;
}

.video-generation-form {
    width: 100%;
    max-width: 800px;
}

/* Video Settings */
.video-settings-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.video-setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-setting-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    font-family: 'Inter', sans-serif;
}

.video-setting-select {
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.video-setting-select:hover {
    border-color: #667eea;
}

.video-setting-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Video Image Upload */
.video-image-upload-wrapper {
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

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

.video-upload-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.video-upload-label i {
    font-size: 18px;
    color: #667eea;
}

.video-image-upload-area {
    width: 100%;
    min-height: 180px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.video-image-upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.02);
}

.video-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    color: #999;
}

.video-upload-placeholder i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 12px;
}

.video-upload-placeholder p {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.video-upload-placeholder span {
    font-size: 13px;
    color: #999;
}

.video-uploaded-image-preview {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.video-uploaded-image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.video-remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.video-remove-image-btn:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.video-remove-image-btn i {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .generated-video-display {
        padding: 20px;
        min-height: 300px;
    }

    .video-placeholder i {
        font-size: 80px;
    }

    .video-placeholder p {
        font-size: 16px;
    }

    .video-prompt-container {
        padding: 20px;
    }

    .video-settings-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .video-setting-select {
        padding: 10px 14px;
        font-size: 14px;
    }

    .video-image-upload-wrapper {
        margin-bottom: 16px;
    }

    .video-image-upload-area {
        min-height: 150px;
    }

    .video-upload-placeholder {
        height: 150px;
    }

    .video-upload-placeholder i {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .video-upload-placeholder p {
        font-size: 14px;
    }

    .video-upload-placeholder span {
        font-size: 12px;
    }

    .video-uploaded-image-preview {
        height: 150px;
    }

    .prompt-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    #video-prompt-input {
        padding: 14px 16px;
        font-size: 14px;
    }

    .generate-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .video-actions {
        flex-direction: column;
    }

    .video-action-btn {
        width: 100%;
        justify-content: center;
    }
}


