/* ================================================================
   Marquis Masters Podcast — site.css (cleaned)
   ================================================================ */

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Variables ───────────────────────────────────────── */
:root {
    --navy: #0d1b2e;
    --navy-mid: #1a2e47;
    --navy-light: #243c5c;
    --gold: #c9a84c;
    --gold-light: #e2c97e;
    --cream: #f4f0e8;
    --cream-dark: #e8e2d6;
    --white: #ffffff;
    --text: #2c2c2c;
    --muted: #6b6b6b;
    --border: #d4cfc5;
    --error: #c0392b;
    --error-bg: #fdf0ee;
}

/* ── Base ────────────────────────────────────────────── */
body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--cream);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--gold-light);
}

/* ── Layout ──────────────────────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

/* ── Header ──────────────────────────────────────────── */
.main-header {
    background: var(--navy);
    color: var(--white);
    padding: 0;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--gold);
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo {
    width: 125px;
    height: 45px;
    object-fit: contain;
}

.brand-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.header-subtitle {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.youtube-button {
    font-family: 'Georgia', serif;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--navy);
    background: var(--gold);
    border: 1px solid var(--gold);
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s ease;
}

    .youtube-button:hover {
        background: var(--gold-light);
    }

/* ── Podcast Landing Hero ────────────────────────────── */
.podcast-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    border-bottom: 3px solid var(--gold);
}

.podcast-hero-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.podcast-hero-left {
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 1.5rem;
}

    .podcast-hero-left img {
        width: 100%;
        max-width: 320px;
        height: auto;
        display: block;
    }

.podcast-hero-right {
    flex: 1;
    padding: 2.5rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.podcast-eyebrow {
    font-family: 'Lato', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 12px;
}

.podcast-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--white);
    margin: 0 0 1rem;
}

.podcast-title-accent {
    color: var(--gold);
    font-style: italic;
    display: block;
}

.podcast-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

    .podcast-desc a {
        color: var(--gold-light);
        text-decoration: none;
    }

        .podcast-desc a:hover {
            color: var(--gold);
            text-decoration: underline;
        }

/* ── Platform Buttons ────────────────────────────────── */
.podcast-platforms {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.platform-label {
    font-family: 'Lato', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

    .platform-btn img {
        height: 36px;
        width: auto;
        max-width: 160px;
        display: block;
    }

    .platform-btn:hover img {
        transform: scale(1.08);
        opacity: 0.85;
    }

/* ── YouTube CTA Button ──────────────────────────────── */
.youtube-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff0000;
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 11px 22px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 8px;
    transition: background 0.2s ease;
}

    .youtube-cta-btn:hover {
        background: #cc0000;
        color: #ffffff;
    }

    .youtube-cta-btn .fa-youtube {
        font-size: 16px;
    }

/* ── Episode Grid ────────────────────────────────────── */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ── Episode Card ────────────────────────────────────── */
.episode-card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

    .episode-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
    }

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Used in Index (main grid) */
.episode-detail-image {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.episode-header-detail-image {
    width: 600px;
    height: 300px;
    object-position: center top;
    display: center;
}
/* Used in Episode.cshtml related grid */
.episode-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.episode-content {
    padding: 1.5rem;
}

.episode-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.6rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-divider {
    height: 2px;
    background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
    margin: 0.85rem 0;
}

.episode-description {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.episode-date {
    font-weight: 600;
    color: var(--text);
}

.episode-duration {
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    color: var(--muted);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    background: var(--navy);
    color: var(--white);
    border-radius: 4px;
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-align: center;
    transition: background 0.2s ease;
}

.card-link:hover .play-button {
    background: var(--navy-light);
}

/* ── Episode Detail Hero ─────────────────────────────── */
.episode-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    margin: 0 0 2.5rem 0;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--gold);
}

.episode-hero-content {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    background: none;
    padding: 0;
    border: none;
    cursor: pointer;
}

    .back-button:hover {
        color: var(--gold-light);
        transform: translateX(-4px);
    }

.episode-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.85rem;
    line-height: 1.2;
}

.episode-detail-meta {
    color: var(--gold);
    font-size: 0.875rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    letter-spacing: 0.04em;
}

/* ── Episode Detail Content ──────────────────────────── */
.episode-detail-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Audio Player ────────────────────────────────────── */
.detail-audio-player {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 1.5rem;
    border-top: 2px solid var(--gold);
}

    .detail-audio-player h3 {
        font-family: 'Lato', sans-serif;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--navy);
        margin-bottom: 14px;
    }

    .detail-audio-player audio {
        width: 100%;
        margin-top: 8px;
    }

/* ── Episode Description Full ────────────────────────── */
.episode-description-full {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

    .episode-description-full h2 {
        font-family: 'Lato', sans-serif;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--navy);
        padding: 14px 24px;
        border-bottom: 2px solid var(--gold);
        margin: 0;
    }

    .episode-description-full p {
        color: var(--text);
        line-height: 1.8;
        margin-bottom: 0.9rem;
        font-size: 1rem;
        padding: 0 24px;
    }

        .episode-description-full p:first-of-type {
            padding-top: 20px;
        }

        .episode-description-full p:last-of-type {
            padding-bottom: 20px;
            margin-bottom: 0;
        }

    .episode-description-full ul {
        margin: 0.75rem 0;
        padding: 0 24px 0 40px;
    }

    .episode-description-full li {
        margin-bottom: 6px;
        color: var(--text);
        line-height: 1.75;
        font-size: 0.95rem;
    }

        .episode-description-full li::marker {
            color: var(--gold);
        }

