/*
Theme Name: crypto.news
Template: base
Theme URI: https://crypto.news
Author: Igor Avramchuk
Author URI: https://crypto.news
Description: The crypto.news theme
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cn
*/

/* ─── Learn topic filter pills ──────────────────────────────────────────── */

.learn-filters {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    overflow: hidden;
}

.learn-filters__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
    flex: 1;
}

.learn-filters__nav::-webkit-scrollbar {
    display: none;
}

.learn-filters__pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--cn-border-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--cn-text-color);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background-color 0.15s;
    flex-shrink: 0;
}

.learn-filters__pill:hover {
    border-color: var(--cn-primary-color);
    color: var(--cn-primary-color);
}

.learn-filters__pill--active {
    background-color: var(--cn-primary-color);
    border-color: var(--cn-primary-color);
    color: #fff;
}

.learn-filters__pill--active:hover {
    color: #fff;
}

.learn-filters__arrow {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--cn-primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1;
}

@media (max-width: 767px) {
    .learn-filters__arrow {
        display: flex;
    }
}

/* ─── Breadcrumb in post detail header ──────────────────────────────────── */

.post-detail__header .breadcrumbs {
    margin-top: 0;
    margin-bottom: 12px;
}
