/* Video Archive CSS - Exact design match with screenshot */

/* Main wrapper - left aligned */
.video-archive-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Filter container styling - Text left, buttons right in columns, right aligned */
.video-archive-wrapper .video-filter-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: flex-end;
}

.video-archive-wrapper .filter-label {
    font-family: Inter;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 10%;
    text-align: center;
    text-transform: uppercase;
    color: #ed6b06;
    white-space: nowrap;
    margin-top: 8px;
}

.video-archive-wrapper .filter-buttons {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 3px;
    justify-content: flex-start;
}

.video-archive-wrapper .video-filter-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 18px;
    cursor: pointer;
    font-family: DM Sans;
    font-weight: 500;
    font-style: Medium;
    font-size: 18px;
    line-height: 140%;
    letter-spacing: 0%;
    text-align: center;
    color: #666;
    transition: all 0.2s ease;
    outline: none;
    text-decoration: none;
    display: inline-block;
}

.video-archive-wrapper .video-filter-btn:hover {
    background: #e6e6e6;
    border-color: #ccc;
    color: #333;
}

.video-archive-wrapper .video-filter-btn.active {
    background: linear-gradient(142.54deg, #FAB400 -16.64%, #ED6B06 90.45%);
    border-color: transparent;
    color: white;
    font-weight: 600;
}

/* Video grid container - 3 columns with fixed design specs, left aligned */
.video-archive-wrapper .video-archive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    width: 100%;
    justify-content: start;
    padding: 0;
    margin: 0;
}

/* Video item styling - exact match with design specs */
.video-archive-wrapper .video-item {
    position: relative;
    display: block; /* ensure anchors behave like blocks so overlay covers fully */
    width: min(583px, 100%);
    height: 472px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-archive-wrapper .video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Video overlay - updated gradient */
.video-archive-wrapper .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(202.98deg, rgba(0, 0, 0, 0) 36.77%, rgba(0, 0, 0, 0.6) 79.85%);
    padding: 20px;
}

/* Video content layout - play button center, text bottom left */
.video-archive-wrapper .video-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Play button - large white circle in absolute center */
.video-archive-wrapper .video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

.video-archive-wrapper .video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.video-archive-wrapper .play-icon {
    width: 80px;
    height: 80px;
    opacity: 0.95;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    transition: opacity 0.2s ease;
}

.video-archive-wrapper .video-item:hover .play-icon {
    opacity: 1;
}

/* Video info section - category and title positioned at bottom left */
.video-archive-wrapper .video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: left;
    width: 100%;
    padding: 20px;
}

