/* MSV Podcast Hub - Front-end Styles */
/* Version: 2.0.0 */

/* ============================================
   HIDE ASTRA THEME HEADER/NAV/FOOTER
   ============================================ */
body.msv-podcast-hub-page .ast-above-header,
body.msv-podcast-hub-page .ast-below-header,
body.msv-podcast-hub-page .ast-main-header-wrap,
body.msv-podcast-hub-page .site-header,
body.msv-podcast-hub-page #masthead,
body.msv-podcast-hub-page .ast-primary-header,
body.msv-podcast-hub-page .ast-mobile-header-wrap,
body.msv-podcast-hub-page .main-header-bar,
body.msv-podcast-hub-page .ast-header-break-point,
body.msv-podcast-hub-page .site-footer,
body.msv-podcast-hub-page .ast-footer-overlay,
body.msv-podcast-hub-page .ast-small-footer,
body.msv-podcast-hub-page #colophon,
body.msv-podcast-hub-page footer.site-footer {
    display: none !important;
}

/* Remove ALL padding/margin from Astra containers */
body.msv-podcast-hub-page,
body.msv-podcast-hub-page #page,
body.msv-podcast-hub-page #content,
body.msv-podcast-hub-page .site-content,
body.msv-podcast-hub-page .ast-container,
body.msv-podcast-hub-page .site-main,
body.msv-podcast-hub-page .entry-content,
body.msv-podcast-hub-page article,
body.msv-podcast-hub-page .ast-article-single,
body.msv-podcast-hub-page .ast-separate-container .ast-article-single,
body.msv-podcast-hub-page .ast-separate-container .ast-article-post,
body.msv-podcast-hub-page .ast-plain-container,
body.msv-podcast-hub-page .post-content,
body.msv-podcast-hub-page .page-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

body.msv-podcast-hub-page .ast-separate-container .ast-article-single,
body.msv-podcast-hub-page .ast-separate-container #primary {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ============================================
   CSS Variables (MSV Brand Colors)
   ============================================ */
:root {
    --msv-mint-green: #6fcf8a;
    --msv-ocean-blue: #7ec8e8;
    --msv-light-blue: #a8e4f9;
    --msv-dark: #1a1a1a;
    --msv-dark-alt: #2a2a2a;
    --msv-primary: #002855;
    --msv-secondary: #C8102E;
    --msv-gold: #FFB81C;
    --msv-light: #F4F6F8;
    --msv-text: #2D3748;
    --msv-text-light: #718096;
    --msv-border: #E2E8F0;
    --msv-white: #FFFFFF;
    --msv-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --msv-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --msv-radius: 8px;
    --msv-radius-lg: 12px;
    --msv-transition: all 0.2s ease;
}

/* ── Base - Full Bleed ── */
.msv-hub {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--msv-text);
    line-height: 1.6;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
    background: var(--msv-light);
}

.msv-hub__content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* ── Header - Dark with Mint Accent ── */
.msv-hub__header {
    background: linear-gradient(135deg, var(--msv-dark) 0%, var(--msv-dark-alt) 100%);
    color: #fff !important;
    padding: 32px 24px;
    text-align: center;
    border-bottom: 4px solid var(--msv-mint-green);
}

.msv-hub__header-inner {
    max-width: 800px;
    margin: 0 auto;
}

.msv-podcast-hub__header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    background: rgba(111, 207, 138, 0.2);
    border-radius: 14px;
    margin-bottom: 12px;
    color: var(--msv-mint-green);
}

.msv-hub__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    color: #fff !important;
}

.msv-hub__subtitle {
    margin: 0;
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .msv-hub__header { padding: 40px 24px; }
    .msv-hub__title { font-size: 2rem; }
}

/* ── Empty state ── */
.msv-podcast-hub__empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--msv-text-light);
    background: var(--msv-white);
    border-radius: var(--msv-radius-lg);
    border: 1px solid var(--msv-border);
}

/* ── Grid ── */
.msv-podcast-hub__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 540px) {
    .msv-podcast-hub__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .msv-podcast-hub__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Podcast Card ── */
.msv-podcast-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--msv-white);
    border-radius: var(--msv-radius-lg);
    box-shadow: var(--msv-shadow);
    border: 1px solid var(--msv-border);
    text-decoration: none;
    color: inherit;
    transition: var(--msv-transition);
    opacity: 0;
    animation: msv-pod-in 0.35s ease forwards;
}
.msv-podcast-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--msv-shadow-lg);
}

@keyframes msv-pod-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Icon wrapper — holds either logo img or fallback platform icon ── */
.msv-podcast-card__icon-wrap {
    flex-shrink: 0;
    width: 52px; height: 52px;
}

