/* ========================================
   VIDEO ANALYSIS - MODERN DESIGN
   Dedicated CSS for Video Analysis Feature
   ======================================== */

:root {
    --video-primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --video-accent: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
    --video-success: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    --video-warning: linear-gradient(135deg, #ff9800 0%, #ff6b35 100%);
    --video-danger: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    --video-bg-light: #fff8f0;
    --video-bg-card: #ffffff;
    --video-text-dark: #2d1810;
    --video-text-medium: #5d4037;
    --video-text-light: #8d6e63;
}

/* BETA Badge - Enhanced */
.beta-badge {
    background: var(--video-primary);
    color: white;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5);
    animation: pulse-beta 2s ease-in-out infinite;
    text-transform: uppercase;
}

@keyframes pulse-beta {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 107, 53, 0.9);
        transform: scale(1.05);
    }
}

/* Video Tab Content - Modern Container */
#video-analysis {
    padding: 0;
    background: transparent;
}

.video-hero {
    background: var(--video-primary);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    color: white;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.video-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: rotate-gradient 15s linear infinite;
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.video-hero-content {
    position: relative;
    z-index: 1;
}

.video-hero h4 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: white;
}

.video-hero-icon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.video-hero p {
    font-size: 1.1rem;
    margin: 0;
    color: white;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Limits Card - Premium Design */
.video-limits-card {
    background: var(--video-bg-card);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.12);
    border: 2px solid #ffe0d1;
    transition: all 0.3s ease;
}

.video-limits-card:hover {
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.18);
    transform: translateY(-5px);
}

.video-limits-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--video-text-dark);
}

.video-limits-header svg {
    color: #ff6b35;
}

.video-limits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.limit-box {
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #ffe0d1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.limit-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--video-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.limit-box:hover {
    border-color: #ff6b35;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.2);
}

.limit-box:hover::before {
    transform: scaleX(1);
}

.limit-box-header {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--video-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.limit-icon {
    font-size: 1.5rem;
}

.limit-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.limit-box li {
    padding: 10px 0;
    border-bottom: 1px solid #ffe0d1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.limit-box li:last-child {
    border-bottom: none;
}

.limit-label {
    color: var(--video-text-medium);
    font-weight: 500;
}

.limit-value {
    font-weight: 700;
    color: #ff6b35;
    font-size: 1.05rem;
}

.formats-info {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #ff9800 0%, #f7931e 100%);
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Upload Zone - Premium Design */
.video-upload-container {
    background: var(--video-bg-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.12);
}

.video-drop-zone {
    border: 3px dashed #ffcc80;
    border-radius: 20px;
    padding: 60px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.video-drop-zone::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.video-drop-zone:hover::before {
    width: 500px;
    height: 500px;
}

.video-drop-zone:hover {
    border-color: #ff6b35;
    background: linear-gradient(135deg, #ffe0d1 0%, #fff8f0 100%);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.drop-zone-content {
    position: relative;
    z-index: 1;
}

.drop-zone-content svg {
    color: #ff6b35;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.video-drop-zone:hover .drop-zone-content svg {
    transform: scale(1.1);
    opacity: 1;
}

.drop-zone-text {
    font-size: 1.3rem;
    margin: 15px 0;
    color: var(--video-text-dark);
    font-weight: 700;
}

.drop-zone-hint {
    font-size: 0.95rem;
    color: var(--video-text-medium);
    margin: 0;
    line-height: 1.6;
}

/* Video Preview - Enhanced */
.video-preview {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

#video-preview-player {
    width: 100%;
    max-height: 400px;
    border-radius: 15px;
    background: #000;
}

.remove-video-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(231, 76, 60, 0.95);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    backdrop-filter: blur(10px);
}

.remove-video-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.6);
}

/* Description Section - Modern */
.video-description-section {
    margin-top: 30px;
}

.video-description-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--video-text-dark);
}

