/* Digitana Social - Nutzerverbindungen V1
   Nur Profilkopf-Aktionen, Follower-Fenster und Verbindungs-Overlays.
   Keine Änderung an base.css, Profil-/Feed-/Radar-/Live-Kern bleibt unberührt. */

.ds-profile-cover {
  overflow: visible;
}

.ds-profile-cover-status-with-followers {
  display: grid;
  gap: 0;
  align-items: start;
}

.ds-profile-cover-status-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 20px;
  line-height: 1;
}

.ds-profile-cover-followers {
  position: relative;
  width: fit-content;
  max-width: min(300px, calc(100vw - 44px));
}

.ds-profile-cover-followers summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  color: rgba(230, 241, 248, 0.86);
  cursor: pointer;
  line-height: 1;
  text-shadow:
    0 0 7px rgba(215, 237, 255, 0.22),
    0 1px 0 #000000;
}

.ds-profile-cover-followers summary::-webkit-details-marker {
  display: none;
}

.ds-profile-cover-followers summary strong {
  min-width: 22px;
  min-height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  border-radius: 999px;
  color: #f7fbff;
  text-decoration: none;
  line-height: 1;
  background:
    radial-gradient(ellipse at 28% 18%, rgba(255, 255, 255, 0.28), transparent 52%),
    linear-gradient(135deg, rgba(215, 237, 255, 0.20), rgba(18, 28, 36, 0.62) 58%, rgba(0, 0, 0, 0.78));
  box-shadow:
    inset 0 0 0 1px rgba(235, 248, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 0 10px rgba(215, 237, 255, 0.16);
  text-shadow:
    0 1px 0 #000000,
    0 0 7px rgba(235, 248, 255, 0.26);
}

.ds-profile-follower-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 7px);
  z-index: 40;
  width: min(310px, calc(100vw - 44px));
  padding: 10px;
  border-radius: 11px;
  background:
    radial-gradient(ellipse at 16% 0%, rgba(215,237,255,0.14), transparent 48%),
    linear-gradient(135deg, rgba(27, 53, 73, 0.98), rgba(2, 11, 20, 0.99) 52%, rgba(0,0,0,0.99));
  box-shadow:
    0 22px 42px rgba(0,0,0,0.72),
    0 0 24px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 24%, transparent),
    inset 0 0 0 1px rgba(142,223,255,0.18),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

.ds-profile-follower-popover > strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ds-profile-follower-list {
  max-height: 290px;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  gap: 6px;
}

.ds-profile-follower-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: #dff5ff;
  text-decoration: none;
}

.ds-profile-follower-row:hover {
  color: #ffffff;
  text-shadow: 0 0 8px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 42%, transparent);
}

.ds-profile-connection-head-actions {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ds-profile-connection-actions-menu {
  position: relative;
}

.ds-profile-connection-actions-menu summary {
  list-style: none;
}

.ds-profile-connection-actions-menu summary::-webkit-details-marker {
  display: none;
}

.ds-profile-connection-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 2px 4px;
  color: #dff7ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  text-shadow:
    0 0 8px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 52%, transparent),
    0 1px 0 #000000;
}

.ds-profile-connection-action-link::after {
  content: " +";
  color: var(--ds-profile-accent, #20a9ff);
}

.ds-profile-connection-actions-menu[open] .ds-profile-connection-action-link,
.ds-profile-connection-action-link:hover {
  color: #ffffff;
  text-shadow:
    0 0 12px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 70%, transparent),
    0 1px 0 #000000;
}

.ds-profile-connection-actions-popover {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  min-width: 150px;
  padding: 8px;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 16% 0%, rgba(215,237,255,0.13), transparent 48%),
    linear-gradient(135deg, rgba(27, 53, 73, 0.98), rgba(2, 11, 20, 0.99) 52%, rgba(0,0,0,0.99));
  box-shadow:
    0 20px 38px rgba(0,0,0,0.70),
    0 0 24px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 24%, transparent),
    inset 0 0 0 1px rgba(142,223,255,0.18),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

.ds-profile-connection-actions-popover form {
  margin: 0;
}

.ds-profile-connection-actions-popover form + form {
  margin-top: 5px;
}

