/* podcast.css - Styles pour la page podcast-single.php */

.podcast-single {
    padding: 60px 0;
}

.podcast-single .container {
    max-width: 1400px !important;
}

.podcast-article {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.podcast-header-meta {
    margin-bottom: 30px;
}

.podcast-header-meta h1 {
    display: none; /* Le titre est maintenant dans page-header */
}

.podcast-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.podcast-featured-image {
    margin: 30px 0;
    border-radius: 8px;
    overflow: visible;
}

.featured-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.featured-image-wrapper:hover img {
    transform: scale(1.02);
}

.image-enlarge-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(30, 45, 79, 0.9);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.image-enlarge-btn:hover {
    background: rgba(30, 45, 79, 1);
    transform: scale(1.05);
}

.image-enlarge-btn svg {
    width: 16px;
    height: 16px;
}

/* Modal pour l'image agrandie */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.image-modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    z-index: 1;
    animation: zoomIn 0.3s ease;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.podcast-player-wrapper {
    margin: 40px 0;
}

.podcast-player {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: visible;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.player-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

.player-thumbnail {
    position: relative;
    width: 150px;
    min-width: 150px;
    aspect-ratio: 1;
    background: #1e2d4f;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

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

.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 1;
    transition: opacity 0.3s;
}

.player-thumbnail.playing .player-overlay {
    opacity: 0;
    pointer-events: none;
}

.player-play-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
}

.player-play-btn:hover {
    transform: scale(1.1);
}

.player-controls {
    padding: 20px;
    background: #ffffff;
    flex: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.player-main-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.player-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #1e2d4f;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
    font-size: 12px;
}

.player-btn:hover {
    color: #c2192b;
}

.player-btn-play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1e2d4f;
    color: white;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-btn-play:hover {
    background: #c2192b;
    color: white;
}

.btn-label {
    font-size: 10px;
    font-weight: 500;
}

.player-speed-control {
    position: relative;
    margin-left: 10px;
}

.player-logo {
    margin-left: 15px;
    display: flex;
    align-items: center;
    padding-left: 15px;
    border-left: 1px solid #e0e0e0;
}

.player-speed-btn {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1e2d4f;
    min-width: 45px;
    transition: background 0.2s;
}

.player-speed-btn:hover {
    background: #e9ecef;
}

.player-speed-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 5px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
    min-width: 80px;
    overflow: hidden;
}

.speed-option {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.2s;
}

.speed-option:hover {
    background: #f8f9fa;
}

.speed-option.active {
    background: #1e2d4f;
    color: white;
}

.player-progress-container {
    margin-top: 10px;
}

.player-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.time-separator {
    margin: 0 4px;
}

.player-progress-bar {
    position: relative;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
}

.player-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #1e2d4f;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
}

#player-seek {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    z-index: 1;
}

#player-seek::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1e2d4f;
    cursor: pointer;
}

#player-seek::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1e2d4f;
    cursor: pointer;
    border: none;
}

@media (max-width: 768px) {
    .player-container {
        flex-direction: column;
    }
    
    .player-thumbnail {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .player-main-controls {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .player-btn {
        padding: 6px;
    }
    
    .player-btn-play {
        width: 44px;
        height: 44px;
    }
    
    .player-logo {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #e0e0e0;
        padding-top: 10px;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
}

.podcast-excerpt {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #1e2d4f;
    color: #333;
}

.excerpt-title {
    font-size: 1.3rem;
    color: #1e2d4f;
    margin-bottom: 12px;
    font-weight: 600;
}

.podcast-excerpt p {
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
    margin: 0;
}

.podcast-content {
    margin: 40px 0;
    line-height: 1.5;
    color: #333;
}

.podcast-content h2 {
    color: #1e2d4f;
    margin-top: 30px;
    margin-bottom: 15px;
}

.podcast-content p {
    margin-bottom: 15px;
}

.podcast-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

.podcast-conclusion {
    margin: 40px 0;
    padding: 30px;
    background: radial-gradient(circle at top left, #f0f4ff 0, #1e2d4f 42%, #0f172a 100%);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.3);
    color: #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
}

.podcast-conclusion::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240, 244, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.podcast-conclusion > * {
    position: relative;
    z-index: 1;
}

.podcast-conclusion h2 {
    color: #e5e7eb;
    margin-bottom: 15px;
}

.podcast-conclusion p {
    color: #d1d5db;
    line-height: 1.6;
}

/* Carrousel des autres épisodes */
.podcast-carousel-section {
    margin: 40px 0;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.carousel-title {
    color: #1e2d4f;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.podcast-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    will-change: transform;
    width: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    .carousel-slide {
        flex: 0 0 calc(33.333% - 14px);
    }
}

.carousel-podcast-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-podcast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-podcast-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.carousel-podcast-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-podcast-card:hover .carousel-podcast-image img {
    transform: scale(1.05);
}

.carousel-podcast-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.carousel-podcast-content h4 {
    color: #1e2d4f;
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.carousel-podcast-date {
    color: #666;
    font-size: 0.85rem;
    margin: 0 0 15px 0;
}

.carousel-podcast-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #1e2d4f;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: background 0.2s;
    margin-top: auto;
}

.carousel-podcast-btn:hover {
    background: #2d3f6b;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, border-color 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
    background: #f8f9fa;
    border-color: #1e2d4f;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    color: #1e2d4f;
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    
    .carousel-btn-prev {
        left: 5px;
    }
    
    .carousel-btn-next {
        right: 5px;
    }
}

.podcast-episode-links {
    margin: 40px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1e2d4f;
}

.podcast-episode-links h3 {
    color: #1e2d4f;
    margin-bottom: 15px;
    font-size: 20px;
}

.episode-links-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.episode-link-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: #1e2d4f;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
    font-weight: 500;
}

.episode-link-btn:hover {
    background: #2d3f6b;
}

.podcast-subscribe {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.podcast-subscribe h3 {
    color: #1e2d4f;
    margin-bottom: 15px;
}

.subscribe-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: #1e2d4f;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
}

.subscribe-btn:hover {
    background: #2d3f6b;
}

.podcast-navigation {
    max-width: 1000px;
    margin: 30px auto 0;
    text-align: center;
}

