/* =====================================================
   Feed Config - Page de configuration des fils
   ===================================================== */

/* Feed cards */
.feed-card {
    transition: box-shadow 0.2s;
}

.feed-card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1) !important;
}

.feed-label-input {
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid transparent;
    padding: 4px 8px;
    border-radius: 4px;
    max-width: 300px;
}

.feed-label-input:focus {
    border-color: #4a6fa5;
    box-shadow: 0 0 0 0.2rem rgba(74, 111, 165, 0.15);
}

/* Scope toggle - création */
.feed-scope-toggle {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feed-scope-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.feed-scope-option:hover {
    border-color: #4a6fa5;
    background: rgba(74, 111, 165, 0.03);
}

.feed-scope-option input:checked + .feed-scope-label {
    color: #4a6fa5;
}

.feed-scope-option:has(input:checked) {
    border-color: #4a6fa5;
    background: rgba(74, 111, 165, 0.05);
}

.feed-scope-label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    font-weight: 500;
}

.feed-scope-label small {
    font-weight: 400;
    color: #6c757d;
    font-size: 0.8rem;
}

.feed-scope-label i {
    margin-right: 4px;
}

/* Scope inline - dans les cartes existantes */
.feed-scope-inline {
    margin-top: 4px;
}

.feed-scope-inline label {
    cursor: pointer;
    color: #6c757d;
}

.feed-scope-inline label:has(input:checked) small {
    color: #4a6fa5;
    font-weight: 600;
}

.feed-scope-inline input[type="radio"] {
    margin-right: 3px;
}

/* Tag badges (selected) */
.fc-tags-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
}

.fc-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 15px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
}

.fc-tag-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1;
    padding: 0 0 0 3px;
    cursor: pointer;
}

.fc-tag-remove:hover {
    color: #fff;
}

/* Tag panel */
.fc-tag-panel {
    margin-top: 8px;
    border: 1px solid #dee2e6;
    border-radius: 0.4rem;
    background: #fff;
    max-height: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fc-tag-panel-header {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.fc-tag-panel-header input {
    flex: 1;
}

.fc-tag-panel-body {
    overflow-y: auto;
    padding: 10px;
    max-height: 240px;
}

.fc-tag-category {
    margin-bottom: 10px;
}

.fc-tag-category-label {
    font-weight: 600;
    font-size: 0.78rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.fc-tag-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fc-tag-option {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 15px;
    border: 2px solid #dee2e6;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    color: #374151;
}

.fc-tag-option:hover {
    background: #f0f0f0;
}

.fc-tag-option.selected {
    background: #e8f5e9;
    border-color: #4caf50;
    font-weight: 600;
}

.fc-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Responsive */
@media (max-width: 576px) {
    .feed-label-input {
        max-width: 100%;
    }

    .feed-scope-toggle {
        flex-direction: column;
    }
}
