/* Custom styles for Podcast Directory */

/* Global header spacing */
header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

/* Podcast Cards */
.podcast-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
}

.podcast-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.podcast-header {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.podcast-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* Podcast detail page image - larger */
.podcast-detail-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.podcast-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.podcast-author {
    color: var(--pico-muted-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.podcast-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.podcast-description {
    color: var(--pico-muted-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Podcast 2.0 Badge */
.podcast2-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* Modal */
.podcast-modal-content {
    max-height: 60vh;
    overflow-y: auto;
}

.podcast-modal-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding: 0;
}

.pagination li {
    margin: 0;
}

/* Error State */
.error {
    background-color: var(--pico-del-background-color);
    border-left: 4px solid var(--pico-del-color);
}

/* Stats Cards */
.stats-card-header {
    font-size: 1.5rem;
    font-weight: bolder;
    color: var(--pico-muted-color);
    margin-bottom: 0.5rem;
}
.stats-card-body {
    font-size: 1.5rem;
    font-weight: bolder;
    color: var(--pico-primary);
    text-align: center;
}

article p {
    margin-bottom: 0;
    color: var(--pico-muted-color);
}

/* Loading State */
[aria-busy="true"] {
    text-align: center;
    padding: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .podcast-header {
        grid-template-columns: 80px 1fr;
    }
    
    .podcast-image {
        width: 80px;
        height: 80px;
    }
    
    .podcast-detail-image {
        width: 150px;
        height: 150px;
    }
    
    .podcast-modal-image {
        width: 150px;
        height: 150px;
    }
}

/* Theme Switcher */
.theme-switcher {
    min-width: 140px;
}

.theme-switcher select {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Dark mode specific adjustments */
@media (prefers-color-scheme: dark) {
    .podcast-card:hover {
        box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
    }
}

[data-theme="dark"] .podcast-card:hover {
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}
