/* share.css — styling for the universal chart share button + fallback menu.
   See share.js. All elements carry data-html2canvas-ignore so they never
   appear in a captured screenshot. */

.fn-share-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.14));
  border-radius: 6px;
  background: transparent;
  color: var(--muted, #888780);
  cursor: pointer;
  flex: 0 0 auto;
  transition: color 0.12s, border-color 0.12s, background 0.12s, opacity 0.12s;
}
.fn-share-btn:hover {
  color: #85b7eb;
  border-color: #85b7eb;
  background: rgba(53, 138, 221, 0.12);
}
.fn-share-btn.busy {
  opacity: 0.5;
  pointer-events: none;
}
.fn-share-btn svg {
  display: block;
}

/* fallback share menu */
.fn-share-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.fn-share-modal {
  width: min(380px, 92vw);
  background: #17191a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px;
  color: #f2f2f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.fn-share-mhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}
.fn-share-x {
  background: transparent;
  border: 0;
  color: #888780;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.fn-share-preview {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}
.fn-share-note {
  font-size: 11px;
  color: #888780;
  margin-bottom: 12px;
  line-height: 1.5;
}
.fn-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fn-share-actions button,
.fn-share-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #f2f2f0;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.fn-share-actions button:hover,
.fn-share-actions a:hover {
  background: rgba(255, 255, 255, 0.1);
}
.fn-share-actions [data-act="wa"] {
  border-color: rgba(29, 158, 117, 0.4);
  color: #5dcaa5;
}

/* toast */
.fn-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  background: #17191a;
  color: #f2f2f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.fn-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
