/**
 * Exhibitor Video Modal Styles
 *
 * Responsive modal styling for Vimeo video display
 */

/* Video Trigger Button */
.exhibitor-video-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border-radius: 0.25rem;
    color: inherit;
    border:unset; 
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exhibitor-video-trigger:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.exhibitor-video-trigger:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.exhibitor-video-trigger .video-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.exhibitor-video-trigger .video-label {
    white-space: nowrap;
}

/* Modal Base */
.exhibitor-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.exhibitor-video-modal.is-active {
    display: flex;
}

/* Modal Overlay */
.exhibitor-video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exhibitor-video-modal.is-active .exhibitor-video-modal-overlay {
    opacity: 1;
}

/* Modal Container */
.exhibitor-video-modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 10000;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.exhibitor-video-modal.is-active .exhibitor-video-modal-container {
    transform: scale(1);
    opacity: 1;
}

/* Modal Content */
.exhibitor-video-modal-content {
    position: relative;
    background-color: #000;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Close Button */
.exhibitor-video-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10001;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exhibitor-video-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.95);
    transform: scale(1.1);
}

.exhibitor-video-modal-close:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.exhibitor-video-modal-close svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Modal Body */
.exhibitor-video-modal-body {
    width: 100%;
    padding: 0;
}

/* Video Wrapper - Responsive 16:9 aspect ratio */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

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

/* Body Lock */
body.exhibitor-video-modal-open {
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .exhibitor-video-modal-container {
        width: 95%;
    }

    .exhibitor-video-modal-close {
        width: 2rem;
        height: 2rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .exhibitor-video-modal-close svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .exhibitor-video-trigger .video-label {
        font-size: 0.75rem;
    }

    .exhibitor-video-trigger {
        padding: 0.375rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .exhibitor-video-modal-container {
        width: 100%;
        border-radius: 0;
    }

    .exhibitor-video-modal-content {
        border-radius: 0;
    }
}

/* Single Exhibitor Page - Video Preview Section */
.exhibitor-video-preview .video-preview-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exhibitor-video-preview .video-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.exhibitor-video-preview .video-preview-wrapper:hover .video-overlay {
    background: rgba(0, 0, 0, 0.6) !important;
}

.exhibitor-video-preview .exhibitor-video-trigger.btn {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.exhibitor-video-preview .exhibitor-video-trigger.btn:hover {
    transform: scale(1.1);
    background-color: #fff !important;
}

.exhibitor-video-preview .video-thumbnail img {
    transition: transform 0.3s ease;
}

.exhibitor-video-preview .video-preview-wrapper:hover .video-thumbnail img {
    transform: scale(1.05);
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .exhibitor-video-modal-overlay,
    .exhibitor-video-modal-container,
    .exhibitor-video-trigger,
    .exhibitor-video-modal-close,
    .exhibitor-video-preview .video-preview-card,
    .exhibitor-video-preview .video-thumbnail img {
        transition: none;
    }
}
