/**
 * Latest Podcasts Block — styles for frontend and editor.
 */

/* ── Block wrapper ── */
.wp-block-latest-podcasts {
    padding: 48px 60px 60px;
}

/* ── Header ── */
.latest-podcasts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.latest-podcasts-heading {
    font-family: var(--font-family-heading, 'Graphik XXCond Web', sans-serif);
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    margin: 0;
    text-transform: none;
    opacity: 0.9;
}

.latest-podcasts-heading span {
    color: #0373f3;
}

.latest-podcasts-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #151515;
    color: #fff;
    border: 2px solid #151515;
    border-radius: 500px;
    padding: 14.5px 27px;
    font-family: var(--font-family-body, 'Graphik Web', sans-serif);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
    flex-shrink: 0;
}

.latest-podcasts-all-btn:hover {
    background-color: transparent;
    color: #151515;
}

/* ── Splide overrides ── */
.wp-block-latest-podcasts .splide__track {
    padding-bottom: 0;
}

/* ── 2×2 Grid ── */
.latest-podcasts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 600px) {
    .latest-podcasts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Podcast Card ── */
.podcast-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    transition: opacity 0.2s;
}

.podcast-card:hover {
    opacity: 0.92;
}

/* Image */
.podcast-card-image {
    flex: 0 0 auto;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.podcast-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: scale(1.4);
}

/* Content area — dark bg */
.podcast-card-content {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    padding: 30px;
    background-color: #151515;
    color: #fff;
    min-height: auto;
}

/* Large desktop: horizontal cards */
@media (min-width: 1200px) {
    .podcast-card {
        flex-direction: row;
    }

    .podcast-card-image {
        flex: 0 0 254px;
        width: 254px;
        height: 100%;
    }

    .podcast-card-content {
        min-height: 254px;
    }
}

/* Meta row: series name + episode tag */
.podcast-card-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.podcast-card-series {
    font-family: var(--font-family-body, 'Graphik Web', sans-serif);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: #fff;
}

.podcast-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px 5px;
    background-color: #a4ee90;
    border-radius: 3px;
    font-family: var(--font-family-body, 'Graphik Web', sans-serif);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.96px;
    color: #000;
    line-height: 1;
}

/* Title */
.podcast-card-title {
    font-family: var(--font-family-heading, 'Graphik XXCond Web', sans-serif);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.36px;
    color: #fff;
    margin: 0;
    text-transform: none;
    padding: 0;
}

/* PLAY button */
.podcast-card-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14.5px 24px;
    background-color: #fff;
    border: 2px solid #fff;
    border-radius: 500px;
    font-family: var(--font-family-body, 'Graphik Web', sans-serif);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    color: #151515;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    align-self: flex-start;
}

.podcast-card:hover .podcast-card-play-btn,
.podcast-card-play-btn:hover {
    background-color: #a4ee90;
    border-color: #a4ee90;
    color: #151515;
}

/* ── Footer ── */
.latest-podcasts-footer {
    position: relative;
    margin-top: 24px;
}

.latest-podcasts-divider {
    border: none;
    border-top: 1px solid #151515;
    margin: 0;
    opacity: 0.2;
}

.latest-podcasts-nav {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 14px;
}

.latest-podcasts-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 500px;
    border: 2px solid #151515;
    background-color: transparent;
    color: #151515;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
    flex-shrink: 0;
    opacity: 1;
}

.latest-podcasts-nav-btn--next {
    background-color: #0373f3;
    border-color: #0373f3;
    color: #fff;
    opacity: 1;
}

.latest-podcasts-nav-btn:not(:disabled):hover {
    background-color: #151515;
    border-color: #151515;
    color: #fff;
}

.latest-podcasts-nav-btn--next:not(:disabled):hover {
    background-color: #0252b0;
    border-color: #0252b0;
}

/* ── Responsive ── */

/* Mobile: 1-col grid, horizontal cards (image left) */
@media (max-width: 599px) {
    .wp-block-latest-podcasts {
        padding: 32px 20px 40px;
    }

    .latest-podcasts-heading {
        font-size: 40px;
    }

    .latest-podcasts-all-btn {
        display: none;
    }

    .podcast-card {
        flex-direction: row;
    }

    .podcast-card-image {
        flex: 0 0 120px;
        width: 120px;
        height: 100%;
    }

    .podcast-card-content {
        min-height: 120px;
        padding: 16px;
        gap: 10px;
    }

    .podcast-card-title {
        font-size: 20px;
    }

    .podcast-card-play-btn {
        padding: 10px 18px;
        font-size: 12px;
    }
}