.ds-profile-connection-cover-buttons {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: min(420px, calc(100% - 36px));
}

.ds-profile-connection-cover-buttons form {
  margin: 0;
}

.ds-profile-connection-button {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(215,237,255,0.16), transparent 48%),
    linear-gradient(135deg,
      color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 32%, rgba(35, 64, 84, 0.95)),
      rgba(4, 17, 29, 0.98) 56%,
      rgba(0,0,0,0.99));
  box-shadow:
    0 0 14px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 22%, transparent),
    0 7px 16px rgba(0,0,0,0.40),
    inset 0 1px 0 rgba(255,255,255,0.20),
    inset 0 -8px 16px rgba(0,0,0,0.34);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
}

.ds-profile-connection-button:hover {
  box-shadow:
    0 0 20px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 34%, transparent),
    0 8px 18px rgba(0,0,0,0.46),
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -8px 16px rgba(0,0,0,0.34);
}

.ds-profile-connection-button-muted {
  cursor: default;
  opacity: 0.82;
}

.ds-profile-edit-form-v1 .ds-profile-edit-panel + .ds-profile-edit-panel::before {
  content: "";
  display: block;
  width: min(72%, 620px);
  height: 1px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 62%, transparent),
    rgba(255,255,255,0.56),
    color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 62%, transparent),
    transparent);
  box-shadow: 0 0 13px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 28%, transparent);
}

.ds-profile-edit-form-v1 .ds-profile-edit-panel h2::before {
  content: "›";
  display: inline-block;
  margin-right: 8px;
  color: var(--ds-profile-accent, #20a9ff);
  text-shadow: 0 0 10px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 55%, transparent);
}

.ds-profile-connection-button-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.ds-profile-connection-open-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(215,237,255,0.13), transparent 48%),
    linear-gradient(135deg,
      color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 26%, rgba(35, 64, 84, 0.92)),
      rgba(4, 17, 29, 0.98) 58%,
      rgba(0,0,0,0.98));
  box-shadow:
    0 0 12px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 18%, transparent),
    inset 0 0 0 1px rgba(215,237,255,0.14),
    inset 0 1px 0 rgba(255,255,255,0.13),
    inset 0 -8px 16px rgba(0,0,0,0.34);
  font-size: 0.80rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.ds-profile-connection-open-button span {
  color: #dff7ff;
  font-weight: 700;
}

.ds-profile-connection-open-button:hover,
.ds-profile-connection-open-button:focus-visible {
  box-shadow:
    0 0 18px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 28%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 36%, rgba(215,237,255,0.16)),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -8px 16px rgba(0,0,0,0.34);
}

.ds-profile-friend-request-alert {
  width: 100%;
  min-height: 32px;
  margin: 8px 0 10px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 34%, rgba(0,0,0,0.42)),
      rgba(0,0,0,0.72));
  box-shadow:
    0 0 16px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 26%, transparent),
    inset 0 0 0 1px rgba(215,237,255,0.14);
  font-size: 0.78rem;
  cursor: pointer;
}

.ds-profile-connection-overlay {
  position: fixed;
  inset: 0;
  z-index: 22000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.ds-profile-connection-overlay[hidden] {
  display: none;
}

.ds-profile-connection-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}

.ds-profile-connection-overlay-card {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 32px));
  max-height: min(78vh, 760px);
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(215,237,255,0.16), transparent 46%),
    linear-gradient(135deg, rgba(31,58,77,0.97), rgba(4,14,24,0.99) 50%, rgba(0,0,0,0.99));
  box-shadow:
    0 26px 64px rgba(0,0,0,0.76),
    0 0 34px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 22%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 0 0 1px rgba(215,237,255,0.10);
}

.ds-profile-connection-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 38%, transparent);
  box-shadow: 0 8px 16px -16px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 42%, transparent);
}

.ds-profile-connection-overlay-head strong {
  color: #ffffff;
  font-size: 0.96rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.ds-profile-connection-overlay-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0,0,0,0.34);
  box-shadow:
    inset 0 0 0 1px rgba(215,237,255,0.18),
    0 0 12px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 18%, transparent);
  cursor: pointer;
}

