/* Podcast Playlist Frontend Styles */

.podcast-playlist-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.podcast-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.podcast-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    box-shadow: 0 4px 24px rgba(30, 41, 59, 0.08), 0 1.5px 4px rgba(30, 41, 59, 0.04);
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

.podcast-item:hover {
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.14), 0 2px 8px rgba(30, 41, 59, 0.06);
    transform: translateY(-2px) scale(1.01);
}

.podcast-item::before {
    display: none;
}

.podcast-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #23272f;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.podcast-description {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 1.1rem 0;
}

.podcast-meta {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.1rem;
    font-size: 0.97rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.episode-date,
.episode-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.episode-date::before {
    content: '📅';
    font-size: 0.8rem;
}

.episode-duration::before {
    content: '⏱️';
    font-size: 0.8rem;
}

.podcast-embed {
    margin-top: 1.2rem;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.podcast-embed iframe {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
}

/* Audio Player Styles */
.podcast-audio-player {
    background: #f3f4f6;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.podcast-audio-player audio {
    width: 100%;
    min-width: 200px;
    min-height: 40px;
    height: 40px;
    border-radius: 6px;
    background: #ffffff;
    display: block;
    box-shadow: none;
    outline: none;
}

.podcast-audio-player audio:focus {
    outline: 2px solid #1db954;
}

.audio-player-info {
    margin-top: 0.5rem;
    text-align: center;
}

.audio-player-info small {
    color: #6c757d;
    font-size: 0.8rem;
}

.audio-player-info a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.audio-player-info a:hover {
    text-decoration: underline;
}

/* Fallback Button Styles */
.podcast-player-fallback {
    text-align: center;
    padding: 1rem;
}

.podcast-player-fallback .button {
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.podcast-player-fallback .button:hover {
    background: #1e40af;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .podcast-item {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .podcast-title {
        font-size: 1.25rem;
    }
    
    .podcast-description {
        font-size: 0.9rem;
    }
    
    .podcast-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .podcast-item {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .podcast-title {
        font-size: 1.1rem;
    }
    
    .podcast-meta {
        font-size: 0.8rem;
    }
}

/* Loading State */
.podcast-playlist-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.podcast-playlist-container.loading::after {
    content: 'Loading podcasts...';
    display: block;
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Empty State */
.podcast-playlist-container .empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.podcast-playlist-container .empty-state h3 {
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Animation for new items */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.podcast-item {
    animation: slideInUp 0.5s ease-out;
}

/* Custom scrollbar for podcast descriptions */
.podcast-description {
    max-height: 4.8em;
    overflow: hidden;
    position: relative;
}

.podcast-description.expanded {
    max-height: none;
}

.podcast-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 1.2em;
    background: linear-gradient(to right, transparent, #ffffff);
    pointer-events: none;
}

/* Episode count badge */
.episode-count {
    display: inline-block;
    background: #1db954;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Podcast name label */
.podcast-name {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
}

/* Theme compatibility */
.podcast-playlist-container.dark-theme {
    color: #ffffff;
}

.podcast-playlist-container.dark-theme .podcast-item {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.podcast-playlist-container.dark-theme .podcast-title {
    color: #f7fafc;
}

.podcast-playlist-container.dark-theme .podcast-description {
    color: #a0aec0;
}

.podcast-playlist-container.dark-theme .podcast-description::after {
    background: linear-gradient(to right, transparent, #2d3748);
}

.podcast-playlist-container.dark-theme .podcast-meta {
    color: #a0aec0;
}

.podcast-playlist-container.dark-theme .podcast-name {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #718096;
}

/* Enhanced episode styling */
.podcast-item .episode-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.podcast-item .episode-header {
    flex: 1;
}

.podcast-item .episode-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Episode grid layout option */
.podcast-playlist-container.grid-layout .podcast-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.podcast-playlist-container.grid-layout .podcast-item {
    height: fit-content;
}

@media (max-width: 768px) {
    .podcast-playlist-container.grid-layout .podcast-list {
        grid-template-columns: 1fr;
    }
}

/* Episode filters */
.podcast-filters {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.podcast-filters select,
.podcast-filters input {
    margin-right: 1rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.podcast-filters label {
    margin-right: 0.5rem;
    font-weight: 500;
} 