/* Video Modal Module - BEM Methodology */

/* Soft glow effect for the hero video */
.hero__video-container {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(255, 107, 53, 0.3),
        0 0 40px rgba(255, 107, 53, 0.2),
        0 0 60px rgba(255, 107, 53, 0.1);
}

/* Prevent iframe from blocking click events */
.hero__video-container .hero__video-iframe {
    pointer-events: none;
}

.hero__video-container:hover {
    transform: scale(1.02);
    box-shadow: 
        0 0 30px rgba(255, 107, 53, 0.4),
        0 0 60px rgba(255, 107, 53, 0.3),
        0 0 90px rgba(255, 107, 53, 0.2);
}

.hero__video-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.hero__video-container::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #333;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 11;
}

.hero__video-container:hover::after,
.hero__video-container:hover::before {
    opacity: 1;
}

/* Modal styles - Enhanced lightbox effect with transparent background */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.video-modal--active {
    opacity: 1;
    visibility: visible;
}

.video-modal__content {
    position: relative;
    width: 85%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(255, 107, 53, 0.4),
        0 0 120px rgba(255, 107, 53, 0.2),
        0 0 200px rgba(255, 107, 53, 0.1),
        inset 0 0 0 1px rgba(255, 107, 53, 0.2);
    transform: scale(0.7) rotateX(10deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 40px rgba(255, 107, 53, 0.3));
}

.video-modal--active .video-modal__content {
    transform: scale(1) rotateX(0deg);
}

.video-modal__iframe {
    width: 100%;
    height: 100%;
    border: none;
}

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

.video-modal__close:hover {
    background: rgba(255, 107, 53, 0.9);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.video-modal__youtube-link {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b35;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-modal__youtube-link:hover {
    background: #e55a2b;
    transform: translateX(-50%) scale(1.05);
    color: white;
    text-decoration: none;
}

.video-modal__youtube-link i {
    font-size: 18px;
}

/* Responsive design */
@media (max-width: 768px) {
    .video-modal__content {
        width: 95%;
        margin: 20px;
    }
    
    .video-modal__close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .video-modal__youtube-link {
        bottom: -50px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero__video-container::after {
        width: 50px;
        height: 50px;
    }
    
    .hero__video-container::before {
        font-size: 20px;
    }
    
    .video-modal__content {
        width: 95%;
        margin: 10px;
    }
}
