/* Videos Page - extends blogs.css; video-specific overrides only */

/* Video cards: same layout as blog cards but thumbnail is clickable (no link) */
.video-card.blog-card {
    cursor: default;
    text-decoration: none;
    color: inherit;
}

.video-card.blog-card:hover {
    text-decoration: none;
    color: inherit;
}

/* Thumbnail wrapper: button reset + same visual as blog-card-image-wrapper */
.video-thumbnail-wrap {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font: inherit;
    color: inherit;
}

.video-thumbnail-wrap:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

.video-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.video-thumbnail-wrap:hover .video-thumbnail {
    transform: scale(1.02);
}

/* Play icon overlay - matches site colors (#1a1a1a) */
.video-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.video-play-icon .fa-play {
    margin-left: 4px;
}

.video-thumbnail-wrap:hover .video-play-icon {
    background: rgba(26, 26, 26, 0.95);
    transform: translate(-50%, -50%) scale(1.05);
}

/* Video modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.video-modal[hidden] {
    display: none;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.75);
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.75);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.video-modal-close:hover {
    background: rgba(26, 26, 26, 0.9);
}

.video-modal-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    color: #1a1a1a;
    margin: 0;
    padding: 16px 48px 0 16px;
}

.video-modal-player {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    background: #000;
    margin-top: 12px;
}
