/* Digitana Social - Profil Feed / Datum-Uhrzeit
   Feinschliff 2026-05-21 Kommentare ausgelagert
   Zweck: Feed-, Post-, Bild-, Link- und Sichtbarkeitsregeln.
   Kommentar-/Antwortregeln liegen in comments.css. */

/* Aus base.css verschoben: alte Zeilen 3932-4185 */
.ds-profile-feed-column,
.ds-profile-feed-list {
  min-width: 0;
}

.ds-profile-feed-compose {
  margin-bottom: 18px;
  padding: 13px 14px;
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(0,0,0,0.98), rgba(8,14,18,0.98));
  box-shadow: inset 0 0 0 1px rgba(215,237,255,0.08), 0 10px 20px rgba(0,0,0,0.24);
}

.ds-profile-feed-textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(28,31,34,0.98), rgba(0,0,0,0.99));
  color: var(--ds-text);
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(215,237,255,0.26), inset 0 10px 18px rgba(0,0,0,0.54), 0 0 10px rgba(215,237,255,0.06);
  outline: none;
}

.ds-profile-feed-textarea:focus,
.ds-profile-friend-search:focus {
  box-shadow: inset 0 0 0 1px rgba(235,248,255,0.48), inset 0 10px 18px rgba(0,0,0,0.48), 0 0 12px rgba(215,237,255,0.18);
}

.ds-profile-feed-compose-actions,
.ds-profile-post-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 12px;
  margin-top: 9px;
}

.ds-profile-feed-camera,
.ds-profile-icon-link {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #eaf6ff;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(218,237,249,0.24), rgba(12,18,24,0.98));
  box-shadow: inset 0 0 0 1px rgba(215,237,255,0.16), 0 0 9px rgba(215,237,255,0.08);
}

.ds-profile-feed-camera input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.ds-profile-feed-visibility {
  position: relative;
}

.ds-profile-feed-visibility select,
.ds-profile-status-edit select {
  margin-top: 8px;
  max-width: 210px;
}

.ds-profile-feed-post {
  padding: 10px 2px 14px;
}

.ds-profile-feed-post + .ds-profile-feed-post::before {
  content: "";
  display: block;
  width: 130px;
  height: 1px;
  margin: 4px auto 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ds-profile-accent) 34%, rgba(215,237,255,0.26)), transparent);
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.78), 0 0 8px color-mix(in srgb, var(--ds-profile-accent) 16%, transparent);
}

.ds-profile-post-head,
.ds-profile-friends-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #9fc6dc;
  font-size: 0.82rem;
}

.ds-profile-post-head a,
.ds-profile-friend-row,
.ds-profile-inline-link {
  color: #dff5ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-shadow: 0 0 7px rgba(32,169,255,0.22);
}

.ds-profile-post-content {
  margin: 8px 0;
  color: #eaf6ff;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ds-profile-post-image {
  display: block;
  max-width: 100%;
  max-height: 560px;
  margin: 10px 0;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 12px 24px rgba(0,0,0,0.34), inset 0 0 0 1px rgba(215,237,255,0.10);
}

.ds-profile-embed {
  position: relative;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 16 / 9;
  margin: 10px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(215,237,255,0.14), 0 12px 24px rgba(0,0,0,0.34);
}

.ds-profile-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.ds-profile-link-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  max-width: 680px;
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  color: #eaf6ff;
  text-decoration: none;
  background: linear-gradient(120deg, rgba(12,18,23,0.98), rgba(0,0,0,0.99));
  box-shadow: inset 0 0 0 1px rgba(215,237,255,0.12);
}

.ds-profile-link-card img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 5px;
}

.ds-profile-link-card small {
  display: block;
  margin-top: 4px;
  color: #aac8d9;
  line-height: 1.35;
}

.ds-profile-muted-small {
  color: #9fc4d8;
  font-size: 0.78rem;
}

.ds-profile-inline-editor,
.ds-profile-inline-delete {
  display: inline-flex;
  margin: 0;
  align-items: center;
}


/* Aus base.css verschoben: alte Zeilen 4592-4637 */
.ds-profile-feed-compose-actions,
.ds-profile-post-actions {
  gap: 7px 9px;
}

