/* =====================================================
   Feed Tabs - Onglets du fil d'actualités
   ===================================================== */

.feed-tabs-container {
    position: relative;
    margin-bottom: 16px;
}

.feed-tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #c4c4c4 transparent;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0;
}

.feed-tabs-nav::-webkit-scrollbar {
    height: 4px;
}

.feed-tabs-nav::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 2px;
}

.feed-tab {
    padding: 10px 16px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: -2px;
    user-select: none;
}

.feed-tab:hover {
    color: #4a6fa5;
    background: rgba(74, 111, 165, 0.05);
    border-radius: 8px 8px 0 0;
}

.feed-tab.active {
    color: #4a6fa5;
    border-bottom-color: #4a6fa5;
    font-weight: 600;
}

.feed-tab i {
    font-size: 0.82rem;
}

.feed-tab-add {
    border-bottom: none !important;
    padding: 10px 12px;
}

.feed-tab-add a {
    color: #6c757d;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.2s;
}

.feed-tab-add a:hover {
    color: #4a6fa5;
    background: rgba(74, 111, 165, 0.1);
}

/* Loading state */
.feed-loading {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.feed-loading .spinner-border {
    width: 2rem;
    height: 2rem;
    margin-bottom: 15px;
    color: #4a6fa5;
}

.feed-loading p {
    font-size: 0.9rem;
    margin: 0;
}

/* Error state */
.feed-error {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
}

.feed-error i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .feed-tabs-nav {
        -webkit-overflow-scrolling: touch;
    }

    .feed-tab {
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .feed-tab span {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
