/* ==========================================================================
   NeoUser — Feed
   ========================================================================== */

.neo-feed-wrap {
  max-width: 680px;
  margin: 32px auto;
}

/* --------------------------------------------------------------------------
   Composer
   -------------------------------------------------------------------------- */
.nf-composer {
  margin-bottom: 24px;
  padding: 20px 24px 16px;
  max-width: 100%;
}

.nf-composer textarea {
  width: 100%;
  border: 1.5px solid rgba(var(--neo-primaer-rgb), 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--neo-dunkel, #333d40);
  background: rgba(255,255,255,0.5);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.nf-composer textarea:focus { border-color: var(--neo-primaer, #ffa500); }

.nf-composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.nf-charcount {
  font-size: 12px;
  color: #aaa;
}
.nf-charcount.is-warn { color: #e07000; }

.nf-inline-meldung {
  margin-top: 8px;
  font-size: 13px;
  color: #c00;
}

/* --------------------------------------------------------------------------
   Post-Karte
   -------------------------------------------------------------------------- */
.nf-post {
  background: rgba(var(--neo-hg-rgb), 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(var(--neo-primaer-rgb), 0.18);
  border-radius: 14px;
  padding: 20px 22px 16px;
  margin-bottom: 18px;
  animation: nf-fade-in 0.2s ease;
}

.nf-post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.nf-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--neo-primaer, #ffa500);
  flex-shrink: 0;
}

.nf-post-meta { flex: 1; min-width: 0; }
.nf-post-meta .nf-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--neo-dunkel, #333d40);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nf-post-meta .nf-zeit {
  font-size: 12px;
  color: #aaa;
}

.nf-post-menu {
  position: relative;
}
.nf-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  font-size: 18px;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
}
.nf-menu-btn:hover { background: rgba(0,0,0,0.06); color: #555; }

.nf-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  min-width: 140px;
  z-index: 100;
  display: none;
}
.nf-dropdown.is-open { display: block; }
.nf-dropdown button {
  display: block;
  width: 100%;
  padding: 9px 14px;
  text-align: left;
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  color: var(--neo-dunkel, #333d40);
}
.nf-dropdown button:hover { background: rgba(var(--neo-primaer-rgb), 0.08); }
.nf-dropdown button.is-danger { color: #c00; }

/* --------------------------------------------------------------------------
   Inhalt + Link-Preview
   -------------------------------------------------------------------------- */
.nf-inhalt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--neo-dunkel, #333d40);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 12px;
}

.nf-link-preview {
  border: 1.5px solid rgba(var(--neo-primaer-rgb), 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  text-decoration: none;
  display: block;
  color: inherit;
  transition: border-color 0.15s;
}
.nf-link-preview:hover { border-color: var(--neo-primaer, #ffa500); }

.nf-link-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.nf-link-meta {
  padding: 10px 14px;
}
.nf-link-titel {
  font-size: 13px;
  font-weight: 600;
  color: var(--neo-dunkel, #333d40);
  margin-bottom: 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.nf-link-domain {
  font-size: 11px;
  color: #aaa;
}

/* --------------------------------------------------------------------------
   Aktionsleiste
   -------------------------------------------------------------------------- */
.nf-actions {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(var(--neo-primaer-rgb), 0.12);
}

.nf-action-btn {
  background: none;
  border: 1.5px solid rgba(var(--neo-primaer-dunkel-rgb), 0.25);
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--neo-dunkel, #333d40);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nf-action-btn:hover { background: rgba(var(--neo-primaer-rgb), 0.1); border-color: var(--neo-primaer, #ffa500); }
.nf-action-btn.is-liked {
  background: linear-gradient(135deg, var(--neo-primaer, #ffa500), var(--neo-primaer-dunkel, #e09900));
  border-color: var(--neo-primaer, #ffa500);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Kommentare
   -------------------------------------------------------------------------- */
.nf-kommentare {
  margin-top: 14px;
  display: none;
}
.nf-kommentare.is-open { display: block; }

.nf-kommentar {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.nf-kommentar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(var(--neo-primaer-rgb), 0.3);
  flex-shrink: 0;
}
.nf-kommentar-body {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(var(--neo-primaer-rgb), 0.15);
  border-radius: 10px;
  padding: 8px 12px;
  flex: 1;
  min-width: 0;
}
.nf-kommentar-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--neo-dunkel, #333d40);
  margin-bottom: 2px;
}
.nf-kommentar-text {
  font-size: 13px;
  color: var(--neo-dunkel, #333d40);
  word-break: break-word;
  white-space: pre-wrap;
}
.nf-kommentar-footer {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.nf-kommentar-zeit { font-size: 11px; color: #aaa; }
.nf-kommentar-aktion {
  font-size: 11px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #aaa;
}
.nf-kommentar-aktion:hover { color: #c00; }

.nf-kommentar-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.nf-kommentar-input {
  flex: 1;
  border: 1.5px solid rgba(var(--neo-primaer-rgb), 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  color: var(--neo-dunkel, #333d40);
  background: rgba(255,255,255,0.5);
  transition: border-color 0.2s;
}
.nf-kommentar-input:focus { border-color: var(--neo-primaer, #ffa500); }

.nf-kommentar-senden {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--neo-primaer, #ffa500), var(--neo-primaer-dunkel, #e09900));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Leer + Keyframe
   -------------------------------------------------------------------------- */
.nf-empty {
  text-align: center;
  padding: 48px 24px;
  color: #bbb;
  font-size: 15px;
}

@keyframes nf-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .nf-post { animation: none; }
}
