/**
 * Single Video - Styling
 */

.single-video {
    background: #fff;
}

/* Video Header */
.video-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
}

.video-header-content {
    max-width: 900px;
    margin: 0 auto;
}

.video-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.video-platform {
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.video-platform.youtube {
    background: #c00000;
    color: #fff;
}

.video-platform.vimeo {
    background: #1ab7ea;
    color: #fff;
}

.video-duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.video-duration-badge svg {
    width: 14px;
    height: 14px;
}

.video-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1.5rem;
}

.video-header .video-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    opacity: 0.9;
}

.video-header .video-meta svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.video-header .separator {
    color: rgba(255, 255, 255, 0.5);
}

/* Video Player */
.video-player {
    background: #000;
    padding: 0;
}

.video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Video Thumbnail (fallback) */
.video-thumbnail-section {
    background: #000;
    padding: 2rem 0;
}

.video-thumbnail-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.video-thumbnail-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.watch-external {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #fff;
    text-decoration: none;
    background: rgba(139, 195, 74, 0.95);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.watch-external:hover {
    background: rgba(139, 195, 74, 1);
    transform: translate(-50%, -50%) scale(1.05);
}

.watch-external svg {
    width: 64px;
    height: 64px;
}

/* Video Content */
.video-content-section {
    background: #f8f9fa;
}

.video-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-description {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-description h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem;
    color: var(--color-text, #333);
}

.video-description p {
    color: #666;
    line-height: 1.6;
}

.video-full-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
}

.video-full-content p {
    margin-bottom: 1rem;
}

.video-full-content h2,
.video-full-content h3 {
    margin: 2rem 0 1rem;
}

.video-full-content ul,
.video-full-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.video-full-content a {
    color: var(--color-primary, #8bc34a);
    transition: opacity 0.3s ease;
}

.video-full-content a:hover {
    opacity: 0.8;
}

/* Video Actions */
.video-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.video-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.video-actions .btn svg {
    width: 20px;
    height: 20px;
}

/* Related Videos */
.related-videos {
    background: #f8f9fa;
}

.related-videos .section-title {
    font-size: 2rem;
    margin: 0 0 2rem;
    text-align: center;
}

.related-videos .video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .related-videos .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-title {
        font-size: 1.75rem;
    }
    
    .video-header .video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .video-header .separator {
        display: none;
    }
    
    .video-description,
    .video-full-content {
        padding: 1.5rem;
    }
    
    .video-actions {
        flex-direction: column;
    }
    
    .video-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .related-videos .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .video-badge {
        flex-direction: column;
        align-items: flex-start;
    }
}
