/* Blog Videos Section Styles */

.blog-videos {
    background: var(--background-color);
    padding: 80px 0;
}

.videos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-card__thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
}

.video-card__thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 24px;
    color: white;
    z-index: 2;
}

.video-card:hover .video-card__play-btn {
    background: var(--primary-dark);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card__content {
    padding: 20px;
}

.video-card__title {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.video-card__description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Video Popup */
.video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: auto;
}

.video-popup.active {
    display: flex;
}

.video-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-popup__content {
    position: relative;
    z-index: 3001;
    width: 100%;
    max-width: 1200px;
    min-height: 400px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
}

.video-popup__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 3002;
}

.video-popup__close:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .videos__grid {
        grid-template-columns: 1fr;
    }

    .video-popup__close {
        top: 10px;
        right: 10px;
    }

    .video-popup__content {
        aspect-ratio: auto;
        max-height: 70vh;
    }
}