.ds-profile-connection-search {
  width: 100%;
  min-height: 34px;
  margin: 13px 0 11px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: #000000;
  color: #eaf6ff;
  box-shadow:
    inset 0 0 0 1px rgba(215,237,255,0.22),
    inset 0 9px 14px rgba(0,0,0,0.55),
    inset 0 0 14px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 10%, transparent);
}

.ds-profile-connection-list {
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 2px;
}

.ds-profile-connection-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(0,0,0,0.22);
  box-shadow: inset 0 0 0 1px rgba(215,237,255,0.08);
}

.ds-profile-connection-user {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #dff5ff;
  text-decoration: none;
}

.ds-profile-connection-user:hover {
  color: #ffffff;
  text-shadow: 0 0 8px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 42%, transparent);
}

.ds-profile-connection-row-blocked .ds-profile-connection-user {
  pointer-events: none;
  color: #d8f0ff;
  text-decoration: none;
}

.ds-profile-connection-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.ds-profile-connection-row-actions form {
  margin: 0;
}


@media (max-width: 860px) {
  .ds-profile-connection-head-actions {
    top: 12px;
    right: 14px;
  }

  .ds-profile-connection-cover-buttons {
    right: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
  }

  .ds-profile-connection-button-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ds-profile-connection-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ds-profile-connection-row-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .ds-profile-connection-button-row {
    grid-template-columns: 1fr;
  }

  .ds-profile-connection-cover-buttons {
    gap: 6px;
  }

  .ds-profile-connection-button {
    min-height: 29px;
    padding: 6px 10px;
    font-size: 0.72rem;
  }
}

/* --------------------------------------------------------------------------
   Digitana Social - Fremdprofil: eingehende Freundschaftsanfrage beantworten
   Nur Profilkopf-Button: ersetzt den missverständlichen passiven Zustand
   "Freundschaft angefragt" durch ein kleines Aktionsmenü.
   Optik nach bestehendem Sichtbarkeits-Auswahlstil: Auswahlzeilen statt Textlinks.
   Keine Änderung an Freundschaftslogik, Overlays, base.css oder Farben.
   -------------------------------------------------------------------------- */

.ds-profile-connection-cover-buttons .ds-profile-connection-request-menu {
  position: relative;
  margin: 0;
}

.ds-profile-connection-request-menu summary {
  list-style: none;
}

.ds-profile-connection-request-menu summary::-webkit-details-marker {
  display: none;
}

.ds-profile-connection-request-menu[open] .ds-profile-connection-request-trigger {
  box-shadow:
    0 0 20px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 34%, transparent),
    0 8px 18px rgba(0,0,0,0.46),
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -8px 16px rgba(0,0,0,0.34);
}

.ds-profile-connection-request-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 7px);
  z-index: 28;
  min-width: 190px;
  padding: 8px;
  border-radius: 11px;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(215,237,255,0.14), transparent 48%),
    linear-gradient(135deg, rgba(27, 53, 73, 0.98), rgba(2, 11, 20, 0.99) 50%, rgba(0,0,0,0.99));
  box-shadow:
    0 24px 44px rgba(0,0,0,0.72),
    0 0 26px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 22%, transparent),
    inset 0 0 0 1px rgba(142,223,255,0.20),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.ds-profile-connection-request-popover form {
  margin: 0;
}

.ds-profile-connection-request-popover form + form {
  margin-top: 4px;
}

.ds-profile-connection-request-popover .ds-profile-glow-link-button {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dff5ff;
  text-align: left;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: none;
}

.ds-profile-connection-request-popover .ds-profile-glow-link-button:hover,
.ds-profile-connection-request-popover .ds-profile-glow-link-button:focus-visible {
  color: #ffffff;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 32%, rgba(4, 12, 22, 0.92)),
      rgba(4, 12, 22, 0.92) 72%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 42%, rgba(215,237,255,0.18)),
    0 0 14px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 22%, transparent);
  text-shadow:
    0 0 8px color-mix(in srgb, var(--ds-profile-accent, #20a9ff) 42%, transparent),
    0 1px 0 #000000;
}
