/**
 * Vimeo Popup CSS - Egyszerű kép gomb
 */

.vimeo-popup-wrapper {
    display: inline-block;
}

/* Kép gomb */
.vimeo-popup-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    transition: all 0.3s ease;
    outline: none;
}

button.vimeo-popup-btn:hover {
        background: rgba(255, 0, 0, 0);
               background-color: rgba(255, 0, 0, 0);
}

.hero-vido {
    width: 100%;
    height: 750px;
    background-image: url(https://ht.anyhub.hu/wp-content/uploads/2025/08/videobg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vimeo-popup-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.vimeo-popup-btn:active {
    transform: scale(0.98);
}

.vimeo-popup-btn img {
    display: block;
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

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

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.popup-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bezárás gomb */
.popup-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #ff0000;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .hero-vido {
        width: 100%;
        height: 350px;
        background-image: url(https://ht.anyhub.hu/wp-content/uploads/2025/06/video.png);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .popup-content {
        width: 95%;
        margin: 20px;
    }
    
    .popup-close {
        top: -35px;
        font-size: 25px;
    }
    
    .vimeo-popup-btn {
        padding: 15px 25px;
        font-size: 14px;
        gap: 12px;
    }
    
    .play-icon {
        width: 50px;
        height: 50px;
    }
    
    .play-icon svg {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .vimeo-popup-btn {
        padding: 12px 20px;
        font-size: 13px;
        gap: 10px;
    }
    
    .play-icon {
        width: 40px;
        height: 40px;
    }
    
    .play-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .popup-content {
        width: 98%;
        margin: 10px;
    }
}