/**
 * Video Template Styles
 * Custom styles for JBS video post templates
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* Video Post Container */
.jbs-video-post-detailed,
.jbs-video-post-simple {
    background: #ffffff;
    min-height: 100vh;
}

/* Breadcrumb Styles */
.jbs-video-post-detailed .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.jbs-video-post-detailed .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.jbs-video-post-detailed .breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.jbs-video-post-detailed .breadcrumb-item a:hover {
    text-decoration: underline;
}

.jbs-video-post-detailed .breadcrumb-item.active {
    color: #6c757d;
}

/* Video Player Styles */
.video-player-container,
.video-container {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.video-wrapper,
.video-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-embed iframe,
.video-embed video,
.video-thumbnail-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-embed iframe,
.video-embed video {
    border: none;
}

.video-thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play Button Overlay */
.play-button-overlay {
    z-index: 10;
    transition: all 0.3s ease;
}

.play-button-circle {
    width: 80px;
    height: 80px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    transition: all 0.3s ease;
}

.play-button-circle i {
    font-size: 2rem;
    color: #ffffff;
    margin-left: 4px; /* Slight adjustment for play icon */
}

.video-thumbnail-container:hover .play-button-circle {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

/* Video Title Styles */
.video-main-title,
.video-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin: 0;
}

.video-main-title {
    font-size: 2.5rem;
}

.video-title {
    font-size: 2rem;
}

/* Video Description Styles */
.video-description-content .lead,
.video-excerpt {
    font-size: 1.25rem;
    font-weight: 400;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.video-full-content,
.video-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

/* Action Links Styles */
.action-link-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    min-height: 60px;
}

.action-link-btn:hover {
    background: #e9ecef;
    border-color: #007bff;
    color: #007bff;
    text-decoration: none;
    transform: translateY(-2px);
}

.action-link-btn i {
    font-size: 1.25rem;
    min-width: 24px;
}

/* Social Sharing Styles */
.sharing-buttons {
    gap: 0.75rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    color: #ffffff;
}

.share-btn:hover {
    text-decoration: none;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.share-pinterest { background: #e60023; }
.share-facebook { background: #1877f2; }
.share-whatsapp { background: #25d366; }
.share-email { background: #dc3545; }
.share-print { background: #6c757d; }

/* Recommended Videos Styles */
.section-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
}

.section-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #333;
    margin: 0;
}

.view-all-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.view-all-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

.recommended-video-card,
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    height: 100%;
}

.recommended-video-card:hover,
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #e3f2fd;
}

.video-thumbnail-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-thumbnail-wrapper:hover .play-button-overlay i {
    opacity: 1 !important;
    transform: scale(1.15);
}

.video-date {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
}

.video-title a {
    color: #333;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    font-size: 1.1rem;
    text-decoration: none;
}

.video-title a:hover {
    color: #007bff;
    text-decoration: none;
}

.video-description {
    line-height: 1.5;
    color: #666;
    font-size: 0.9rem;
}

.watch-now-btn {
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    background: #ffffff;
    border: 2px solid #000000;
    color: #000000;
    transition: all 0.3s ease;
}

.watch-now-btn:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Video Stats */
.video-stats {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* Video Transcript */
.video-transcript-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.transcript-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.transcript-content {
    background: #ffffff;
    border-radius: 6px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-main-title {
        font-size: 2rem;
    }
    
    .video-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .action-link-btn {
        padding: 0.75rem;
        min-height: 50px;
    }
    
    .action-link-btn span {
        font-size: 0.9rem;
    }
    
    .share-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .recommended-video-card,
    .card {
        padding: 1rem;
    }
    
    .play-button-circle {
        width: 60px;
        height: 60px;
    }
    
    .play-button-circle i {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .video-main-title {
        font-size: 1.75rem;
    }
    
    .video-title {
        font-size: 1.25rem;
    }
    
    .sharing-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .transcript-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Animation for video loading */
@keyframes video-loading {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.video-embed,
.video-thumbnail-container {
    animation: video-loading 0.5s ease-out;
}

/* Focus styles for accessibility */
.video-play-trigger:focus,
.action-link-btn:focus,
.share-btn:focus,
.watch-now-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .video-player-container,
    .video-container,
    .sharing-buttons,
    .video-actions {
        display: none;
    }
    
    .video-title {
        color: #000 !important;
    }
}