/* Video category - exact design specifications */
.video-archive-wrapper .video-category {
    display: block;
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: none;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

/* Video title - exact design specifications */
.video-archive-wrapper .video-title {
    font-family: DM Sans;
    font-weight: 500;
    font-style: Medium;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: 0%;
    margin: 0;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 75%;
    /* voorkom afbreken binnen woorden */
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
}

/* Hidden state for filtering */
.video-archive-wrapper .video-item.hidden {
    display: none;
}

/* Filter animations */
.video-archive-wrapper .video-item.fade-out {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.video-archive-wrapper .video-item.fade-in {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* Loading state */
.video-archive-wrapper .video-archive-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* No results message */
.video-archive-wrapper .no-videos-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 16px;
    grid-column: 1 / -1;
}

/* Load more button styling */
.video-archive-wrapper .video-load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    width: 100%;
}

.video-archive-wrapper .video-load-more-btn {
    background: linear-gradient(142.54deg, #FAB400 -16.64%, #ED6B06 90.45%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-family: DM Sans;
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.video-archive-wrapper .video-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(237, 107, 6, 0.3);
}

.video-archive-wrapper .video-load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.video-archive-wrapper .video-load-more-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

/* Responsive design - maintain aspect ratio */
@media (max-width: 1400px) {
    .video-archive-wrapper .video-archive-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 16px;
    }
    
    .video-archive-wrapper .video-item {
        width: 100%;
        height: 324px; /* Maintain aspect ratio: 472/583 * 400 */
        border-radius: 20px;
    }
    
    .video-archive-wrapper .play-icon {
        width: 60px;
        height: 60px;
    }
    
    .video-archive-wrapper .video-title {
        font-family: DM Sans;
        font-weight: 500;
        font-size: 24px;
        line-height: 120%;
        letter-spacing: 0%;
        max-width: 70%;
        word-wrap: normal;
        overflow-wrap: normal;
        word-break: keep-all;
        hyphens: none;
    }
    
    .video-archive-wrapper .video-info {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .video-archive-wrapper {
        padding: 0 10px;
    }
    
    .video-archive-wrapper .video-archive-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .video-archive-wrapper .video-item {
        width: 100%;
        height: 405px; /* Maintain aspect ratio for mobile: 472/583 * 500 */
        border-radius: 18px;
    }
    
    .video-archive-wrapper .video-overlay {
        padding: 0;
    }
    
    .video-archive-wrapper .video-info {
        padding: 15px;
    }
    
    .video-archive-wrapper .play-icon {
        width: 50px;
        height: 50px;
    }
    
    .video-archive-wrapper .video-title {
        font-family: DM Sans;
        font-weight: 500;
        font-size: 20px;
        line-height: 120%;
        letter-spacing: 0%;
        max-width: 70%;
        word-wrap: normal;
        overflow-wrap: normal;
        word-break: keep-all;
        hyphens: none;
    }
    
    .video-archive-wrapper .video-category {
        font-family: Inter;
        font-weight: 400;
        font-size: 14px;
        line-height: 120%;
        letter-spacing: 0%;
        margin-bottom: 12px;
    }
    
    .video-archive-wrapper .video-filter-container {
        margin-bottom: 25px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .video-archive-wrapper .filter-label {
        margin-top: 0;
    }
    
    .video-archive-wrapper .video-filter-btn {
        font-family: DM Sans;
        font-weight: 500;
        font-size: 16px;
        line-height: 140%;
        letter-spacing: 0%;
        text-align: center;
        padding: 6px 14px;
    }
    
}

@media (max-width: 480px) {
    .video-archive-wrapper .video-item {
        width: 100%;
        height: 304px; /* Maintain aspect ratio for small mobile: 472/583 * 375 */
        border-radius: 16px;
    }
    
    .video-archive-wrapper .video-overlay {
        padding: 0;
    }
    
    .video-archive-wrapper .video-info {
        padding: 12px;
    }
    
    .video-archive-wrapper .play-icon {
        width: 40px;
        height: 40px;
    }
    
    .video-archive-wrapper .video-title {
        font-family: DM Sans;
        font-weight: 500;
        font-size: 16px;
        line-height: 120%;
        letter-spacing: 0%;
        max-width: 70%;
        word-wrap: normal;
        overflow-wrap: normal;
        word-break: keep-all;
        hyphens: none;
    }
    
    .video-archive-wrapper .video-category {
        font-family: Inter;
        font-weight: 400;
        font-size: 12px;
        line-height: 120%;
        letter-spacing: 0%;
        margin-bottom: 8px;
    }
    
    .video-archive-wrapper .video-filter-btn {
        font-family: DM Sans;
        font-weight: 500;
        font-size: 14px;
        line-height: 140%;
        letter-spacing: 0%;
        text-align: center;
        padding: 5px 12px;
    }
    
    .video-archive-wrapper .video-filter-container {
        gap: 6px;
    }
    
}

/* Video Lightbox styles */
.video-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-lightbox-overlay.active {
    opacity: 1;
}

.video-lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-lightbox-overlay.active .video-lightbox-container {
    transform: scale(1);
}

.video-lightbox-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-lightbox-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.video-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.video-lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-family: DM Sans;
}

body.video-lightbox-open {
    overflow: hidden;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .video-lightbox-container {
        max-width: 95vw;
        max-height: 70vh;
        aspect-ratio: 16/9;
    }
    
    .video-lightbox-close {
        top: -45px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .video-lightbox-overlay {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .video-lightbox-container {
        max-width: 98vw;
        max-height: 60vh;
    }
    
    .video-lightbox-close {
        top: -40px;
        right: 5px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}