/**
 * LVDD Episode Single - Modern Design
 * Inspiré des designs de podcasts professionnels
 * 
 * @package LVDD_Programs
 * @since 2.3.0
 */

/* ========== VARIABLES ========== */
:root {
    --lvdd-episode-primary: #1a1a1a;
    --lvdd-episode-accent: #8B2635;
    --lvdd-episode-text: #333;
    --lvdd-episode-text-light: #666;
    --lvdd-episode-bg: #fff;
    --lvdd-episode-bg-alt: #f8f9fa;
    --lvdd-episode-border: #e5e5e5;
}

/* ========== RESET POUR LE TEMPLATE ========== */
.lvdd-episode-single {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--lvdd-episode-text);
}

.lvdd-episode-single * {
    box-sizing: border-box;
}

/* ========== HERO SECTION ========== */
.lvdd-episode-hero {
    background: var(--lvdd-episode-primary);
    color: #fff;
    padding: 60px 20px 80px;
}

.lvdd-episode-hero__container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: center;
}

.lvdd-episode-hero__content {
    order: 1;
}

.lvdd-episode-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #fff;
}

.lvdd-episode-hero__number {
    color: rgba(255, 255, 255, 0.7);
}

.lvdd-episode-hero__excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 30px 0;
    max-width: 600px;
}

/* Hero Player */
.lvdd-episode-hero__player {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 20px 10px 10px;
}

.lvdd-episode-hero__play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.lvdd-episode-hero__play-btn:hover {
    transform: scale(1.05);
}

.lvdd-episode-hero__play-btn svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    fill: #1a1a1a !important;
    color: #1a1a1a !important;
    margin-left: 2px;
    display: block !important;
    flex-shrink: 0;
}

.lvdd-episode-hero__play-btn svg path {
    fill: #1a1a1a !important;
}

.lvdd-episode-hero__progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lvdd-episode-hero__time {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.lvdd-episode-hero__progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    min-width: 100px;
}

.lvdd-episode-hero__progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #fff;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.lvdd-episode-hero__volume-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.lvdd-episode-hero__volume-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.lvdd-episode-hero__volume-btn svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    fill: rgba(255, 255, 255, 0.7) !important;
    display: block !important;
}

.lvdd-episode-hero__volume-btn svg path {
    fill: rgba(255, 255, 255, 0.7) !important;
}

/* Hero Cover */
.lvdd-episode-hero__cover {
    order: 2;
    position: relative;
}

.lvdd-episode-hero__image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: block;
}

.lvdd-episode-hero__cover-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.lvdd-episode-hero__cover:hover .lvdd-episode-hero__cover-play {
    opacity: 1;
}

.lvdd-episode-hero__cover-play:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translate(-50%, -50%) scale(1.1);
}

.lvdd-episode-hero__cover-play svg {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px;
    min-height: 30px;
    fill: #fff !important;
    color: #fff !important;
    margin-left: 4px;
    display: block !important;
}

.lvdd-episode-hero__cover-play svg path {
    fill: #fff !important;
}

/* ========== NAVIGATION BAR ========== */
.lvdd-episode-nav {
    background: var(--lvdd-episode-bg-alt);
    border-bottom: 1px solid var(--lvdd-episode-border);
    padding: 15px 20px;
}

.lvdd-episode-nav__container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.lvdd-episode-nav__back {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--lvdd-episode-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

.lvdd-episode-nav__back:hover {
    color: var(--lvdd-episode-accent);
}

.lvdd-episode-nav__back svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    display: block;
}

.lvdd-episode-nav__host {
    color: var(--lvdd-episode-text-light);
    font-size: 14px;
}

/* ========== CONTENU PRINCIPAL ========== */
.lvdd-episode-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.lvdd-episode-section {
    margin-bottom: 50px;
}

.lvdd-episode-section__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--lvdd-episode-text);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--lvdd-episode-border);
}

.lvdd-episode-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--lvdd-episode-text);
}

.lvdd-episode-description p {
    margin: 0 0 1.5em 0;
}

.lvdd-episode-description a {
    color: var(--lvdd-episode-accent);
    text-decoration: underline;
}

.lvdd-episode-transcript__content {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--lvdd-episode-text-light);
    background: var(--lvdd-episode-bg-alt);
    padding: 30px;
    border-radius: 8px;
    max-height: 500px;
    overflow-y: auto;
}

