/**
 * Workshop Videos – Modal Styles
 */

/* Overlay */
.wv-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.wv-modal-overlay.wv-modal-visible {
    opacity: 1;
}

/* Modal Container */
.wv-modal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s ease;
}

.wv-modal-overlay.wv-modal-visible .wv-modal {
    transform: translateY(0) scale(1);
}

/* Close Button */
.wv-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    color: #374151;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wv-modal-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #111827;
}

/* Modal Body */
.wv-modal-body {
    display: flex;
    flex-direction: column;
}

/* Image */
.wv-modal-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #1f2937;
}

.wv-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Player (shown when user has access) */
.wv-modal-player {
    width: 100%;
    background: #000;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.wv-modal-player .wv-video-part + .wv-video-part {
    margin-top: 16px;
}

.wv-modal-player .wv-video-part-label {
    color: #f3f4f6;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 16px 0;
    margin: 0;
}

.wv-modal-player .wv-video-player {
    width: 100%;
    background: #000;
}

.wv-modal-player .wv-video-player iframe,
.wv-modal-player .wv-video-player video,
.wv-modal-player .wv-video-player smartvideo {
    width: 100%;
    display: block;
}

.wv-modal-player .wv-video-player iframe {
    aspect-ratio: 16 / 9;
    border: 0;
}

/* Details */
.wv-modal-details {
    padding: 28px;
}

.wv-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* Speaker row with profile pic */
.wv-modal-speaker-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px 0;
}

.wv-modal-speaker-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
}

.wv-modal-speaker {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

.wv-modal-description {
    font-size: 15px;
    line-height: 1.65;
    color: #374151;
    margin-bottom: 24px;
}

/* Price display */
.wv-modal-price {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 20px;
    text-align: center;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.wv-modal-price .wv-price-old {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 16px;
    font-weight: 500;
    margin-right: 8px;
}

.wv-modal-price .wv-price-current {
    color: #059669;
    font-size: 22px;
}

/* Cart Button */
.wv-modal-cart-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 14px 32px;
    background: #2563eb;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 8px;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
}

.wv-modal-cart-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.wv-modal-cart-btn:active {
    transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
    .wv-modal {
        max-width: 100%;
        border-radius: 12px;
    }

    .wv-modal-details {
        padding: 20px;
    }

    .wv-modal-title {
        font-size: 18px;
    }

    .wv-modal-cart-btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}
