/* Single Podcast Template Styles */

/* Podcast Header */
.podcast-header {
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.podcast-header-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.podcast-thumbnail {
    position: relative;
}

.podcast-featured-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.podcast-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border: 2px dashed #dee2e6;
}

.podcast-breadcrumb {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.podcast-breadcrumb a {
    color: #007cba;
    text-decoration: none;
}

.podcast-breadcrumb a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 0.5rem;
}

.podcast-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.2;
}

.podcast-excerpt {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.podcast-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.meta-item {
    text-align: center;
}

.meta-label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.meta-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

.podcast-categories {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.categories-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.category-link {
    background: #007cba;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.category-link:hover {
    background: #005a87;
    color: white;
}

/* Podcast Description */
.podcast-description {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.podcast-description h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.podcast-description .content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Season Switcher */
.season-switcher-container {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.season-switcher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.season-switcher-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.season-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.current-season {
    font-weight: 600;
    color: #007cba;
}

.episode-count {
    color: #666;
}

.season-switcher {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.season-dropdown {
    padding: 0.75rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    display: none; /* Hidden by default, shown on mobile */
}

.season-dropdown:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.season-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.season-tab {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 120px;
}

.season-tab:hover {
    background: #e9ecef;
    border-color: #007cba;
}

.season-tab.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.season-number {
    font-weight: 600;
    font-size: 1rem;
}

.season-tab .episode-count {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Episodes Section */
.episodes-section {
    margin-bottom: 3rem;
}

.episodes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.episodes-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.episodes-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.view-toggle {
    display: flex;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.25rem;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: white;
    color: #007cba;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sort-dropdown {
    padding: 0.5rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: #666;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Episodes Container */
.episodes-container {
    transition: opacity 0.3s ease;
}

.episodes-container.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Grid View */
.episodes-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

/* List View */
.episodes-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.episodes-container.list-view .podcast-episode-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Episode Item */
.podcast-episode-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.podcast-episode-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.episode-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.podcast-episode-item:hover .episode-image {
    transform: scale(1.05);
}

.episode-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

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

.podcast-episode-item:hover .episode-overlay {
    opacity: 1;
}

.play-button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: white;
    transform: scale(1.1);
}

.episode-content {
    padding: 1.5rem;
}

.episode-header {
    margin-bottom: 1rem;
}

.episode-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #666;
    flex-wrap: wrap;
}

.episode-meta span {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.episode-number {
    background: #007cba !important;
    color: white !important;
}

.episode-title {
    margin: 0;
}

.episode-title a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
}

.episode-title a:hover {
    color: #007cba;
}

.episode-excerpt {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.episode-player {
    margin-bottom: 1rem;
}

.episode-platforms {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.platforms-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 0.5rem;
}

.platform-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.platform-link {
    background: #6c757d;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.platform-link:hover {
    background: #545b62;
    color: white;
}

.episode-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #007cba;
    border: 1px solid #007cba;
}

.btn-outline:hover {
    background: #007cba;
    color: white;
}

.episode-text-content {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

/* No Episodes */
.no-episodes {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Podcast Tags */
.podcast-tags {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.podcast-tags h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.tags-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-link {
    background: #f8f9fa;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tag-link:hover {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Related Podcasts */
.related-podcasts {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-podcasts h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.related-podcasts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-podcast-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.related-podcast-card:hover {
    transform: translateY(-2px);
}

.related-thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 1rem;
}

.related-title {
    margin: 0 0 0.5rem 0;
}

.related-title a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.related-title a:hover {
    color: #007cba;
}

.related-meta {
    font-size: 0.875rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .podcast-header-content {
        grid-template-columns: 250px 1fr;
        gap: 1.5rem;
    }
    
    .podcast-title {
        font-size: 2rem;
    }
    
    .episodes-container.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .podcast-header-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .podcast-title {
        font-size: 1.75rem;
    }
    
    .podcast-meta {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .season-switcher-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .season-dropdown {
        display: block;
    }
    
    .season-tabs {
        display: none;
    }
    
    .episodes-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .episodes-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .episodes-container.grid-view {
        grid-template-columns: 1fr;
    }
    
    .episodes-container.list-view .podcast-episode-item {
        grid-template-columns: 1fr;
    }
    
    .episode-meta {
        justify-content: center;
    }
    
    .episode-actions {
        flex-direction: column;
    }
    
    .related-podcasts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .podcast-header,
    .podcast-description,
    .season-switcher-container,
    .podcast-tags,
    .related-podcasts {
        padding: 1rem;
    }
    
    .podcast-title {
        font-size: 1.5rem;
    }
    
    .podcast-meta {
        grid-template-columns: 1fr;
    }
    
    .season-tab {
        min-width: auto;
        flex: 1;
    }
    
    .episode-content {
        padding: 1rem;
    }
    
    .episode-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .episode-meta span {
        text-align: center;
    }
}