/* CareConnect – Informationsmanagement: Persönlicher Feed (Phase I2) */

.cc-infeed-wrap { font-size: .95rem; color: #1a1a2e; max-width: 780px; margin: 0 auto; }
.cc-infeed-wrap * { box-sizing: border-box; }

.cc-infeed-filterleiste {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
    position: sticky; top: 0; background: #fff; padding: 8px 0; z-index: 5;
}
.cc-infeed-filterleiste input[type="text"] {
    flex: 1 1 220px; padding: 8px 12px; border: 1px solid #ccc; border-radius: 8px; font-size: .9rem;
}
.cc-infeed-filterleiste select {
    padding: 8px 10px; border: 1px solid #ccc; border-radius: 8px; font-size: .9rem;
}
.cc-infeed-toggle { display: flex; align-items: center; gap: 5px; font-size: .85rem; white-space: nowrap; }

.cc-infeed-section { margin-bottom: 26px; }
.cc-infeed-section h3 { font-size: 1rem; margin: 0 0 10px; }
.cc-infeed-section-toggle { cursor: pointer; user-select: none; }
.cc-infeed-caret { display: inline-block; transition: transform .15s; }
.cc-infeed-section-toggle.offen .cc-infeed-caret { transform: rotate(90deg); }

.cc-infeed-hinweis { color: #888; font-size: .85rem; }

.cc-infeed-karte {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; border: 1px solid #eef1f5; border-radius: 10px; margin-bottom: 8px;
    background: #fff; cursor: pointer; transition: box-shadow .15s;
}
.cc-infeed-karte:hover { box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.cc-infeed-karte.gelesen { opacity: .65; }

.cc-infeed-karte-titel { font-weight: 600; margin-bottom: 3px; }
.cc-infeed-karte-meta { font-size: .76rem; color: #888; }
.cc-infeed-karte-tags { margin-top: 4px; }

.cc-infeed-prio-dot { font-size: 1.1rem; line-height: 1; margin-top: 2px; }

/* ── KI-Suche ── */
.cc-infeed-ki-suche {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    background: linear-gradient(135deg, #f2f6fb, #eef1f5); border-radius: 10px;
    padding: 10px 12px; margin-bottom: 14px;
}
.cc-infeed-ki-suche input[type="text"] {
    flex: 1 1 260px; padding: 8px 12px; border: 1px solid #cdd8e4; border-radius: 8px; font-size: .88rem;
}
#cc-infeed-ki-suche-antwort {
    flex-basis: 100%; background: #fff; border-radius: 8px; padding: 10px 12px; font-size: .88rem;
}

/* ── KI-Zusammenfassung (im Detail-Dialog) ── */
.cc-infeed-ki-box {
    background: #f2f6fb; border-left: 3px solid #0078d4; border-radius: 6px;
    padding: 10px 14px; margin-bottom: 14px; font-size: .88rem;
}
.cc-infeed-ki-label { font-weight: 700; color: #0078d4; margin-bottom: 6px; }
.cc-infeed-ki-box ul { margin: 0 0 8px; padding-left: 18px; }
.cc-infeed-ki-box p { margin: 0 0 8px; }
.cc-infeed-ki-lesezeit { color: #888; font-size: .8rem; margin-bottom: 0 !important; }

/* ── Eigenständiges Modal (admin.css ist im Frontend nicht geladen) ── */
.cc-infeed-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100000;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cc-infeed-modal-inner {
    background: #fff; border-radius: 10px; max-width: 640px; width: 100%;
    max-height: 88vh; overflow-y: auto; padding: 22px 26px;
}
.cc-infeed-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 1.05rem; font-weight: 600; margin-bottom: 8px;
}
.cc-infeed-meta { color: #888; font-size: .8rem; margin-bottom: 14px; }
.cc-infeed-modal-inhalt { line-height: 1.55; }
.cc-infeed-modal-footer { margin-top: 18px; display: flex; justify-content: flex-end; }

@media (max-width: 600px) {
    .cc-infeed-filterleiste { flex-direction: column; align-items: stretch; }
    .cc-infeed-karte { padding: 10px; }
    .cc-infeed-modal-inner { padding: 16px 18px; max-height: 92vh; }
}
