/**
 * css/podcasts-layouts.css
 * Styles pour tous les layouts de podcasts
 */

/* ============================================
   LAYOUT: DEFAULT (Grille classique)
   ============================================ */
.podcasts-grid-default .podcast-card-default {
    background: var(--bg-card, white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.podcasts-grid-default .podcast-card-default:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.podcasts-grid-default .podcast-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.podcasts-grid-default .podcast-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.podcasts-grid-default .podcast-card-default:hover .podcast-image img {
    transform: scale(1.1);
}

.podcasts-grid-default .podcast-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--podcast-color, #8b5cf6), var(--primary-color, #1e3a8a));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.podcasts-grid-default .podcast-play-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.podcasts-grid-default .podcast-card-default:hover .podcast-play-btn {
    opacity: 1;
    transform: scale(1);
}

.podcasts-grid-default .podcast-play-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.podcasts-grid-default .podcast-duration {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.podcasts-grid-default .podcast-content {
    padding: 20px;
}

.podcasts-grid-default .podcast-category {
    display: inline-block;
    background: var(--podcast-color, #8b5cf6);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.podcasts-grid-default .podcast-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.podcasts-grid-default .podcast-title a {
    color: var(--text-color, #1a1a1a);
    text-decoration: none;
    transition: color 0.3s;
}

.podcasts-grid-default .podcast-title a:hover {
    color: var(--primary-color);
}

.podcasts-grid-default .podcast-author,
.podcasts-grid-default .podcast-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

/* ============================================
   LAYOUT: CARDS (Cartes modernes)
   ============================================ */
.podcasts-grid-cards .podcast-card-modern {
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card, white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.podcasts-grid-cards .podcast-card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.podcasts-grid-cards .podcast-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.podcasts-grid-cards .podcast-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.podcasts-grid-cards .podcast-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.podcasts-grid-cards .podcast-card-modern:hover .podcast-image-wrapper img {
    transform: scale(1.15);
}

.podcasts-grid-cards .podcast-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.podcasts-grid-cards .podcast-card-modern:hover .podcast-overlay {
    opacity: 1;
}

.podcasts-grid-cards .podcast-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 4rem;
    color: white;
    opacity: 0;
    transition: all 0.4s ease;
}

.podcasts-grid-cards .podcast-card-modern:hover .podcast-play-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.podcasts-grid-cards .podcast-duration {
    background: var(--podcast-color, #8b5cf6);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
}

.podcasts-grid-cards .podcast-info {
    padding: 20px;
}

.podcasts-grid-cards .podcast-cat {
    display: inline-block;
    color: var(--podcast-color, #8b5cf6);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.podcasts-grid-cards .podcast-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-color, #1a1a1a);
}

.podcasts-grid-cards .podcast-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted, #888);
}

/* ============================================
   LAYOUT: LIST (Liste horizontale)
   ============================================ */
.podcasts-list-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.podcasts-list-layout .podcast-list-item {
    background: var(--bg-card, white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.podcasts-list-layout .podcast-list-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.podcasts-list-layout .podcast-list-link {
    display: flex;
    gap: 25px;
    text-decoration: none;
    color: inherit;
}

.podcasts-list-layout .podcast-list-image {
    flex: 0 0 180px;
    height: 140px;
    position: relative;
    overflow: hidden;
}

.podcasts-list-layout .podcast-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.podcasts-list-layout .podcast-list-item:hover .podcast-list-image img {
    transform: scale(1.1);
}

.podcasts-list-layout .podcast-list-placeholder {
    width: 100%;
    height: 100%;
    background: var(--podcast-color, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.podcasts-list-layout .podcast-list-play {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
}

.podcasts-list-layout .podcast-list-item:hover .podcast-list-play {
    opacity: 1;
}

.podcasts-list-layout .podcast-list-content {
    flex: 1;
    padding: 20px 25px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.podcasts-list-layout .podcast-list-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.podcasts-list-layout .podcast-list-cat {
    background: var(--podcast-color, #8b5cf6);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.podcasts-list-layout .podcast-list-duration {
    font-size: 0.8rem;
    color: var(--text-muted, #888);
}

.podcasts-list-layout .podcast-list-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color, #1a1a1a);
}

.podcasts-list-layout .podcast-list-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.podcasts-list-layout .podcast-list-footer {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted, #888);
}

@media (max-width: 768px) {
    .podcasts-list-layout .podcast-list-link {
        flex-direction: column;
        gap: 0;
    }
    .podcasts-list-layout .podcast-list-image {
        flex: none;
        height: 200px;
    }
    .podcasts-list-layout .podcast-list-content {
        padding: 20px;
    }
}

/* ============================================
   LAYOUT: MINIMAL (Design épuré)
   ============================================ */
.podcasts-minimal-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card, white);
}

.podcasts-minimal-layout .podcast-minimal-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.podcasts-minimal-layout .podcast-minimal-item:last-child {
    border-bottom: none;
}

.podcasts-minimal-layout .podcast-minimal-item:hover {
    background: #f8fafc;
}

.podcasts-minimal-layout .podcast-minimal-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--podcast-color, #8b5cf6);
    opacity: 0.5;
    width: 50px;
    flex-shrink: 0;
}

.podcasts-minimal-layout .podcast-minimal-content {
    flex: 1;
}

.podcasts-minimal-layout .podcast-minimal-content a {
    text-decoration: none;
}

.podcasts-minimal-layout .podcast-minimal-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color, #1a1a1a);
    transition: color 0.3s;
}

.podcasts-minimal-layout .podcast-minimal-content a:hover h4 {
    color: var(--primary-color);
}

.podcasts-minimal-layout .podcast-minimal-meta {
    font-size: 0.85rem;
    color: var(--text-muted, #888);
}

.podcasts-minimal-layout .podcast-minimal-meta .separator {
    margin: 0 8px;
    color: #ccc;
}

.podcasts-minimal-layout .podcast-minimal-play {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--podcast-color, #8b5cf6);
    color: var(--podcast-color, #8b5cf6);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.podcasts-minimal-layout .podcast-minimal-play:hover {
    background: var(--podcast-color, #8b5cf6);
    color: white;
}

/* ============================================
   LAYOUT: FEATURED (1 grand + 4)
   ============================================ */
.podcasts-featured-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.podcasts-featured-layout .podcast-featured-main {
    grid-row: span 2;
}

.podcasts-featured-layout .featured-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.podcasts-featured-layout .featured-image {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
}

.podcasts-featured-layout .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.podcasts-featured-layout .featured-link:hover .featured-image img {
    transform: scale(1.05);
}

.podcasts-featured-layout .featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.podcasts-featured-layout .featured-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--podcast-color, #8b5cf6);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.podcasts-featured-layout .featured-link:hover .featured-play {
    opacity: 1;
}

.podcasts-featured-layout .featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: white;
    z-index: 2;
}

.podcasts-featured-layout .featured-cat {
    display: inline-block;
    background: var(--podcast-color, #8b5cf6);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.podcasts-featured-layout .featured-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.podcasts-featured-layout .featured-content p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 15px;
    line-height: 1.5;
}

.podcasts-featured-layout .featured-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.podcasts-featured-layout .podcast-featured-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.podcasts-featured-layout .podcast-featured-card {
    background: var(--bg-card, white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.podcasts-featured-layout .podcast-featured-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.podcasts-featured-layout .podcast-featured-card a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.podcasts-featured-layout .card-image {
    flex: 0 0 100px;
    height: 80px;
    position: relative;
    overflow: hidden;
}

.podcasts-featured-layout .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcasts-featured-layout .card-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
}

.podcasts-featured-layout .card-content {
    flex: 1;
    padding: 15px 15px 15px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.podcasts-featured-layout .card-content h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color, #1a1a1a);
    line-height: 1.3;
}

.podcasts-featured-layout .card-meta {
    font-size: 0.8rem;
    color: var(--text-muted, #888);
}

@media (max-width: 991px) {
    .podcasts-featured-layout {
        grid-template-columns: 1fr;
    }
    .podcasts-featured-layout .podcast-featured-main {
        grid-row: auto;
    }
    .podcasts-featured-layout .featured-image {
        height: 300px;
    }
}
