/**
 * LVDD Radio Complete - Podcasts & Episodes Styles
 * Design moderne et cohérent avec le player sticky
 */

/* ========================================
   PODCASTS - STYLES GÉNÉRAUX
   ======================================== */

/* Container principal */
.lvdd-podcasts-container {
    margin: 40px 0;
}

/* Card podcast */
.lvdd-podcast-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lvdd-podcast-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
}

/* Cover du podcast */
.lvdd-podcast-cover {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Ratio 1:1 */
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.lvdd-podcast-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lvdd-podcast-card:hover .lvdd-podcast-cover img {
    transform: scale(1.1);
}

/* Badge nombre d'épisodes */
.lvdd-podcast-episodes-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
}

/* Overlay Play */
.lvdd-podcast-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.lvdd-podcast-card:hover .lvdd-podcast-play-overlay {
    opacity: 1;
}

.lvdd-podcast-play-btn {
    width: 60px;
    height: 60px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lvdd-podcast-play-btn:hover {
    transform: scale(1.15);
}

.lvdd-podcast-play-btn svg {
    width: 24px;
    height: 24px;
    color: #667eea;
}

/* Contenu du podcast */
.lvdd-podcast-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lvdd-podcast-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #2d3748;
    line-height: 1.3;
}

.lvdd-podcast-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lvdd-podcast-title a:hover {
    color: #667eea;
}

.lvdd-podcast-excerpt {
    font-size: 15px;
    color: #718096;
    margin: 0 0 15px 0;
    line-height: 1.6;
    flex: 1;
}

/* Métadonnées */
.lvdd-podcast-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.lvdd-podcast-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #718096;
}

.lvdd-podcast-meta-item svg {
    width: 16px;
    height: 16px;
    color: #667eea;
}

/* Liens plateformes */
.lvdd-podcast-platforms {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.lvdd-platform-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f7fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lvdd-platform-link:hover {
    background: #667eea;
    transform: translateY(-2px);
}

.lvdd-platform-link:hover svg {
    color: white;
}

.lvdd-platform-link svg {
    width: 20px;
    height: 20px;
    color: #718096;
    transition: color 0.3s ease;
}

/* ========================================
   PODCASTS - LISTE
   ======================================== */

.lvdd-podcasts-liste {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ========================================
   PODCASTS - GRID
   ======================================== */

.lvdd-podcasts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* ========================================
   PODCASTS - CAROUSEL
   ======================================== */

.lvdd-podcasts-carousel {
    position: relative;
    overflow: hidden;
}

.lvdd-podcasts-carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lvdd-podcasts-carousel .lvdd-podcast-card {
    flex: 0 0 320px;
}

/* Boutons navigation carousel */
.lvdd-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: all 0.3s ease;
}

.lvdd-carousel-nav:hover {
    background: #667eea;
    transform: translateY(-50%) scale(1.1);
}

.lvdd-carousel-nav:hover svg {
    color: white;
}

.lvdd-carousel-nav svg {
    width: 24px;
    height: 24px;
    color: #667eea;
    transition: color 0.3s ease;
}

.lvdd-carousel-nav.prev {
    left: 10px;
}

.lvdd-carousel-nav.next {
    right: 10px;
}

/* ========================================
   ÉPISODES - STYLES GÉNÉRAUX
   ======================================== */

/* Container épisodes */
.lvdd-episodes-container {
    margin: 40px 0;
}

/* Card épisode */
.lvdd-episode-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.lvdd-episode-card:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
}

/* Cover épisode */
.lvdd-episode-cover {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.lvdd-episode-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bouton play épisode */
.lvdd-episode-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.lvdd-episode-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

.lvdd-episode-play-btn svg {
    width: 20px;
    height: 20px;
    color: #667eea;
}

/* Contenu épisode */
.lvdd-episode-content {
    flex: 1;
    min-width: 0;
}

.lvdd-episode-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}

.lvdd-episode-number {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.lvdd-episode-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #2d3748;
    line-height: 1.4;
}

.lvdd-episode-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lvdd-episode-title a:hover {
    color: #667eea;
}

.lvdd-episode-excerpt {
    font-size: 14px;
    color: #718096;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

/* Métadonnées épisode */
.lvdd-episode-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #a0aec0;
}

.lvdd-episode-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lvdd-episode-meta-item svg {
    width: 14px;
    height: 14px;
    color: #667eea;
}

.lvdd-episode-duration {
    background: #f7fafc;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    color: #4a5568;
}

/* ========================================
   ÉPISODES - LISTE
   ======================================== */