.ds-profile-feed-compose-actions .ds-profile-send-icon {
  margin-left: auto;
}

.ds-profile-inline-editor form {
  display: grid;
  gap: 7px;
  min-width: min(460px, 72vw);
}

.ds-profile-inline-editor .ds-profile-send-icon {
  justify-self: end;
}

/* Aus base.css verschoben: alte Zeilen 4809-4815 */
.ds-profile-feed-post + .ds-profile-feed-post::before {
  width: min(520px, 72%);
  height: 3px;
  margin: 10px auto 22px;
  background: linear-gradient(90deg, transparent, var(--ds-profile-divider), rgba(255,255,255,0.86), var(--ds-profile-divider), transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--ds-profile-accent) 48%, transparent), 0 0 2px rgba(255,255,255,0.65);
}

/* Aus base.css verschoben: alte Zeilen 4834-4852 */

/* Aus base.css verschoben: alte Zeilen 5042-5045 */
.ds-profile-post-image {
  max-width: min(520px, 54%);
  max-height: 360px;
}

/* Aus base.css verschoben: alte Zeilen 5074-5144 */
.ds-profile-post-head a {
  color: #f4fbff;
  font-weight: 700;
  text-decoration: none;
  text-shadow:
    0 1px 0 #000000,
    0 0 7px rgba(215, 237, 255, 0.24),
    0 0 12px color-mix(in srgb, var(--ds-profile-accent) 22%, transparent);
}

.ds-profile-post-head a:hover {
  color: #ffffff;
  text-shadow:
    0 1px 0 #000000,
    0 0 10px rgba(215, 237, 255, 0.36),
    0 0 16px color-mix(in srgb, var(--ds-profile-accent) 28%, transparent);
}


.ds-profile-post-actions,
.ds-profile-overlay-actions {
  align-items: center;
  gap: 7px 9px;
}

.ds-profile-inline-editor,
.ds-profile-feed-visibility,
.ds-profile-inline-delete {
  align-items: center;
}

.ds-profile-inline-editor {
  order: 3;
}

.ds-profile-feed-visibility {
  order: 4;
}

.ds-profile-inline-delete {
  order: 9;
  margin-left: auto;
}


.ds-profile-inline-editor[open] {
  display: block;
  flex-basis: 100%;
  width: 100%;
  margin-top: 6px;
}

.ds-profile-inline-editor[open] {
  order: 7;
}



/* Aus base.css verschoben: alte Zeilen 5177-5192 */

/* Aus base.css verschoben: alte Zeilen 5222-5428 */
.ds-profile-feed-post {
  padding: 12px 12px 16px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--ds-profile-accent) 10%, rgba(0,0,0,0.60)), rgba(0,0,0,0.14) 58%, rgba(0,0,0,0.08));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--ds-profile-accent) 18%, rgba(215,237,255,0.08)),
    inset 0 10px 22px rgba(0,0,0,0.16);
}


.ds-profile-post-head {
  align-items: center;
}

.ds-profile-author-name {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  color: #f4fbff !important;
  font-weight: 700;
  text-decoration: none !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ds-profile-accent) 24%, rgba(0,0,0,0.62)), rgba(0,0,0,0.34));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--ds-profile-accent) 38%, rgba(215,237,255,0.18)),
    0 0 9px color-mix(in srgb, var(--ds-profile-accent) 18%, transparent);
  text-shadow: 0 1px 0 #000000, 0 0 7px rgba(215,237,255,0.22);
}

.ds-profile-author-name:hover {
  color: #ffffff !important;
  text-shadow:
    0 1px 0 #000000,
    0 0 10px rgba(215,237,255,0.34),
    0 0 15px color-mix(in srgb, var(--ds-profile-accent) 28%, transparent);
}

.ds-profile-date {
  color: #bfe8ff;
  font-size: 0.78rem;
  text-shadow: 0 0 7px rgba(32,169,255,0.18);
}

/* Aus base.css verschoben: alte Zeilen 5840-6051 */
/* --------------------------------------------------------------------------
   Mein Profil - Post-Aktionsblock und Sichtbarkeitsblase 2026-05-13
   Nur besprochener Block: Feed-Post-Aktionszeile, Bearbeiten-Feld darunter
   und Sichtbarkeit als kleine Aufklappblase mit Häkchen.
   -------------------------------------------------------------------------- */
