/**
 * RSS Episodes Card Styles
 * Matches the existing podcast/videocast card design theme
 */

/* RSS Episode Podcast Card Styles */
.podcast-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.podcast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.podcast-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.podcast-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-thumbnail {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.platform-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 1.2rem;
}

.podcast-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.podcast-header {
    margin-bottom: 15px;
}

.podcast-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-creator {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.podcast-creator i {
    margin-right: 5px;
    color: #999;
}

.podcast-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.85rem;
}

.stat-item i {
    margin-right: 5px;
    color: #999;
}

.podcast-description {
    margin-bottom: 15px;
    flex: 1;
}

.podcast-description p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-player {
    margin-bottom: 15px;
}

.video-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.apple-podcasts-link {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.btn-apple {
    background: #007AFF;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-apple:hover {
    background: #0056CC;
    color: white;
}

.no-media-available {
    text-align: center;
    padding: 20px;
    color: #999;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-media-available i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    display: block;
}

.podcast-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.episode-duration,
.feed-source {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.8rem;
}

.episode-duration i,
.feed-source i {
    margin-right: 4px;
    color: #999;
}

.feed-source span {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Platform-specific styling */
.platform-badge .fab.fa-youtube { color: #FF0000; }
.platform-badge .fab.fa-spotify { color: #1DB954; }
.platform-badge .fab.fa-soundcloud { color: #FF5500; }
.platform-badge .fab.fa-apple { color: #007AFF; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .podcast-stats {
        flex-direction: column;
        gap: 8px;
    }

    .podcast-actions {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .podcast-thumbnail {
        height: 180px;
    }

    .default-thumbnail {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .podcast-card-content {
        padding: 15px;
    }

    .podcast-thumbnail {
        height: 160px;
    }

    .default-thumbnail {
        font-size: 2rem;
    }

    .podcast-title {
        font-size: 1rem;
    }
}
