/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Podcast landing page styles.
 */

:root {
    --podcast-bg: #0f1419;
    --podcast-surface: #1a1f26;
    --podcast-accent: #1DB954;
    --podcast-accent-hover: #1ed760;
    --podcast-text: #e8e6e3;
    --podcast-text-muted: #8b949e;
    --podcast-border: rgba(255, 255, 255, 0.08);
    --podcast-card-bg: #161b22;
    --podcast-radius: 12px;
}

.podcast-page {
    background: var(--podcast-bg);
    color: var(--podcast-text);
    min-height: 100vh;
}

/* Hero Section */
.podcast-hero {
    padding: 100px 0 60px;
    background: linear-gradient(180deg, rgba(29, 185, 84, 0.06) 0%, transparent 100%);
    border-bottom: 1px solid var(--podcast-border);
}

.podcast-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(29, 185, 84, 0.15);
    color: var(--podcast-accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.podcast-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 16px;
}

.podcast-hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--podcast-text-muted);
    max-width: 560px;
}

.podcast-hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.podcast-hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--podcast-text-muted);
}

.podcast-hero-stat i {
    color: var(--podcast-accent);
}

.podcast-hero-cover {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Subscribe Buttons */
.podcast-subscribe-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.podcast-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.podcast-subscribe-btn--spotify {
    background: var(--podcast-accent);
    color: #fff;
}

.podcast-subscribe-btn--spotify:hover {
    background: var(--podcast-accent-hover);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.podcast-subscribe-btn--rss {
    background: rgba(255, 255, 255, 0.08);
    color: var(--podcast-text);
    border: 1px solid var(--podcast-border);
}

.podcast-subscribe-btn--rss:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Episodes Section */
.podcast-episodes {
    padding: 60px 0 80px;
}

.podcast-episodes-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--podcast-border);
}

.podcast-episodes-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.podcast-episodes-title i {
    color: var(--podcast-accent);
    margin-right: 8px;
}

.podcast-episodes-count {
    font-size: 0.875rem;
    color: var(--podcast-text-muted);
    margin: 0;
}

/* Episode Card */
.podcast-episode-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.podcast-episode-card {
    background: var(--podcast-card-bg);
    border: 1px solid var(--podcast-border);
    border-radius: var(--podcast-radius);
    padding: 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.podcast-episode-card:hover {
    border-color: rgba(29, 185, 84, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.podcast-episode-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.podcast-episode-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.podcast-episode-date,
.podcast-episode-region,
.podcast-episode-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--podcast-text-muted);
}

.podcast-episode-date i,
.podcast-episode-region i,
.podcast-episode-duration i {
    color: var(--podcast-accent);
    font-size: 0.75rem;
}

/* Episode Badges */
.podcast-episode-badges {
    display: flex;
    gap: 8px;
}

.podcast-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.podcast-badge--spotify {
    background: rgba(29, 185, 84, 0.15);
    color: var(--podcast-accent);
}

.podcast-badge--spotify:hover {
    background: rgba(29, 185, 84, 0.25);
    color: var(--podcast-accent-hover);
    text-decoration: none;
}

.podcast-episode-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.podcast-episode-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.podcast-episode-title a:hover {
    color: var(--podcast-accent);
    text-decoration: none;
}

.podcast-episode-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--podcast-text-muted);
    margin-bottom: 16px;
}

/* Embedded Audio Player */
.podcast-episode-player {
    margin-bottom: 16px;
}

.podcast-audio-player {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    filter: invert(1) hue-rotate(180deg) brightness(0.8) contrast(1.2);
}

.podcast-episode-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.podcast-episode-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--podcast-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.podcast-episode-link:hover {
    color: var(--podcast-accent-hover);
    text-decoration: none;
}

.podcast-episode-link--spotify {
    color: var(--podcast-text-muted);
    border-left: 1px solid var(--podcast-border);
    padding-left: 16px;
}

.podcast-episode-link--spotify:hover {
    color: var(--podcast-accent);
}