.lvdd-episodes-liste {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ========================================
   PLAYER D'ÉPISODE COMPLET
   ======================================== */

.lvdd-episode-player-full {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px;
    color: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.lvdd-episode-player-header {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.lvdd-episode-player-cover {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.lvdd-episode-player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lvdd-episode-player-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.lvdd-episode-player-info p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

/* Contrôles player */
.lvdd-episode-player-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lvdd-episode-player-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

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

.lvdd-episode-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lvdd-episode-control-btn.main {
    width: 70px;
    height: 70px;
    background: white;
    color: #667eea;
}

.lvdd-episode-control-btn.main:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Timeline */
.lvdd-episode-timeline {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lvdd-episode-time {
    font-size: 14px;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.lvdd-episode-progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.lvdd-episode-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: white;
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .lvdd-podcasts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .lvdd-podcasts-carousel .lvdd-podcast-card {
        flex: 0 0 280px;
    }
}

@media (max-width: 768px) {
    .lvdd-podcasts-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }

    .lvdd-episode-card {
        flex-direction: column;
    }

    .lvdd-episode-cover {
        width: 100%;
        height: 200px;
    }

    .lvdd-episode-player-full {
        padding: 25px;
    }

    .lvdd-episode-player-header {
        flex-direction: column;
        text-align: center;
    }

    .lvdd-episode-player-cover {
        width: 140px;
        height: 140px;
    }

    .lvdd-episode-player-info h2 {
        font-size: 22px;
    }

    .lvdd-carousel-nav {
        width: 40px;
        height: 40px;
    }

    .lvdd-carousel-nav svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .lvdd-podcasts-grid {
        grid-template-columns: 1fr;
    }

    .lvdd-podcasts-carousel .lvdd-podcast-card {
        flex: 0 0 90%;
    }

    .lvdd-podcast-content {
        padding: 15px;
    }

    .lvdd-podcast-title {
        font-size: 18px;
    }

    .lvdd-episode-player-buttons {
        gap: 10px;
    }

    .lvdd-episode-control-btn {
        width: 44px;
        height: 44px;
    }

    .lvdd-episode-control-btn.main {
        width: 60px;
        height: 60px;
    }

    .lvdd-carousel-nav.prev {
        left: 5px;
    }

    .lvdd-carousel-nav.next {
        right: 5px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lvdd-podcast-card,
.lvdd-episode-card {
    animation: fadeIn 0.5s ease-out;
}

/* Stagger effect pour les listes */
.lvdd-podcasts-liste .lvdd-podcast-card:nth-child(1),
.lvdd-episodes-liste .lvdd-episode-card:nth-child(1) {
    animation-delay: 0.1s;
}

.lvdd-podcasts-liste .lvdd-podcast-card:nth-child(2),
.lvdd-episodes-liste .lvdd-episode-card:nth-child(2) {
    animation-delay: 0.2s;
}

.lvdd-podcasts-liste .lvdd-podcast-card:nth-child(3),
.lvdd-episodes-liste .lvdd-episode-card:nth-child(3) {
    animation-delay: 0.3s;
}

.lvdd-podcasts-liste .lvdd-podcast-card:nth-child(4),
.lvdd-episodes-liste .lvdd-episode-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* ========================================
   UTILITAIRES
   ======================================== */

.lvdd-hidden {
    display: none !important;
}

.lvdd-loading {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-size: 16px;
}

.lvdd-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}

.lvdd-no-results h3 {
    font-size: 20px;
    margin: 0 0 10px 0;
    color: #4a5568;
}

.lvdd-no-results p {
    font-size: 16px;
    margin: 0;
}

/* ========================================
   SINGLE PODCAST - DESIGN MODERNE
   ======================================== */

/* Variables */
.lvdd-podcast-single {
    --podcast-primary: #1a1a1a;
    --podcast-accent: #667eea;
    --podcast-text: #333;
    --podcast-text-light: #666;
    --podcast-bg: #fff;
    --podcast-bg-alt: #f8f9fa;
    --podcast-border: #e5e5e5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.lvdd-podcast-hero {
    background: var(--podcast-primary);
    color: #fff;
    padding: 60px 20px 80px;
}

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

.lvdd-podcast-hero__cover {
    position: relative;
}

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

.lvdd-podcast-hero__content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.lvdd-podcast-hero__host {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    display: flex;
    align-items: center;
}

.lvdd-podcast-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.lvdd-podcast-hero__meta-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Plateformes */
.lvdd-podcast-hero__platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.lvdd-podcast-hero__platform {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lvdd-podcast-hero__platform:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: #fff;
}

/* Contenu principal */
.lvdd-podcast-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

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

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

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

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

/* Liste des épisodes - Titre */
.lvdd-episodes-list__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 30px 0;
    color: var(--podcast-text, #333);
}

/* État vide */
.lvdd-episodes-list__empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.lvdd-episodes-list__empty p {
    margin: 0;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
    .lvdd-podcast-hero__container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .lvdd-podcast-hero__cover {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .lvdd-podcast-hero__title {
        font-size: 2rem;
    }
    
    .lvdd-podcast-hero__host {
        justify-content: center;
    }
    
    .lvdd-podcast-hero__meta {
        justify-content: center;
    }
    
    .lvdd-podcast-hero__platforms {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .lvdd-podcast-hero {
        padding: 40px 15px 60px;
    }
    
    .lvdd-podcast-hero__title {
        font-size: 1.6rem;
    }
    
    .lvdd-podcast-hero__cover {
        max-width: 200px;
    }
    
    .lvdd-podcast-content {
        padding: 40px 15px;
    }
}