/* Logo image */
.msv-podcast-card__logo {
    width: 52px; height: 52px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Fallback platform icon circle */
.msv-podcast-card__platform-icon {
    width: 52px; height: 52px;
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.msv-podcast-card__platform-icon svg { width: 24px; height: 24px; }

/* Color variants — platform icon background (fallback when no logo) */
.msv-podcast-card--blue   .msv-podcast-card__platform-icon { background: linear-gradient(135deg,#3182CE,#2B6CB0); }
.msv-podcast-card--green  .msv-podcast-card__platform-icon { background: linear-gradient(135deg,#48BB78,#2F855A); }
.msv-podcast-card--purple .msv-podcast-card__platform-icon { background: linear-gradient(135deg,#9F7AEA,#6B46C1); }
.msv-podcast-card--red    .msv-podcast-card__platform-icon { background: linear-gradient(135deg,#FC8181,#C53030); }
.msv-podcast-card--gold   .msv-podcast-card__platform-icon { background: linear-gradient(135deg,#F6AD55,#DD6B20); }
.msv-podcast-card--teal   .msv-podcast-card__platform-icon { background: linear-gradient(135deg,#38B2AC,#285E61); }
.msv-podcast-card--orange .msv-podcast-card__platform-icon { background: linear-gradient(135deg,#ED8936,#C05621); }
.msv-podcast-card--navy   .msv-podcast-card__platform-icon { background: linear-gradient(135deg,#002855,#1A1A2E); }
.msv-podcast-card--pink   .msv-podcast-card__platform-icon { background: linear-gradient(135deg,#ED64A6,#B83280); }
.msv-podcast-card--cyan   .msv-podcast-card__platform-icon { background: linear-gradient(135deg,#22D3EE,#0891B2); }

/* Color variants — listen button icon tint (visible even when logo is present) */
.msv-podcast-card--blue   .msv-podcast-card__listen-btn svg { color: #3182CE; }
.msv-podcast-card--green  .msv-podcast-card__listen-btn svg { color: #38A169; }
.msv-podcast-card--purple .msv-podcast-card__listen-btn svg { color: #805AD5; }
.msv-podcast-card--red    .msv-podcast-card__listen-btn svg { color: #E53E3E; }
.msv-podcast-card--gold   .msv-podcast-card__listen-btn svg { color: #DD6B20; }
.msv-podcast-card--teal   .msv-podcast-card__listen-btn svg { color: #2C7A7B; }
.msv-podcast-card--orange .msv-podcast-card__listen-btn svg { color: #C05621; }
.msv-podcast-card--navy   .msv-podcast-card__listen-btn svg { color: #002855; }
.msv-podcast-card--pink   .msv-podcast-card__listen-btn svg { color: #B83280; }
.msv-podcast-card--cyan   .msv-podcast-card__listen-btn svg { color: #0891B2; }

/* Color variants — latest episode label accent */
.msv-podcast-card--blue   .msv-podcast-card__latest-label { color: #3182CE; }
.msv-podcast-card--green  .msv-podcast-card__latest-label { color: #38A169; }
.msv-podcast-card--purple .msv-podcast-card__latest-label { color: #805AD5; }
.msv-podcast-card--red    .msv-podcast-card__latest-label { color: #E53E3E; }
.msv-podcast-card--gold   .msv-podcast-card__latest-label { color: #DD6B20; }
.msv-podcast-card--teal   .msv-podcast-card__latest-label { color: #2C7A7B; }
.msv-podcast-card--orange .msv-podcast-card__latest-label { color: #C05621; }
.msv-podcast-card--navy   .msv-podcast-card__latest-label { color: #002855; }
.msv-podcast-card--pink   .msv-podcast-card__latest-label { color: #B83280; }
.msv-podcast-card--cyan   .msv-podcast-card__latest-label { color: #0891B2; }

/* ── Card body ── */
.msv-podcast-card__body { flex: 1; min-width: 0; }

.msv-podcast-card__name {
    font-weight: 700;
    font-size: 0.975rem;
    color: var(--msv-dark);
    line-height: 1.3;
    margin-bottom: 3px;
}
.msv-podcast-card__host {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--msv-text-light);
    margin-bottom: 6px;
}
.msv-podcast-card__host svg {
    flex-shrink: 0;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.msv-podcast-card__desc {
    font-size: 0.82rem;
    color: var(--msv-text-light);
    line-height: 1.4;
}

/* ── Dynamic / latest episode ── */
.msv-podcast-card__latest {
    background: var(--msv-light);
    border-radius: var(--msv-radius);
    padding: 7px 10px;
    margin-top: 4px;
}
.msv-podcast-card__latest-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--msv-text-light);
    margin-bottom: 2px;
}
.msv-podcast-card__latest-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--msv-dark);
    line-height: 1.35;
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.msv-podcast-card__latest-date {
    font-size: 0.72rem;
    color: var(--msv-text-light);
    margin-top: 3px;
}

/* ── Listen button + arrow ── */
.msv-podcast-card__listen {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
}
.msv-podcast-card__listen-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--msv-text-light);
}
.msv-podcast-card__listen-btn svg {
    width: 18px; height: 18px;
}
.msv-podcast-card__arrow {
    color: var(--msv-text-light);
    opacity: 0.4;
    transition: var(--msv-transition);
    display: block;
}
.msv-podcast-card:hover .msv-podcast-card__arrow {
    opacity: 1;
    transform: translateX(3px);
    color: var(--msv-primary);
}

/* ── Card icon size fix (legacy) ── */
.msv-podcast-card__platform-icon svg { width: 26px; height: 26px; }

/* ── Click count badge ── */
.msv-podcast-card__click-count {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--msv-text-light);
    background: var(--msv-light);
    border: 1px solid var(--msv-border);
    border-radius: 20px;
    padding: 1px 5px;
    min-width: 18px;
    text-align: center;
    line-height: 1.6;
}

/* ── Pin star badge ── */
.msv-podcast-card__pin-badge {
    color: var(--msv-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Pinned card subtle indicator ── */
.msv-podcast-card--pinned {
    border-color: #FDE68A;
}
