/* Minimal additional CSS for shows page */

/* Category tabs - reusing existing UI styles but with horizontal scrolling */
.category-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 15px 0;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-bg-alt);
}

.category-tabs::-webkit-scrollbar {
    height: 4px;
}

.category-tabs::-webkit-scrollbar-track {
    background: var(--color-bg-alt);
    border-radius: 10px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}

.category-tab {
    padding: 12px 24px;
    border-radius: 30px;
    background-color: var(--color-bg-alt);
    color: var(--color-text);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(var(--color-border-rgb), 0.1);
}

.category-tab.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.3);
    border-color: transparent;
}

.category-tab:hover:not(.active) {
    background-color: rgba(var(--color-primary-rgb), 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Shows grid - restyling podcast grid */
.shows-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

/* Enhanced styles for podcast cards in show page */
.all-shows .podcast-card {
    height: 100%;
    border: 1px solid rgba(var(--color-border-rgb), 0.1);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.all-shows .podcast-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(var(--color-primary-rgb), 0.3);
}

.all-shows .podcast-img {
    max-height: 240px;
    position: relative;
}

.all-shows .podcast-img:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 40%);
    z-index: 1;
    opacity: 0.7;
    transition: opacity var(--transition-normal);
}

.all-shows .podcast-card:hover .podcast-img:before {
    opacity: 0.9;
}

.all-shows .podcast-img img {
    transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}

.all-shows .podcast-card:hover .podcast-img img {
    transform: scale(1.08);
}

.all-shows .podcast-card .episode {
    background: var(--gradient-primary);
    color: white;
    padding: 5px 10px;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

/* Worship episode tag */
.podcast-card[data-category="worship"] .episode {
    background: linear-gradient(135deg, #2962ff 0%, #1565c0 100%);
}

/* Teaching episode tag */
.podcast-card[data-category="teaching"] .episode {
    background: linear-gradient(135deg, #00b0ff 0%, #0277bd 100%);
}

/* Talk episode tag */
.podcast-card[data-category="talk"] .episode {
    background: linear-gradient(135deg, #00b8d4 0%, #006064 100%);
}

/* Music episode tag */
.podcast-card[data-category="music"] .episode {
    background: linear-gradient(135deg, #6200ea 0%, #3F51B5 100%);
}

/* Family episode tag */
.podcast-card[data-category="family"] .episode {
    background: linear-gradient(135deg, #00c853 0%, #2E7D32 100%);
}

/* Devotional episode tag */
.podcast-card[data-category="devotional"] .episode {
    background: linear-gradient(135deg, #ff6d00 0%, #E65100 100%);
}

/* Enhanced styles for podcast info sections in shows page */
.all-shows .podcast-info {
    padding: 1.8rem;
    background: var(--color-bg);
    border-top: 1px solid rgba(var(--color-border-rgb), 0.05);
    box-shadow: 0 4px 0 -2px rgba(var(--color-primary-rgb), 0.05);
}

.all-shows .podcast-info h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    height: auto;
    max-height: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}



.all-shows .podcast-description {
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--color-text-light);
    margin: 0.5rem 0 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: none;
}

.all-shows .podcast-host,
.all-shows .podcast-duration {
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.all-shows .podcast-host {
    margin-bottom: 0.8rem;
}

.all-shows .podcast-duration {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(var(--color-border-rgb), 0.15);
}

.all-shows .podcast-host i,
.all-shows .podcast-duration i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--color-primary-rgb), 0.1);
    border-radius: 50%;
    font-size: 1rem;
}

/* Dark mode adjustments */
[data-theme="dark"] .all-shows .podcast-info {
    background-color: var(--color-bg-alt);
    border-top-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 0 -2px rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .all-shows .podcast-description {
    color: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .all-shows .podcast-host i,
[data-theme="dark"] .all-shows .podcast-duration i {
    background: rgba(var(--color-primary-rgb), 0.2);
}

[data-theme="dark"] .category-tab {
    border-color: rgba(255, 255, 255, 0.1);
}

.load-more-container {
    margin-top: 60px;
    text-align: center;
}

.load-more-btn {
    width:100%;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.4);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.5);
}

.load-more-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.4);
}

/* Dark mode specific adjustments */
[data-theme="dark"] .all-shows .podcast-card {
    background-color: rgba(var(--color-bg-alt-rgb), 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .all-shows .podcast-card:hover {
    border-color: rgba(var(--color-primary-rgb), 0.3);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .shows-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .shows-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .shows-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Enhanced play button for show cards */
.all-shows .podcast-card .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4.5rem;
    height: 4.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-size: 1.2rem;
    z-index: 3;
    opacity: 0.9;
    transition: all var(--transition-normal);
    color: white;
}

.all-shows .podcast-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    background-color: var(--color-primary);
}

.all-shows .podcast-card .play-btn i {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
