/**
 * Card Filters Component Styles
 * Toggle button + slide-out panel
 */

.card-filters {
    display: flex;
    align-items: center;
    gap: 0;
    margin-inline-start: 12px;
}

/* Toggle button (filter icon) */
.filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.filter-toggle:hover {
    background: var(--interactive-hover);
    color: var(--text-primary);
}

.filter-toggle-active {
    color: var(--blue-primary);
}

/* Slide-out panel */
.filter-panel {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

/* Filter buttons */
.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    user-select: none;
}

.filter-btn:hover {
    background: transparent;
    color: var(--text-primary);
}

.filter-btn:active {
    transform: scale(0.97);
}

/* Active state */
.filter-btn-active {
    background: transparent;
    border-color: transparent;
    color: var(--blue-primary);
    font-weight: 600;
}

.filter-btn-active:hover {
    background: transparent;
    border-color: transparent;
}

/* "All" filter special styling */
.filter-btn-all {
    border-color: transparent;
}

.filter-btn-all.filter-btn-active {
    background: transparent;
    border-color: transparent;
    color: var(--text-primary);
}

.filter-btn-all.filter-btn-active:hover {
    background: transparent;
}

/* Focus state for accessibility */
.filter-btn:focus-visible,
.filter-toggle:focus-visible {
    outline: 2px solid var(--blue-primary);
    outline-offset: 2px;
}

/* Empty state - no filters available */
.card-filters:empty {
    display: none;
}

/* Dashboard (transparent) cards: hide filters by default, show on hover via GSAP */
.card.card-transparent .card-filters {
    opacity: 0;
    pointer-events: none;
}