/* Search & filters toolbar */
.podcast-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 12px;
    padding: 20px;
    background: var(--podcast-surface);
    border: 1px solid var(--podcast-border);
    border-radius: var(--podcast-radius);
}

.podcast-toolbar-search {
    position: relative;
    flex: 1 1 220px;
    min-width: 0;
}

.podcast-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--podcast-text-muted);
    pointer-events: none;
    font-size: 0.9rem;
}

.podcast-search-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1px solid var(--podcast-border);
    border-radius: 8px;
    background: var(--podcast-card-bg);
    color: var(--podcast-text);
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.podcast-search-input::placeholder {
    color: var(--podcast-text-muted);
}

.podcast-search-input:focus {
    outline: none;
    border-color: var(--podcast-accent);
    box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.2);
}

.podcast-toolbar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 2 1 360px;
    align-items: flex-end;
}

.podcast-filter-select {
    flex: 1 1 140px;
    min-width: 0;
    max-width: 180px;
    padding: 10px 12px;
    border: 1px solid var(--podcast-border);
    border-radius: 8px;
    background: var(--podcast-card-bg);
    color: var(--podcast-text);
    font-size: 0.875rem;
    cursor: pointer;
}

.podcast-filter-select:focus {
    outline: none;
    border-color: var(--podcast-accent);
}

.podcast-toolbar-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding-bottom: 2px;
}

.podcast-clear-filters {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--podcast-accent);
    text-decoration: none;
    white-space: nowrap;
}

.podcast-clear-filters:hover {
    color: var(--podcast-accent-hover);
    text-decoration: underline;
}

.podcast-clear-filters--hidden {
    display: none;
}

.podcast-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    min-height: 0;
}

.podcast-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 12px;
    background: rgba(29, 185, 84, 0.12);
    border: 1px solid rgba(29, 185, 84, 0.35);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--podcast-text);
}

.podcast-filter-chip-remove {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--podcast-text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 2px;
    border-radius: 4px;
}

.podcast-filter-chip-remove:hover {
    color: var(--podcast-accent);
}

.podcast-inline-link {
    color: var(--podcast-accent);
    font-weight: 600;
    text-decoration: underline;
}

.podcast-inline-link:hover {
    color: var(--podcast-accent-hover);
}

.podcast-load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    margin-bottom: 24px;
}

.podcast-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    background: var(--podcast-accent);
    color: #0f1419;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.podcast-load-more-btn:hover:not(:disabled) {
    background: var(--podcast-accent-hover);
}

.podcast-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.podcast-load-more-spinner {
    font-size: 0.9rem;
    color: var(--podcast-text-muted);
}

/* Empty State */
.podcast-empty {
    text-align: center;
    padding: 80px 20px;
}

.podcast-empty-icon {
    font-size: 3rem;
    color: var(--podcast-text-muted);
    margin-bottom: 20px;
}

.podcast-empty h3 {
    color: #fff;
    margin-bottom: 8px;
}

.podcast-empty p {
    color: var(--podcast-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .podcast-hero {
        padding: 80px 0 40px;
    }

    .podcast-hero-title {
        font-size: 2rem;
    }

    .podcast-hero-subtitle {
        font-size: 1rem;
    }

    .podcast-hero-stats {
        flex-direction: column;
        gap: 8px;
    }

    .podcast-subscribe-buttons {
        flex-direction: column;
    }

    .podcast-subscribe-btn {
        justify-content: center;
    }

    .podcast-episodes-header {
        flex-direction: column;
        gap: 8px;
    }

    .podcast-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .podcast-toolbar-search {
        flex: none;
        width: 100%;
    }

    .podcast-toolbar-filters {
        flex: none;
        width: 100%;
        flex-direction: column;
    }

    .podcast-filter-select {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
    }

    .podcast-toolbar-actions {
        flex: none;
        justify-content: flex-start;
    }

    .podcast-episode-card {
        padding: 16px;
    }

    .podcast-episode-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .podcast-episode-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .podcast-episode-link--spotify {
        border-left: none;
        padding-left: 0;
    }
}
