/* ── spilu-share: Isolierte Styles für Share-Buttons ── */

/* Feedback-Share-Row */
.spilu-fb-share-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.spilu-fb-share-wrapper {
  position: relative;
  display: inline-block;
}
.spilu-fb-popover {
  bottom: calc(100% + 8px);
  right: 0;
}

.spilu-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  font-family: inherit;
  line-height: 1;
}
.spilu-share-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}
.spilu-share-btn svg {
  flex-shrink: 0;
}

.spilu-share-wrapper {
  position: relative;
  display: inline-block;
}

.spilu-share-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  width: 230px;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(.97);
  transition: opacity .18s, transform .18s;
}
.spilu-share-popover.spilu-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.spilu-share-popover-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.spilu-share-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spilu-share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s;
  border: none;
  font-family: inherit;
  text-align: left;
  width: 100%;
  text-decoration: none;
  color: var(--text);
  background: transparent;
}
.spilu-share-option:hover {
  background: var(--bg-alt);
}

.spilu-share-option-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}
.spilu-share-option.spilu-wa   .spilu-share-option-icon { background: #dcf8c6; }
.spilu-share-option.spilu-fb   .spilu-share-option-icon { background: #dce9f8; }
.spilu-share-option.spilu-ig   .spilu-share-option-icon { background: #fce4f3; }
.spilu-share-option.spilu-mail .spilu-share-option-icon { background: #f0f0f5; }
.spilu-share-option.spilu-copy .spilu-share-option-icon { background: #f0f0f5; }
.spilu-share-option.spilu-copy.spilu-copied .spilu-share-option-icon { background: #dcf8e0; }
.spilu-share-option.spilu-copy.spilu-copied .spilu-share-option-label { color: #1a7a2e; }

.spilu-share-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.spilu-copied-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #1d1d1f;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  z-index: 9999;
}
.spilu-copied-toast.spilu-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Dark-Section Overrides ── */
.section-dark .spilu-share-btn {
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}
.section-dark .spilu-share-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}
.section-dark .spilu-share-popover {
  background: #1e1e2a;
  border-color: rgba(255,255,255,0.1);
}
.section-dark .spilu-share-popover-title {
  color: rgba(255,255,255,0.45);
}
.section-dark .spilu-share-option {
  color: rgba(255,255,255,0.85);
}
.section-dark .spilu-share-option:hover {
  background: rgba(255,255,255,0.07);
}
.section-dark .spilu-share-option-label {
  color: rgba(255,255,255,0.85);
}
.section-dark .spilu-share-option.spilu-copy.spilu-copied .spilu-share-option-label {
  color: #4cda6e;
}
.section-dark .spilu-share-divider {
  background: rgba(255,255,255,0.1);
}