.required-star {
    color: #e74c3c;
    font-size: 1.2rem;
}

#video-description {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #ffe0d1;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
    background: #fff8f0;
    color: var(--video-text-dark);
}

#video-description:focus {
    outline: none;
    border-color: #ff6b35;
    background: white;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.15);
}

#video-description::placeholder {
    color: var(--video-text-light);
}

.description-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.9rem;
}

#description-hint {
    font-weight: 600;
    color: var(--video-text-medium);
    transition: color 0.3s ease;
}

#description-counter {
    color: var(--video-text-light);
    font-weight: 600;
}

/* Analyze Button - Premium */
#analyze-video-btn {
    width: 100%;
    margin-top: 25px;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--video-primary);
    border: none;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

#analyze-video-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#analyze-video-btn:hover::before {
    width: 500px;
    height: 500px;
}

#analyze-video-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
}

#analyze-video-btn:disabled {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Progress Bar - Enhanced */
#video-analysis-progress {
    margin-top: 25px;
}

.progress-bar-container {
    background: #ffe0d1;
    border-radius: 15px;
    overflow: hidden;
    height: 40px;
    box-shadow: inset 0 2px 5px rgba(255, 107, 53, 0.15);
}

.progress-bar-fill {
    background: var(--video-primary);
    height: 100%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.5);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

#video-progress-text {
    text-align: center;
    margin-top: 15px;
    color: var(--video-text-medium);
    font-weight: 600;
    font-size: 1.05rem;
}

/* Result Section - Premium Design */
#video-analysis-result {
    margin-top: 30px;
    background: var(--video-bg-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.12);
}

#video-analysis-result h5 {
    color: #ff6b35;
    margin-bottom: 25px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-result-section {
    margin-bottom: 25px;
    border-radius: 15px;
    overflow: hidden;
}

.video-result-section h6 {
    color: var(--video-text-dark);
    margin-bottom: 15px;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

#video-result-analysis {
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 12px;
    line-height: 1.8;
    border-left: 4px solid #ff6b35;
    font-size: 1.05rem;
    color: var(--video-text-dark);
}

.video-result-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.video-result-section ul li {
    margin-bottom: 12px;
    padding: 15px 15px 15px 45px;
    position: relative;
    line-height: 1.7;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: var(--video-text-dark);
}

.video-result-section ul li:hover {
    transform: translateX(5px);
}

#video-result-findings {
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
    border-left: 4px solid #4caf50;
}

#video-result-findings li::before {
    content: "✓";
    position: absolute;
    left: 15px;
    font-weight: bold;
    color: #4caf50;
    font-size: 1.3rem;
}

#video-result-issues {
    background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%);
    border-left: 4px solid #ff9800;
}

#video-result-issues li::before {
    content: "⚠";
    position: absolute;
    left: 15px;
    font-weight: bold;
    color: #ff9800;
    font-size: 1.3rem;
}

#video-result-recommendations {
    background: linear-gradient(135deg, #ffe0d1 0%, #ffffff 100%);
    border-left: 4px solid #ff6b35;
}

#video-result-recommendations li::before {
    content: "💡";
    position: absolute;
    left: 15px;
    font-size: 1.2rem;
}

#video-remaining-info {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: var(--video-primary);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .video-hero {
        padding: 20px;
    }

    .video-hero h4 {
        font-size: 1.5rem;
        flex-direction: column;
    }

    .video-hero-icon {
        font-size: 2.5rem;
    }

    .video-limits-grid {
        grid-template-columns: 1fr;
    }

    .video-drop-zone {
        padding: 40px 20px;
    }

    .drop-zone-text {
        font-size: 1.1rem;
    }

    #video-preview-player {
        max-height: 250px;
    }

    #analyze-video-btn {
        font-size: 1.1rem;
        padding: 15px;
    }

    .video-result-section ul li {
        padding: 12px 12px 12px 40px;
        font-size: 0.95rem;
    }
}