/* ========== LISTE D'ÉPISODES ========== */
.lvdd-episodes-list {
    background: var(--lvdd-episode-bg);
    padding: 60px 20px 80px;
    border-top: 1px solid var(--lvdd-episode-border);
}

.lvdd-episodes-list__container {
    max-width: 900px;
    margin: 0 auto;
}

/* Episode Card */
.lvdd-episode-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    padding: 40px 0;
    border-bottom: 1px solid var(--lvdd-episode-border);
}

.lvdd-episode-card:first-child {
    padding-top: 0;
}

.lvdd-episode-card__image {
    position: relative;
}

.lvdd-episode-card__img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.lvdd-episode-card__placeholder {
    width: 100%;
    height: 150px;
    background: var(--lvdd-episode-bg-alt);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lvdd-episode-text-light);
}

.lvdd-episode-card__placeholder svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
    display: block;
}

.lvdd-episode-card__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.lvdd-episode-card__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--lvdd-episode-text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.lvdd-episode-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.lvdd-episode-card__title a {
    color: var(--lvdd-episode-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lvdd-episode-card__title a:hover {
    color: var(--lvdd-episode-accent);
}

.lvdd-episode-card__number {
    color: var(--lvdd-episode-text-light);
}

/* Card Mini Player */
.lvdd-episode-card__player {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.lvdd-episode-card__play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lvdd-episode-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.lvdd-episode-card__play:hover {
    background: var(--lvdd-episode-accent);
    transform: scale(1.05);
}

.lvdd-episode-card__play svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px;
    min-height: 14px;
    fill: #fff !important;
    color: #fff !important;
    margin-left: 2px;
    display: block !important;
}

.lvdd-episode-card__play svg path {
    fill: #fff !important;
}

.lvdd-episode-card__time {
    font-size: 12px;
    color: var(--lvdd-episode-text-light);
    font-variant-numeric: tabular-nums;
}

.lvdd-episode-card__progress {
    flex: 1;
    height: 3px;
    background: var(--lvdd-episode-border);
    border-radius: 2px;
    max-width: 150px;
}

.lvdd-episode-card__volume {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lvdd-episode-text-light);
    transition: all 0.2s ease;
}

.lvdd-episode-card__volume svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    fill: #666 !important;
    display: block !important;
}

.lvdd-episode-card__volume svg path {
    fill: #666 !important;
}

.lvdd-episode-card__volume:hover {
    color: var(--lvdd-episode-text);
    background: var(--lvdd-episode-bg-alt);
}

.lvdd-episode-card__excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--lvdd-episode-text-light);
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lvdd-episode-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lvdd-episode-accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.lvdd-episode-card__link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Load More Button */
.lvdd-episodes-list__more {
    text-align: center;
    margin-top: 50px;
}

.lvdd-episodes-list__btn {
    display: inline-block;
    background: var(--lvdd-episode-primary);
    color: #fff;
    padding: 16px 50px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lvdd-episodes-list__btn:hover {
    background: var(--lvdd-episode-accent);
    color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .lvdd-episode-hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .lvdd-episode-hero__content {
        order: 2;
    }
    
    .lvdd-episode-hero__cover {
        order: 1;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .lvdd-episode-hero__title {
        font-size: 2rem;
        text-align: center;
    }
    
    .lvdd-episode-hero__excerpt {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .lvdd-episode-hero__player {
        justify-content: center;
    }
}

@media (max-width: 700px) {
    .lvdd-episode-hero {
        padding: 40px 20px 60px;
    }
    
    .lvdd-episode-hero__title {
        font-size: 1.6rem;
    }
    
    .lvdd-episode-hero__player {
        flex-wrap: wrap;
        border-radius: 12px;
        padding: 15px;
    }
    
    .lvdd-episode-hero__progress {
        width: 100%;
        order: 2;
    }
    
    .lvdd-episode-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lvdd-episode-card__image {
        max-width: 200px;
    }
    
    .lvdd-episode-nav__container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .lvdd-episode-hero__title {
        font-size: 1.4rem;
    }
    
    .lvdd-episode-hero__cover {
        max-width: 220px;
    }
    
    .lvdd-episode-content {
        padding: 40px 15px;
    }
    
    .lvdd-episodes-list {
        padding: 40px 15px 60px;
    }
    
    .lvdd-episode-card__title {
        font-size: 1.1rem;
    }
}
