/* Modern Generate Page Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --accent-color: #17a2b8;
    --text-color: #333;
    --text-light: #666;
    --text-muted: #999;
    --gradient-primary: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.15);
}

body {
    background: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

#analysis-section {
    padding: 60px 0 100px;
}

#analysis-section .container {
    max-width: 900px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-hover);
    margin: 40px auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

#analysis-section .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

#analysis-section h2 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #007bff;
    background-clip: text;
    text-align: center;
    position: relative;
}

#analysis-section h2::after {
    content: '';
    position: absolute;
    background: var(--gradient-primary);
    width: 80px;
    height: 3px;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.instructions {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#video-analysis-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    margin-bottom: 0;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--text-color);
    position: relative;
}

.form-group label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.form-group input[type="url"],
.form-group input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.form-group input[type="url"]:focus,
.form-group input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.form-group input[type="url"]::placeholder,
.form-group input[type="text"]::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.text-danger {
    color: #dc3545 !important;
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
    border-left: 3px solid #dc3545;
    display: block;
}

#start-analysis-btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-family: inherit;
}

#start-analysis-btn,
.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.15rem;
}

#start-analysis-btn {
    width: 100%;
    margin-top: 20px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4);
}

.btn-secondary:hover {
    box-shadow: 0 12px 35px rgba(108, 117, 125, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}


/* Utility Classes */
.hidden {
    display: none !important;
}

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

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Loading Overlay Styles */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
}

.loading-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

#loading-message {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

#loading-details {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.error-message {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
    margin-top: 20px;
}

.success-message {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #28a745;
    margin-top: 20px;
}


@media (max-width: 900px) {
    #analysis-section .container {
        margin: 20px 20px !important;
        max-width: calc(100% - 40px) !important;
    }
}

@media (max-width: 576px) {
    #analysis-section .container {
        margin: 15px 15px !important;
        max-width: calc(100% - 30px) !important;
    }
}
