

/* ========== 1. MAIN CONTAINER & HEADER ========== */
.podcasts-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.podcasts-header {
    text-align: center;
    margin-bottom: 3rem;
}

.podcasts-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.podcasts-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}


.icons-network-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border-radius: 20px;
    font-size: 12px;
    padding: 6px 6px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: subtle-glow 2s ease-in-out infinite alternate;
}

.icons-network-badge:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.icons-network-badge .badge-text {
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.icons-network-badge .badge-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border-radius: 22px;
    opacity: 0.6;
    filter: blur(8px);
    z-index: -1;
}
/* ========== 2. SEARCH & FILTER COMPONENTS ========== */
.search-filter-container {
    max-width: 1100px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
}

.search-bar-alone {
    margin-bottom: 1.1rem;
    width: 100%;
}

.filters-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Search Bar */
.podcast-search {
    flex: 1 1 240px;
    min-width: 180px;
    position: relative;
}

.podcast-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--input-background);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.podcast-search input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(228, 168, 83, 0.1);
}

.podcast-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Area Filter Styles */
.area-filter {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 1rem;
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.filter-label i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.area-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.area-btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--input-background);
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.area-btn:hover {
    background: var(--hover-background);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.area-btn.active {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* Podcast Area Information */
.podcast-area {
    position: absolute;
    top: 0;
    left: 5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    z-index: 2;
}

.podcast-area i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Area Bubble Styles */
.area-bubble {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Filter Button Styles */
.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.68rem 1.25rem;
    background: var(--input-background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.filter-btn:hover {
    background: var(--hover-background);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.filter-btn i {
    font-size: 1.05rem;
    transition: color 0.2s;
}

.filter-btn.filter-bookmark.active,
.filter-btn.filter-bookmark:active {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.filter-btn.filter-reset {
    background: #f9fafb;
    color: var(--secondary-color);
    border-color: #f9820e;
    margin-left: auto;
}

.filter-btn.filter-reset:hover {
    background: var(--secondary-color);
    color: #fff;
}

.bookmark-filter,
.theme-filter-dropdown,
.icons-filter-dropdown,
.area-filter-dropdown {
    flex-shrink: 0;
}



.btn-reset {
    background-color: #f3f3f3;
    border: 1px solid #ccc;
    color: #333;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, color 0.2s, border 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    cursor: pointer;
}

.btn-reset:hover {
    background-color: #e0e0e0;
    border-color: #999;
    color: #000;
}

.btn-reset i {
    font-size: 14px;
}

/* ========== 3. PODCAST CARDS ========== */
.podcast-card {
    background: var(--card-background);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.podcast-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--secondary-color);
}

.podcast-image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.podcast-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.podcast-card:hover .podcast-image img {
    transform: scale(1.08);
}

/* Podcast Content Styles */
.podcast-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    justify-content: space-between;
}

.podcast-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.5rem;
}

.podcast-title i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    background: rgba(228, 168, 83, 0.1);
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.podcast-card:hover .podcast-title i {
    transform: scale(1.1);
    background: rgba(228, 168, 83, 0.2);
}

.podcast-title h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-host, .podcast-location, .podcast-themes {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.podcast-host i, .podcast-location i , .podcast-themes i {
    font-size: 1.2rem;
    color: var(--text-secondary);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.podcast-card:hover .podcast-host i, .podcast-card:hover .podcast-location i, .podcast-card:hover .podcast-themes i {
    color: var(--secondary-color);
    opacity: 1;
}

.podcast-host span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: visible;
    text-overflow: clip;
}

/* Card Actions */
.card-actions {
    position: absolute;
    top: 4px;
    right: 0px;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.action-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn i {
    font-size: 1.2rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.action-btn.active i {
    color: var(--primary-color);
}

.bookmark-btn.active i {
    font-weight: 900;
}

.like-btn.active i {
    color: #ff4b4b;
    font-weight: 900;
}

/* Podcast Action Button */
.podcast-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f9820e 100%);
    color: white;
    margin-top: auto;
    width: 100%;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(228, 168, 83, 0.2);
    position: relative;
    overflow: hidden;
}

.podcast-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.podcast-action-btn:hover::before {
    left: 100%;
}

.podcast-action-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f9820e 0%, var(--secondary-color) 100%);
    box-shadow: 0 4px 12px rgba(228, 168, 83, 0.3);
}

.podcast-action-btn:active {
    transform: translateY(0);
}

.podcast-action-btn i {
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.podcast-action-btn span {
    position: relative;
    z-index: 1;
}

/* ========== 4. DROPDOWN COMPONENTS ========== */
.theme-filter-dropdown,
.icons-filter-dropdown,
.area-filter-dropdown {
    position: relative;
    display: inline-block;
    min-width: 200px;
    max-width: 100%;
    width: auto;
    vertical-align: top;
}

.theme-dropdown-btn,
.icons-dropdown-btn,
.area-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-background);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.theme-dropdown-btn:hover,
.icons-dropdown-btn:hover,
.area-dropdown-btn:hover {
    border-color: var(--secondary-color);
    background: var(--hover-background);
}

.theme-dropdown-btn i:first-child,
.icons-dropdown-btn i:first-child,
.area-dropdown-btn i:first-child {
    color: var(--secondary-color);
}

.theme-dropdown-btn i:last-child,
.icons-dropdown-btn i:last-child,
.area-dropdown-btn i:last-child {
    margin-left: auto;
    font-size: 0.95rem;
    transition: transform 0.3s;
}

.theme-dropdown-btn.active i:last-child,
.icons-dropdown-btn.active i:last-child,
.area-dropdown-btn.active i:last-child {
    transform: rotate(180deg);
}

.theme-dropdown-content,
.icons-dropdown-content,
.area-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: none;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 220px;
    width: max-content;
    max-width: 370px;
    box-sizing: border-box;
}

.theme-dropdown-content.show,
.icons-dropdown-content.show,
.area-dropdown-content.show {
    display: block;
}

.theme-dropdown-item,
.icons-dropdown-item,
.area-dropdown-item {
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-color);
    font-size: 1rem;
    border-bottom: 1px solid #f3f3f3;
    min-width: 220px;
    white-space: nowrap;
    background: transparent;
}

