/* ============================================
   COURSE TAG FILTER — Szűrő sáv & animációk
   ============================================ */

/* --- Filter Bar Section --- */
.filter-bar-section {
    background: white;
    padding: var(--space-md) 0;
    position: sticky;
    top: 72px;
    z-index: 90;
    border-bottom: 1px solid var(--cream-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
    align-items: center;
}

/* --- Pill Buttons --- */
.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.15rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-muted);
    background: var(--cream-dark);
    border: 2px solid transparent;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.filter-tag:hover {
    background: var(--teal-lightest);
    color: var(--teal-dark);
    border-color: var(--teal-light);
    transform: translateY(-1px);
}

.filter-tag.active {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}

.filter-tag.active:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    color: white;
}

/* --- Card Inline Tags --- */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: var(--space-sm);
}

.card-tags .card-tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--teal-dark);
    background: var(--teal-lightest);
    border: 1px solid var(--teal-light);
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.card-tags .card-tag:hover {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}

/* --- Card Show/Hide Animation --- */
.filter-fading {
    opacity: 0 !important;
    transform: scale(0.95) !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.filter-hidden {
    display: none !important;
}

/* --- Tier Group Empty State --- */
.tier-empty {
    display: none !important;
}

/* --- No Results Message --- */
.filter-no-results {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    color: var(--text-muted);
}

.filter-no-results p {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.filter-no-results .filter-tag {
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
}

/* --- Responsive: Tablet --- */
@media (max-width: 991px) {
    .filter-bar-section {
        top: 64px;
    }
    .filter-tag {
        font-size: 0.82rem;
        padding: 0.4rem 1rem;
    }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
    .filter-bar-section {
        top: 56px;
        padding: var(--space-sm) 0;
    }
    .filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        padding: 0 var(--space-sm);
        gap: 6px;
    }
    .filter-bar::-webkit-scrollbar {
        display: none;
    }
    .filter-tag {
        font-size: 0.78rem;
        padding: 0.35rem 0.9rem;
        flex-shrink: 0;
    }
}
