/* Video Lightbox Styles */
.video-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.video-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: videoLightboxSlideIn 0.3s ease-out;
}

.video-lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.video-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.video-lightbox-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

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

.video-lightbox-title {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
    border-top: 1px solid #eee;
}

/* Animation */
@keyframes videoLightboxSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-lightbox-content {
        width: 95%;
        max-height: 80vh;
    }
    
    .video-lightbox-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .video-lightbox-title {
        padding: 15px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .video-lightbox-content {
        width: 98%;
        max-height: 75vh;
    }
    
    .video-lightbox-close {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* Video lightbox trigger styling */
.video-lightbox-trigger {
    cursor: pointer;
}

/* Focus styles for accessibility */
.video-lightbox-close:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.video-lightbox-trigger:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Screen reader only class */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Demo shortcode styling */
.video-lightbox-demo {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.video-lightbox-demo h3 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.video-lightbox-demo p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.demo-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.demo-video-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    text-align: center;
    transition: all 0.2s ease;
}

.demo-video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.demo-info {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.demo-info h4 {
    color: #333;
    margin-bottom: 1rem;
}

.demo-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.demo-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
    color: #555;
}

.demo-info li:last-child {
    border-bottom: none;
}

/* Responsive demo adjustments */
@media (max-width: 768px) {
    .video-lightbox-demo {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .demo-videos {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