.ds-profile-feed-post,
.ds-profile-post-action-block,
.ds-profile-post-action-block .ds-profile-action-row,
.ds-profile-post-action-block .ds-profile-action-left,
.ds-profile-post-action-block .ds-profile-action-right {
  overflow: visible;
}

.ds-profile-post-action-block {
  position: relative;
  z-index: 4;
}

.ds-profile-post-action-block .ds-profile-action-row {
  align-items: center;
}

.ds-profile-post-action-block .ds-profile-action-left {
  position: relative;
}

.ds-profile-post-edit-panel {
  width: 100%;
  margin-top: 8px;
}

.ds-profile-post-edit-form {
  position: relative;
  width: min(760px, 100%);
  display: block;
  margin: 0;
}

.ds-profile-post-edit-form .ds-profile-feed-textarea {
  width: 100%;
  min-height: 78px;
  margin: 0;
  padding-right: 48px;
}

.ds-profile-post-edit-form .ds-profile-send-icon {
  position: absolute;
  right: 10px;
  bottom: 10px;
}

.ds-profile-post-visibility-picker {
  position: relative;
  z-index: 80;
  display: inline-flex;
  align-items: center;
}


.ds-profile-post-visibility-picker > summary::-webkit-details-marker {
  display: none;
}

.ds-profile-post-visibility-picker > summary::marker {
  content: "";
}


.ds-profile-post-visibility-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 500;
  width: max-content;
  min-width: 220px;
  padding: 9px;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(215, 237, 255, 0.18), transparent 48%),
    linear-gradient(135deg, rgba(34, 61, 82, 0.98), rgba(4, 13, 23, 0.99) 52%, rgba(0, 0, 0, 0.99));
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.64),
    0 0 22px color-mix(in srgb, var(--ds-profile-accent) 22%, transparent),
    inset 0 0 0 1px rgba(215, 237, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.ds-profile-post-visibility-form {
  display: grid;
  gap: 5px;
  margin: 0;
}

.ds-profile-post-visibility-form textarea[hidden] {
  display: none;
}

.ds-profile-visibility-choice {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 30px;
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #dff5ff;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.ds-profile-visibility-choice:hover,
.ds-profile-visibility-choice:focus-visible,
.ds-profile-visibility-choice-active {
  color: #ffffff;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--ds-profile-accent) 20%, transparent), rgba(0, 0, 0, 0.28));
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(215, 237, 255, 0.12),
    0 0 12px color-mix(in srgb, var(--ds-profile-accent) 18%, transparent);
}

.ds-profile-visibility-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(215, 237, 255, 0.62);
}

@media (max-width: 640px) {
  .ds-profile-post-visibility-popover {
    min-width: 200px;
    max-width: calc(100vw - 58px);
  }

  .ds-profile-post-edit-form {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Profil Korrektur - nur besprochene Punkte 2026-05-13
   Senden-Pfeil unten rechts im Textfeld, Feed-Sichtbarkeit als Blase,
   temporäre Bearbeiten-/Antwortfelder schließen nach dem Speichern über JS.
   -------------------------------------------------------------------------- */
.ds-profile-feed-input-wrap,
.ds-profile-post-edit-form {
  position: relative;
  display: block;
}

.ds-profile-feed-input-wrap .ds-profile-feed-textarea,
.ds-profile-post-edit-form .ds-profile-feed-textarea {
  width: 100%;
  margin: 0;
  padding-right: 52px;
}

.ds-profile-feed-input-wrap > .ds-profile-send-icon,
.ds-profile-post-edit-form > .ds-profile-send-icon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
}

.ds-profile-feed-compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px 12px;
  min-height: 30px;
  margin-top: 8px;
}

.ds-profile-feed-compose-actions .ds-profile-feed-camera {
  flex: 0 0 auto;
}

.ds-profile-feed-visibility-picker {
  margin-left: auto;
}

.ds-profile-feed-visibility-picker .ds-profile-post-visibility-popover {
  left: auto;
  right: 0;
}


@media (max-width: 640px) {
  .ds-profile-feed-visibility-picker .ds-profile-post-visibility-popover {
    left: auto;
    right: 0;
  }
}
