/* Styles for YouTube and Interview sections */

/* Common styles for video sections */
.video-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.video-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-dark, #1a202c);
    text-align: center;
}

/* General video grid */
.video-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* Interview videos - 3 on one line */
#podcast-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* YouTube videos - 4 on one line */
#yt-videos-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* YouTube video cards */
.yt-card {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, box-shadow 0.15s;
}

.yt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.yt-thumb-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: #f1f5f9;
}

.yt-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.yt-card:hover .yt-thumb {
    transform: scale(1.03);
}

.yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
    border: none;
    cursor: pointer;
}

.yt-card:hover .yt-play-btn,
.podcast-thumb-wrap:hover .yt-play-btn {
    opacity: 1;
}

.yt-card-body {
    padding: 0.75rem 1rem;
    flex: 1;
}

.yt-card-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Podcast/Interview cards */
.podcast-card {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, box-shadow 0.15s;
}

.podcast-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.podcast-thumb-wrap {
    cursor: pointer;
}

.podcast-card-body {
    padding: 0.75rem 1rem;
    flex: 1;
}

.podcast-guest {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary, #3182ce);
    margin: 0 0 0.25rem;
    text-transform: uppercase;
}

.podcast-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-desc {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted, #718096);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loading and empty states */
.videos-loading, .no-videos {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted, #718096);
    font-size: 0.9rem;
    font-style: italic;
}

/* Video section headers with border */
.video-section-header {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
}

.video-section-header:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary, #3182ce);
    border-radius: 3px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    /* On medium screens, reduce to 3 YouTube videos per row */
    #yt-videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    /* On smaller screens, reduce to 2 videos per row for both types */
    #podcast-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #yt-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-section h3 {
        font-size: 1.5rem;
    }

    .video-grid {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    /* On mobile, show just one video per row */
    #podcast-grid,
    #yt-videos-grid {
        grid-template-columns: 1fr;
    }
}