/* Social share UI — site pages + dashboards */

.share-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 16px 0 24px;
  padding: 14px 16px;
  background: var(--surface, #1c1f23);
  border: 1px solid var(--line, #2e3339);
  border-radius: var(--radius, 2px);
}

.share-block-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft, #a8a49c);
  letter-spacing: 0.02em;
}

.share-block-actions,
.share-float-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line, #2e3339);
  background: var(--bg, #141618);
  color: var(--ink, #eceae6);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.share-chip:hover {
  background: var(--surface-hover, #25292f);
  border-color: var(--accent, #d4a054);
}

.share-chip--line { border-color: #06c755; color: #8ce9a8; }
.share-chip--fb { border-color: #1877f2; color: #9ec5ff; }
.share-chip--x { border-color: #8b98a5; }
.share-chip--threads { border-color: #c9c9c9; }
.share-chip--linkedin { border-color: #0a66c2; color: #9ec5ff; }
.share-chip--copy,
.share-chip--native { border-color: var(--accent, #d4a054); color: var(--accent, #d4a054); }

.share-status {
  width: 100%;
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft, #a8a49c);
}

.share-status--ok { color: var(--tw, #5cb88a); }
.share-status--err { color: #f87171; }

/* Inline (feed rows) */
.share-inline {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.share-inline-toggle {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent, #d4a054);
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.share-inline-toggle:hover {
  color: var(--ink, #eceae6);
}

.share-inline-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: var(--surface, #1c1f23);
  border: 1px solid var(--line, #2e3339);
  border-radius: 6px;
  box-shadow: var(--shadow, 0 8px 32px rgba(0, 0, 0, 0.35));
  white-space: nowrap;
}

.share-inline-panel a,
.share-inline-panel button {
  border: 0;
  background: none;
  color: var(--ink, #eceae6);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  padding: 2px 4px;
}

.share-inline-panel a:hover,
.share-inline-panel button:hover {
  color: var(--accent, #d4a054);
}

/* Floating (dashboards) */
.share-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
}

.share-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #d4a054;
  color: #141618;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.share-float-btn:hover {
  filter: brightness(1.05);
}

.share-float-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(320px, calc(100vw - 32px));
  padding: 14px;
  background: #1c1f23;
  border: 1px solid #2e3339;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.share-float-heading {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #eceae6;
}

.share-float .share-chip {
  background: #141618;
  color: #eceae6;
}

@media (max-width: 640px) {
  .share-float {
    right: 14px;
    bottom: 14px;
  }

  .share-float-btn span {
    display: none;
  }

  .share-float-btn {
    width: 46px;
    height: 46px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}