.theme-dropdown-item:last-child,
.icons-dropdown-item:last-child,
.area-dropdown-item:last-child {
    border-bottom: none;
}

.theme-dropdown-item:hover,
.icons-dropdown-item:hover,
.area-dropdown-item:hover {
    background: var(--hover-background);
    color: var(--secondary-color);
}

.theme-dropdown-item.active,
.area-dropdown-item.active {
    background: var(--secondary-color);
    color: var(--white);
}

.theme-dropdown-search,
.icons-dropdown-search,
.area-dropdown-search {
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.theme-dropdown-search input,
.icons-dropdown-search input,
.area-dropdown-search input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.97rem;
    background: #fff;
    color: var(--text-color);
    box-sizing: border-box;
}

/* ========== 5. LOADING STATES ========== */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loading-overlay .spinner {
    color: #fff;
}

/* ========== 6. RESPONSIVE STYLES ========== */
@media (max-width: 900px) {
    .filters-row {
        gap: 0.5rem;
    }

    #resetFilters {
        min-width: 90px;
    }
}

@media (max-width: 768px) {
    /* Main Container & Header */
    .podcasts-container {
        padding: 3rem 1.5rem;
    }

    .podcasts-header h1 {
        font-size: 2rem;
    }

    .podcast-search {
        margin-bottom: 2rem;
    }

    /* Search & Filter */
    .search-filter-container {
        padding: 0 0.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .filter-btn {
        width: 100%;
        margin-left: 0;
    }

    .podcast-search,
    .bookmark-filter,
    .theme-filter-dropdown,
    .area-filter-dropdown,
    #resetFilters {
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }

    /* Area Filter */
    .area-filter {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .area-buttons {
        gap: 0.5rem;
    }

    .area-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Dropdowns */
    .theme-filter-dropdown,
    .area-filter-dropdown {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .theme-dropdown-btn,
    .area-dropdown-btn {
        width: 100%;
        min-width: 0;
    }

    .theme-dropdown-content,
    .area-dropdown-content {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .theme-dropdown-item,
    .area-dropdown-item {
        min-width: 0 !important;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    /* Main Container & Header */
    .podcasts-container {
        padding: 2rem 1rem;
    }

    .podcasts-header h1 {
        font-size: 1.75rem;
    }

    /* Podcast Cards */
    .podcast-content {
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .podcast-title i {
        font-size: 1.25rem;
        padding: 0.4rem;
    }

    .podcast-title h3 {
        font-size: 1.2rem;
    }

    .podcast-host {
        font-size: 0.9rem;
    }

    .podcast-host i {
        font-size: 1.1rem;
    }

    .podcast-image {
        height: auto;
    }

    .podcast-image img {
        height: auto;
        object-fit: contain;
    }

    /* Area Filter */
    .area-filter {
        padding: 0.5rem;
    }

    .filter-label {
        font-size: 0.9rem;
    }

    .area-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* ========== 7. DARK MODE OVERRIDES ========== */
[data-theme="dark"] .podcast-card {
    background: var(--card-background);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .podcast-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .podcast-title i {
    background: rgba(228, 168, 83, 0.15);
}

[data-theme="dark"] .podcast-card:hover .podcast-title i {
    background: rgba(228, 168, 83, 0.25);
}

[data-theme="dark"] .action-btn {
    background: transparent;
}

[data-theme="dark"] .area-bubble {
    background: rgba(30, 41, 59, 0.95);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-dropdown-search input,
[data-theme="dark"] .area-dropdown-search input {
    background: #1c2432;
    color: #fff;
    border-color: #2c3550;
}
[data-theme="dark"] .theme-dropdown-search,
[data-theme="dark"] .area-dropdown-search {
    background: #232d3e;
    border-bottom-color: #222c3c;
}
[data-theme="dark"] ::placeholder {
    color: #b2b7c2 !important;
    opacity: 1;
}


@keyframes subtleMove {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
    100% {
        transform: translateY(0);
    }
}


