/* Episodes Page Styles */

.episodes-section {
    padding: 4rem 0;
    background: #F2F5F5;
    min-height: 100vh;
}

/* Search Container */
.search-container {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #E5E7EB;
    border-radius: 50px;
    background: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #0098EE;
    box-shadow: 0 4px 12px rgba(0, 152, 238, 0.15);
}

/* Quick Filters */
.quick-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-tag {
    padding: 0.5rem 1.25rem;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.filter-tag:hover {
    border-color: #0098EE;
    color: #0098EE;
    transform: translateY(-2px);
}

.filter-tag.active {
    background: #0098EE;
    border-color: #0098EE;
    color: white;
}

/* Results Info */
.results-info {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
    font-size: 1rem;
}

/* Episodes Grid */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(192px, 1fr));
    gap: 1.2rem;
}

/* Episode Card */
.episode-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.episode-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.episode-thumbnail {
    width: 100%;
    height: 108px;
    object-fit: cover;
    background: linear-gradient(135deg, #003452 0%, #004C76 100%);
}

.episode-content {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.episode-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.episode-number {
    display: inline-block;
    background: #0098EE;
    color: white;
    padding: 0.15rem 0.45rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    flex-shrink: 0;
}

.episode-guest {
    font-size: 0.75rem;
    color: #0098EE;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.episode-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #003452;
    line-height: 1.3;
}

.episode-summary {
    display: none;
}

.episode-meta {
    display: none;
}

.episode-date {
    display: none;
}

.episode-arrow {
    display: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    padding: 1rem;
    z-index: 10;
    background: white;
}

.modal-close:hover {
    color: #003452;
}

.modal-body {
    padding: 2rem;
    padding-top: 0;
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-episode-number {
    display: inline-block;
    background: #0098EE;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #003452;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.modal-guest {
    font-size: 1.2rem;
    color: #0098EE;
    font-weight: 500;
    margin-bottom: 1rem;
}

.modal-summary {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #F8F9FA;
    border-left: 3px solid #0098EE;
    border-radius: 5px;
}

.modal-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #E5E7EB;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #003452;
    margin-bottom: 1rem;
}

.modal-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.modal-tag {
    background: #F2F5F5;
    color: #003452;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.modal-takeaways {
    list-style: none;
    padding: 0;
}

.modal-takeaways li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #F2F5F5;
    border-left: 4px solid #0098EE;
    border-radius: 5px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.modal-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #003452;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.platform-link:hover {
    background: #0098EE;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 152, 238, 0.3);
}

.platform-link.youtube {
    background: #FF0000;
}

.platform-link.spotify {
    background: #1DB954;
}

.platform-link.apple {
    background: #9933CC;
}

/* Responsive Design */
@media (max-width: 768px) {
    .episodes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .quick-filters {
        gap: 0.5rem;
    }

    .filter-tag {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .modal-content {
        margin: 1rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-links {
        flex-direction: column;
    }

    .platform-link {
        width: 100%;
        justify-content: center;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 4rem 0;
    color: #666;
}

.loading-spinner {
    border: 4px solid #E5E7EB;
    border-top: 4px solid #0098EE;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #003452;
    margin-bottom: 0.5rem;
}
