/**
 * Content Filter Tabs Styles
 *
 * Tabbed filtering interface for content feed with counts and status indicators
 */

.content-filter-tabs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

/* ===== Filter Tabs Row ===== */

.content-filter-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 0 12px;
    scroll-behavior: smooth;

    /* Hide scrollbar but allow scrolling */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.content-filter-tabs::-webkit-scrollbar {
    display: none;
}

.content-filter-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.content-filter-tab:hover {
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.05);
    color: var(--text-primary);
}

.content-filter-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.content-filter-tab i {
    font-size: 0.9rem;
}

.content-filter-tab .tab-label {
    display: inline;
}

.content-filter-tab .tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.content-filter-tab.active .tab-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.content-filter-tab:hover .tab-badge {
    background: rgba(59, 130, 246, 0.15);
}

/* ===== Status Filter Row ===== */

.content-filter-status-row {
    display: flex;
    gap: 8px;
    padding: 0 12px;
    justify-content: center;
}

.status-filter-btn {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-filter-btn:hover {
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.05);
    color: var(--text-primary);
}

.status-filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ===== Responsive Design ===== */

@media (max-width: 768px) {
    .content-filter-tabs {
        padding: 0 8px;
        gap: 2px;
    }

    .content-filter-tab {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .content-filter-tab .tab-label {
        display: none;
    }

    .content-filter-status-row {
        padding: 0 8px;
        gap: 4px;
        flex-wrap: wrap;
    }

    .status-filter-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .content-filter-tabs-wrapper {
        padding: 8px 0;
        gap: 8px;
    }

    .content-filter-tabs {
        padding: 0 4px;
    }

    .content-filter-tab {
        padding: 4px 8px;
        font-size: 0.75rem;
        gap: 3px;
    }

    .content-filter-tab i {
        font-size: 0.85rem;
    }

    .content-filter-tab .tab-badge {
        min-width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }
}

/* ===== Dark Mode ===== */

@media (prefers-color-scheme: dark) {
    .content-filter-tabs-wrapper {
        background: rgba(168, 85, 247, 0.02);
    }

    .content-filter-tab {
        background: rgba(168, 85, 247, 0.05);
        border-color: rgba(168, 85, 247, 0.1);
    }

    .content-filter-tab:hover {
        background: rgba(168, 85, 247, 0.1);
        border-color: rgba(168, 85, 247, 0.2);
    }

    .content-filter-tab .tab-badge {
        background: rgba(168, 85, 247, 0.15);
    }

    .status-filter-btn {
        background: rgba(168, 85, 247, 0.05);
        border-color: rgba(168, 85, 247, 0.1);
    }

    .status-filter-btn:hover {
        background: rgba(168, 85, 247, 0.1);
        border-color: rgba(168, 85, 247, 0.2);
    }
}
