/* Tag Strip — horizontally scrollable tag list for mobile */

.tag-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;

    /* Hide scrollbar but keep scroll functionality */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.tag-strip::-webkit-scrollbar {
    display: none;
}

.tag-strip-pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.375rem 0.75rem;
    border-radius: 50rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    background: var(--bs-body-secondary-bg, #e9ecef);
    color: var(--bs-body-secondary-color, #6c757d);
    border: 1px solid var(--bs-border-color);
    transition: background-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.tag-strip-pill:hover {
    background: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
    text-decoration: none;
}

/* Fade hint on right edge to signal scrollability */
.tag-strip-section {
    position: relative;
}

.tag-strip-section::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 2rem;
    height: calc(100% - 1.5rem);
    background: linear-gradient(to right, transparent, var(--bs-body-bg));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Show fade hint only when strip is scrollable (has overflow) */
.tag-strip-section.has-overflow::after {
    opacity: 1;
}
