/* ─────────────────────────────────────────────
   Proto Note — prototype annotation component
   Drop a <proto-note slug="xyz" text="..."></proto-note>
   anywhere to show a pink dot with a tooltip.
───────────────────────────────────────────── */

proto-note {
  display: inline-block;
  position: relative;
  width: 10px;
  height: 10px;
  vertical-align: middle;
  cursor: default;
  /* Allow absolute children to escape stacking context */
  z-index: 0;
}

proto-note .proto-note__trigger {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FF69B4;
  box-shadow: 0 0 0 2px rgba(255, 105, 180, 0.25);
  animation: proto-note-pulse 2s ease-in-out infinite;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

proto-note:hover .proto-note__trigger {
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.2);
  animation: none;
}

proto-note .proto-note__tooltip {
  display: block;
  position: fixed;
  z-index: 9999;
  width: 220px;
  padding: 10px 12px;
  background: #1a1a2e;
  color: #f0f0f0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 8px;
  border-left: 3px solid #FF69B4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

proto-note .proto-note__tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Header row: slug label + copy button */
proto-note .proto-note__header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

proto-note .proto-note__slug-label {
  font-size: 12px;
  font-weight: 700;
  color: #FF69B4;
  font-family: "Courier New", monospace;
  opacity: 0.9;
  letter-spacing: 0.03em;
}

proto-note .proto-note__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  background: none;
  border: none;
  color: rgba(255, 105, 180, 0.6);
  cursor: pointer;
  border-radius: 3px;
  transition: color 0.1s ease, background 0.1s ease;
  flex-shrink: 0;
}

proto-note .proto-note__copy:hover {
  color: #FF69B4;
  background: rgba(255, 105, 180, 0.15);
}

proto-note .proto-note__copy--copied {
  color: #4ade80;
}

@keyframes proto-note-pulse {
  0%, 100% { box-shadow: 0 0 0 0px rgba(255, 105, 180, 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(255, 105, 180, 0); }
}
