/**
 * Podcast Archive Grid Widget Styles
 */

/* ── Grid ─────────────────────────────────────────────────────────── */

.pac-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}


/* ── Card ─────────────────────────────────────────────────────────── */

.pac-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    max-width: 320px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--Neutral-Grey-200, #C3C3C3);
    box-shadow: 0px 4px 4px 0px #00000040;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    gap: 16px;
    opacity: 1;
}

.pac-card--live {
    cursor: pointer;
}

.pac-card--placeholder {
    cursor: default;
}

/* ── Image ────────────────────────────────────────────────────────── */

.pac-card__image-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 default */
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.pac-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Hover overlay */
.pac-card__image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pac-card:hover .pac-card__image-wrap::after {
    opacity: 1;
}

.pac-card--live:hover .pac-card__image {
    transform: scale(1.03);
}

/* ── Body ─────────────────────────────────────────────────────────── */

.pac-card__body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ── Tag ──────────────────────────────────────────────────────────── */

.pac-card__tag {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #402CA5;
    margin-bottom: 16px; /* 16px gap between tag and title */
}

/* ── Title ────────────────────────────────────────────────────────── */

.pac-card__title {
    margin: 0 0 16px; /* 16px gap between title and description */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 28px;
    letter-spacing: 0;
    color: #1a1a2e;
}

/* ── Description ──────────────────────────────────────────────────── */

.pac-card__description {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    color: #4a4a5a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
