/**
 * YouTube Popup Styles
 * 
 * @package KTI
 * @version 1.0.0
 */

/* Reviews Grid Styling */
.reviews-overzicht {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 40px 0;
}


/* Popup Overlay */
.youtube-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
}

.youtube-popup-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.youtube-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.youtube-popup-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.youtube-popup-overlay.active .youtube-popup-container {
    transform: scale(1);
}

/* Close Button */
.youtube-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Popup Content */
.youtube-popup-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Ensure scrolling always works - fallback for when popup doesn't close properly */
body {
    overflow: auto !important;
}

body.youtube-popup-open {
    overflow: hidden !important;
}

/* YouTube Iframe Container */
#youtube-popup-iframe-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

#youtube-popup-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-overzicht {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    
    .youtube-popup-container {
        width: 95vw;
        max-height: 80vh;
    }
    
    .youtube-popup-close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .reviews-overzicht {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .youtube-popup-container {
        width: 100vw;
        height: 70vh;
        border-radius: 0;
    }
    
    .youtube-popup-overlay {
        padding: 0;
    }
    
    .youtube-popup-close {
        top: 10px;
        right: 10px;
    }
}

/* Loading State */
.youtube-popup-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    z-index: 5;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .youtube-popup-overlay,
    .youtube-popup-container,
    .youtube-popup-close {
        transition: none;
    }
}

/* Focus styles for keyboard navigation */
.youtube-popup-close:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
} 