/* Digitana Social - Reaktionen / Emoji-Fenster
   Feinschliff 2026-05-21 V1
   Zweck: zentrale Reaktions-/Emoji-Optik und Bedienbasis fuer Profil, Central,
   Profilbild-Overlay und spaetere Module.
   Wichtig: Keine Aenderung an Feed-, Kommentar-, Profilbild-, Central-, Radar-,
   Push-, Licht-, Datenbank- oder Service-Logik. */

.ds-profile-reaction-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow: visible;
}

.ds-profile-reaction-picker[open] {
  z-index: 120;
}

.ds-profile-reaction-summary,
.ds-profile-reaction-picker summary {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px 6px;
  width: auto !important;
  min-width: 34px;
  max-width: min(340px, 100%);
  min-height: 28px;
  height: auto !important;
  padding: 4px 7px;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  background: rgba(215, 237, 255, 0.06);
  color: #eaf6ff;
  box-shadow:
    inset 0 0 0 1px rgba(215, 237, 255, 0.13),
    0 0 10px rgba(32, 169, 255, 0.08);
}

.ds-profile-reaction-summary::-webkit-details-marker,
.ds-profile-reaction-picker summary::-webkit-details-marker {
  display: none;
}

.ds-profile-reaction-summary::marker,
.ds-profile-reaction-picker summary::marker {
  content: "";
}

.ds-profile-reaction-mini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1;
}

.ds-profile-reaction-popover {
  position: absolute;
  left: 0;
  right: auto;
  top: calc(100% + 7px);
  z-index: 180;
  width: min(310px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  padding: 10px;
  border-radius: 12px;
  color: #eaf6ff;
  opacity: 1;
  background:
    radial-gradient(ellipse at 16% 0%, rgba(215, 237, 255, 0.16), transparent 44%),
    linear-gradient(135deg, rgba(32, 58, 78, 0.99), rgba(3, 12, 22, 1) 44%, rgba(0, 0, 0, 1));
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.72),
    0 0 22px rgba(32, 169, 255, 0.20),
    inset 0 0 0 1px rgba(215, 237, 255, 0.16);
  backdrop-filter: none;
}

.ds-profile-reaction-choices,
.ds-profile-reaction-picker form.ds-profile-reaction-choices {
  position: static !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 9px;
  padding: 0 0 9px;
  border: 0;
  border-bottom: 1px solid rgba(215, 237, 255, 0.12);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.ds-profile-reaction-choices button {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(215, 237, 255, 0.07);
  color: #eaf6ff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(215, 237, 255, 0.10);
}

.ds-profile-reaction-choices button:hover,
.ds-profile-reaction-choices button.ds-profile-reaction-selected {
  background: rgba(32, 169, 255, 0.16);
  box-shadow:
    0 0 12px rgba(32, 169, 255, 0.20),
    inset 0 0 0 1px rgba(142, 223, 255, 0.34);
}

.ds-profile-reaction-names {
  display: grid;
  gap: 6px;
  max-height: 172px;
  overflow-y: auto;
  padding-right: 2px;
}

.ds-profile-reaction-name-group {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: baseline;
  color: #dff5ff;
  font-size: 0.80rem;
  line-height: 1.35;
}

.ds-profile-reaction-name-group strong {
  min-width: 22px;
  text-align: center;
}

.ds-profile-reaction-name-group a {
  color: #8fe2ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ds-profile-reaction-name-group a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(32, 169, 255, 0.46);
}

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

.ds-profile-reaction-count {
  display: none;
}

@media (max-width: 820px) {
  .ds-profile-reaction-popover {
    left: 0;
    right: auto;
    width: min(300px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }

  .ds-profile-reaction-choices,
  .ds-profile-reaction-picker form.ds-profile-reaction-choices {
    flex-wrap: wrap;
  }
}
