/**
 * Featured Videos Section Styles
 *
 * Responsive grid of video thumbnails with play button overlays.
 * Play buttons trigger the video modal via [data-video-trigger].
 *
 * Original: scss/blocks/_featured-videos.scss
 *
 * @package Condor
 */

/* ==========================================================================
   Section Container
   ========================================================================== */

.featured-videos {
    @media (min-width: 1024px) {
        padding-top: var(--wp--preset--spacing--80);
        padding-bottom: var(--wp--preset--spacing--80);
    }
}

/* ==========================================================================
   Section Header (Eyebrow + Heading + Accent Bar)
   Matches news-cards pattern: eyebrow → heading → red bar via ::after
   ========================================================================== */

.featured-videos__header {
    margin-bottom: var(--wp--preset--spacing--50);
}

.featured-videos__eyebrow {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wp--preset--color--bright-red);
    margin: 0;
}

.featured-videos .featured-videos__header .wp-block-heading {
    font-family: var(--wp--preset--font-family--heading-condensed);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.featured-videos .featured-videos__header .wp-block-heading::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--wp--preset--color--red);
    margin-top: var(--wp--preset--spacing--30);
}

/* ==========================================================================
   Video Grid — wp:post-template with grid layout
   WP generates .wp-block-post-template.is-layout-grid with columnCount.
   We override its gap and add responsive column shifts.
   ========================================================================== */

.featured-videos .wp-block-post-template {
    gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);

    @media (max-width: 567px) {
        grid-template-columns: 1fr;
    }

    @media (min-width: 568px) and (max-width: 767px) {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   Video Card
   ========================================================================== */

.video-card {
    cursor: pointer;

    /* Thumbnail wrapper — positioning context for play button */
    .video-card__thumbnail {
        position: relative;
        margin: 0;
        border-radius: 3px;
        overflow: hidden;

        img {
            width: 100%;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
        }
    }

    /* Play button overlay — covers entire thumbnail */
    .play-button {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 5;
        border-radius: 3px;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    /* Card title */
    .video-card__title {
        padding-top: var(--wp--preset--spacing--20);
        font-weight: 700;
        font-size: 0.875rem;
        color: var(--wp--preset--color--blue);
        transition: color 0.2s ease;

        @media (min-width: 1024px) {
            font-size: 1rem;
        }
    }

    /* Hover state: zoom thumbnail, shift title color */
    &:hover {
        .video-card__thumbnail img {
            transform: scale(1.05);
        }

        .video-card__title {
            color: var(--wp--preset--color--bright-red);
        }
    }
}
