/* ─────────────────────────────────────────────
   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:hover .proto-note__tooltip,
proto-note .proto-note__tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Small label above the tooltip */
proto-note .proto-note__tooltip::before {
  content: "✦ Prototype note";
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #FF69B4;
  margin-bottom: 4px;
  text-transform: uppercase;
}

/* Slug identifier */
proto-note .proto-note__slug {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #FF69B4;
  margin-bottom: 4px;
  font-family: "Courier New", monospace;
  opacity: 0.8;
}

proto-note .proto-note__slug::after {
  content: " · ";
  opacity: 0.5;
}

@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); }
}