/* ── Related Episodes ────────────────────────────────── */
.related-episodes {
    margin: 3rem auto 0;
    max-width: 900px;
    padding: 0 2rem;
}

    .related-episodes h2 {
        font-family: 'Lato', sans-serif;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--navy);
        margin-bottom: 1.25rem;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--gold);
    }

.related-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

    .related-grid .episode-title {
        font-size: 1rem;
        -webkit-line-clamp: 2;
    }

    .related-grid .episode-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .related-grid .episode-content {
        padding: 1rem;
    }

    .related-grid .play-button {
        padding: 8px;
        font-size: 0.8rem;
    }

/* ── Back to All ─────────────────────────────────────── */
.back-to-all {
    text-align: center;
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.back-to-all-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: var(--white);
    padding: 11px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    transition: background 0.2s ease;
}

    .back-to-all-button:hover {
        background: var(--navy-light);
    }

/* ── Error / Empty State ─────────────────────────────── */
.error {
    background: var(--error-bg);
    color: var(--error);
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--error);
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    border-top: 2px solid var(--gold);
}

    .empty-state h3 {
        font-family: 'Playfair Display', serif;
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--navy);
        margin-bottom: 0.75rem;
    }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: 2.5rem 2rem 0;
    margin-top: 4rem;
    border-top: 3px solid var(--gold);
}

.footer-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-col h4 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-col p,
.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    line-height: 1.55;
    font-family: 'Georgia', serif;
}

    .footer-col a:hover {
        color: var(--gold);
    }

.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    text-align: center;
    padding: 16px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
    margin-top: 10px;
}

    .footer-bottom strong {
        color: rgba(201, 168, 76, 0.6);
    }

/* ── Animations ──────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive: Tablet (≤768px) ────────────────────── */
@media (max-width: 768px) {

    .container {
        padding: 1.25rem 1rem 3rem;
    }

    /* Header */
    .header-content {
        padding: 14px 1rem;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-text h1 {
        font-size: 1.2rem;
    }

    .header-subtitle {
        display: none;
    }

    .nav-link {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    .youtube-button {
        padding: 7px 12px;
        font-size: 0.75rem;
    }

    /* Podcast hero */
    .podcast-hero-inner {
        flex-direction: column;
    }

    .podcast-hero-left {
        flex: none;
        width: 100%;
    }

    .podcast-hero-right {
        padding: 1.5rem;
    }

    .podcast-title {
        font-size: 1.7rem;
    }

    .podcast-desc {
        font-size: 0.9rem;
    }

    /* Episode grid */
    .episodes-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Episode detail */
    .episode-hero {
        padding: 1.5rem 1rem;
    }

    .episode-detail-title {
        font-size: 1.5rem;
    }

    .episode-detail-meta {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .episode-detail-content {
        padding: 0 1rem;
    }

    .episode-description-full h2 {
        padding: 12px 16px;
    }

    .episode-description-full p {
        padding: 0 16px;
        font-size: 0.95rem;
    }

    .episode-description-full ul {
        padding: 0 16px 0 32px;
    }

    .detail-audio-player {
        padding: 16px;
    }

    /* Related grid */
    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-episodes {
        padding: 0 1rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .site-footer {
        padding: 2rem 1rem 0;
    }
}

/* ── Responsive: Mobile (≤480px) ────────────────────── */
@media (max-width: 480px) {

    /* Header */
    .nav-link {
        display: none;
    }

    .header-content {
        gap: 8px;
    }

    /* Podcast hero */
    .podcast-title {
        font-size: 1.4rem;
    }

    .podcast-platforms {
        gap: 8px;
    }

    .platform-btn img {
        height: 28px;
    }

    .youtube-cta-btn {
        width: 100%;
        justify-content: center;
    }

    /* Episode cards */
    .episode-content {
        padding: 1rem;
    }

    .episode-title {
        font-size: 1rem;
    }

    .play-button {
        padding: 12px;
        min-height: 44px;
    }

    /* Episode detail */
    .episode-hero {
        padding: 1.25rem 1rem;
    }

    .episode-detail-title {
        font-size: 1.3rem;
    }

    .back-button {
        font-size: 0.8rem;
    }

    .episode-description-full p {
        font-size: 0.9rem;
        padding: 0 12px;
    }

    .episode-description-full h2 {
        padding: 10px 12px;
    }

    .episode-description-full ul {
        padding: 0 12px 0 28px;
    }

    .detail-audio-player {
        padding: 12px;
    }

        .detail-audio-player audio {
            min-height: 44px;
        }

    /* Back to all */
    .back-to-all-button {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-logo img {
        height: 36px;
    }

    .footer-bottom {
        font-size: 10px;
        padding: 12px;
    }
}