/* =====================================================================
   Unbuilt Lab — share row
   Renders "Share →" + branded circular icon buttons + Copy Link.
   Drop-in module: include /_includes/share.css + /_includes/share.js
   then any element with .ul-share-row[data-share-url] is auto-wired.
   ===================================================================== */
.ul-share-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px; margin-top: 20px;
}
.ul-share-label {
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted, #5a5a72);
  white-space: nowrap;
  margin-right: 2px;
}
.ul-share-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ul-share-bg, #1a1a26);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.15s, border-color 0.15s, background 0.15s;
}
.ul-share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}
.ul-share-btn:active { transform: translateY(0) scale(0.96); }
.ul-share-btn svg { width: 17px; height: 17px; display: block; }

/* Per-platform brand colours */
.ul-share-btn[data-share="whatsapp"]  { background: #25D366; border-color: #25D366; }
.ul-share-btn[data-share="twitter"]   { background: #000;    border-color: #2a2a2a; }
.ul-share-btn[data-share="linkedin"]  { background: #0A66C2; border-color: #0A66C2; }
.ul-share-btn[data-share="facebook"]  { background: #1877F2; border-color: #1877F2; }
.ul-share-btn[data-share="reddit"]    { background: #FF4500; border-color: #FF4500; }
.ul-share-btn[data-share="telegram"]  { background: #229ED9; border-color: #229ED9; }
.ul-share-btn[data-share="indiehackers"] { background: #0E2439; border-color: #0E2439; }
.ul-share-btn[data-share="instagram"] {
  background: linear-gradient(135deg, #FEDA75 0%, #FA7E1E 30%, #D62976 60%, #962FBF 80%, #4F5BD5 100%);
  border-color: transparent;
}
.ul-share-btn[data-share="email"]     { background: #4B5563; border-color: #4B5563; }

/* Pill-style Copy Link button — wider, with an icon + label */
.ul-share-btn.ul-share-copy {
  width: auto;
  padding: 0 14px;
  border-radius: 999px;
  gap: 6px;
  font-family: inherit;
  font-size: 0.82rem; font-weight: 700;
  background: transparent;
  color: var(--accent-secondary, #a78bfa);
  border: 1px solid var(--accent, #6366f1);
}
.ul-share-btn.ul-share-copy:hover {
  background: rgba(99, 102, 241, 0.10);
}
.ul-share-btn.ul-share-copy.is-flashing {
  background: var(--emerald, #10b981);
  color: #fff;
  border-color: var(--emerald, #10b981);
}

/* Toast for Instagram / IndieHackers fallbacks ("Link copied — paste in IG bio") */
.ul-share-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: rgba(15, 17, 28, 0.96);
  color: #fff;
  font-size: 0.86rem; font-weight: 500;
  padding: 12px 18px; border-radius: 10px;
  border: 1px solid var(--accent, #6366f1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease;
  max-width: 90vw;
}
.ul-share-toast.is-visible { opacity: 1; }
