/* Elementor Buzzsprout Podcast List Widget Styles */

.elementor-buzzsprout-podcast-widget {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ==================== LIST VIEW ==================== */
.podcast-list-view {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Page Header */
.podcast-page-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 50px;
    padding: 30px 15px;
}

.podcast-header-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.podcast-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.podcast-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.podcast-page-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
    margin: 0 0 8px 0;
    text-align: left;
}

.podcast-page-subtitle {
    font-size: 18px;
    font-family: var(--font-ui);
    font-weight: 400;
    line-height: 1.4;
    color: #666;
    margin: 0 0 15px 0;
}

.podcast-page-description {
    font-size: 0.82rem;
    font-family: var(--font-ui);
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink-muted);
    margin: 0;
    text-align: left;
}

.podcast-page-description p {
    margin-bottom: 10px;
}

.podcast-page-description p:last-child {
    margin-bottom: 0;
}

/* List Items */
.podcast-list-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 15px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.podcast-list-item:hover {
    background-color: #fff;
    text-decoration: none;
    border-radius: 8px;
}

.podcast-list-item:last-child {
    margin-bottom: 0;
}

/* Item Thumbnail */
.podcast-item-thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.podcast-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.podcast-item-thumbnail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-image: url('../images/logo/play-v2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.podcast-list-item:hover .podcast-item-thumbnail::after {
    opacity: 1;
}

.podcast-list-item:hover .podcast-item-thumbnail img {
    filter: brightness(0.7);
    display: block;
}

/* Item Content */
.podcast-item-content {
    flex: 1;
    min-width: 0;
}

.podcast-item-date {
    font-size: 0.68rem;
    font-family: var(--font-ui);
    font-weight: 400;
    color: var(--ink-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h3.podcast-item-title,
.podcast-item-title {
    font-size: 1.15rem;
    font-family: var(--font-editorial);
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    margin: 0 0 8px 0;
    padding: 0;
}

.podcast-item-title:hover {
    text-decoration: underline;
}

.podcast-item-description {
    font-size: 0.82rem;
    font-family: var(--font-ui);
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== DETAIL VIEW ==================== */
.podcast-detail-view {
    padding: 40px 0;
}

.podcast-detail-header {
    margin-bottom: 40px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background-color: transparent;
    color: #999;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button .back-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.podcast-detail-content {
    margin-bottom: 40px;
}

.podcast-detail-title {
    font-size: 2.4rem;
    font-family: var(--font-editorial);
    font-weight: 400;
    line-height: 65px;
    color: var(--ink);
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.podcast-detail-meta {
    display: none;
}

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

#buzzsprout-player-container {
    width: 100%;
    max-width: 100%;
}

#buzzsprout-player-container iframe {
    width: 100%;
    border: none;
}

.podcast-description {
    font-size: 16px;
    font-family: var(--font-ui);
    font-weight: 400;
    line-height: 24px;
    color: var(--ink);
    margin-top: 40px;
}

.podcast-description p {
    margin-bottom: 20px;
}

/* Navigation Buttons */
.podcast-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
}

.nav-button {
    padding: 0;
    background-color: transparent;
    color: #999;
    border: none;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button:disabled {
    color: #ddd;
    cursor: not-allowed;
}

.prev-button {
    margin-right: auto;
}

.next-button {
    margin-left: auto;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .podcast-page-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 10px;
    }

    .podcast-header-image {
        width: 150px;
        height: 150px;
    }

    .podcast-header-content {
        min-height: auto;
        align-items: center;
    }

    .podcast-page-title {
        font-size: 24px;
        text-align: center;
    }

    .podcast-page-subtitle {
        text-align: center;
    }

    .podcast-page-description {
        text-align: center;
    }

    .podcast-list-item {
        padding: 15px 10px;
        gap: 15px;
    }

    .podcast-item-thumbnail {
        width: 70px;
        height: 70px;
    }

    .podcast-item-title {
        font-size: 16px;
    }

    .podcast-item-description {
        font-size: 13px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .podcast-detail-title {
        font-size: 24px;
    }

    .podcast-navigation {
        flex-direction: column;
    }

    .prev-button,
    .next-button {
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .podcast-page-header {
        padding: 15px 5px;
        gap: 20px;
    }

    .podcast-header-image {
        width: 120px;
        height: 120px;
    }

    .podcast-page-title {
        font-size: 20px;
    }

    .podcast-page-subtitle {
        font-size: 14px;
    }

    .podcast-page-description {
        font-size: 13px;
    }

    .podcast-list-item {
        padding: 12px 10px;
        gap: 12px;
    }

    .podcast-item-thumbnail {
        width: 60px;
        height: 60px;
    }

    .podcast-item-title {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .podcast-item-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .podcast-detail-title {
        font-size: 20px;
    }

    .podcast-description {
        font-size: 14px;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.podcast-detail-view {
    animation: fadeIn 0.4s ease;
}

.podcast-list-view {
    animation: fadeIn 0.4s ease;
}

button.podcast-load-more-btn {
    background: transparent;
    color: var(--ink);
    padding: 9px 22px;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: 1.5px solid var(--ink);
    cursor: pointer;
    transition: all .15s;
}

button.podcast-load-more-btn:hover {
    background: var(--ink);
    color: var(--white);
}