/* Video Popup Styles */

.video-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.video-popup-content {
    position: relative;
    width: 180px;
    height: 180px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

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

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

.video-preview-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(100, 151, 49, 0.9);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding-left: 4px;
}

.video-play-btn:hover {
    background: rgba(100, 151, 49, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn i {
    margin-left: 2px;
}

/* Video Modal Styles */

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.show {
    opacity: 1;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.video-modal.show .video-modal-content {
    transform: scale(1);
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #649731;
    border-bottom: 2px solid #5a8629;
}

.video-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.video-modal-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    transform: scale(1.1);
}

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

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

/* Responsive Styles */

@media (max-width: 768px) {
    .video-popup {
        bottom: 15px;
        right: 15px;
    }

    .video-popup-content {
        width: 120px;
        height: 120px;
    }

    .video-play-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .video-modal-content {
        width: 95%;
    }

    .video-modal-header {
        padding: 15px 20px;
    }

    .video-modal-title {
        font-size: 20px;
    }

    .video-modal-close {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .video-popup-content {
        width: 100px;
        height: 100px;
    }

    .video-popup-close {
        width: 28px;
        height: 28px;
        font-size: 14px;
        top: 6px;
        right: 6px;
    }

    .video-play-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .video-modal-header {
        padding: 12px 15px;
    }

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

    .video-modal-close {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}
