/*
  Tooltip 10 — Signature Tooltip — standalone HTML/CSS/JS implementation.
  No build step, no framework, no external dependency: copy index.html,
  this file, and script.js into any project as-is.
*/

:root {
  --tooltip-accent: #39ff14;
  --tooltip-fg: oklch(0.145 0 0);
  --tooltip-muted: oklch(0.5 0 0);
  --tooltip-border: oklch(0.85 0 0);
}

.tooltip10 {
  position: relative;
  display: inline-flex;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
}

.tooltip10__trigger {
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--tooltip-border);
  background-color: #ffffff;
  color: var(--tooltip-muted);
  cursor: pointer;
  outline: none;
  transition:
    border-color 150ms ease-out,
    color 150ms ease-out;
}

.tooltip10__trigger svg {
  height: 1rem;
  width: 1rem;
  font-family: inherit;
}

.tooltip10__trigger:hover {
  border-color: var(--tooltip-accent);
  color: var(--tooltip-fg);
}

.tooltip10__trigger:focus-visible {
  outline: 2px solid var(--tooltip-fg);
  outline-offset: 2px;
}

/* Horizontal placement: one variable drives both the resting position and
   the entrance keyframes. Mobile-first — aligned to the trigger's right edge
   so it stays on narrow screens, centred over the trigger from 40rem up. */
.tooltip10__bubble {
  --tooltip10-x: 0%;
  position: absolute;
  bottom: 100%;
  right: 0;
  z-index: 10;
  margin-bottom: 0.75rem;
  display: block;
  width: max-content;
  max-width: 15rem;
  transform: translate(var(--tooltip10-x), 0);
  overflow: hidden;
  border-radius: 0.75rem;
  background-color: var(--tooltip-fg);
  padding: 0.75rem 0.875rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 8px -2px rgba(0, 0, 0, 0.3),
    0 20px 48px -16px rgba(0, 0, 0, 0.45);
  animation: tooltip10-in 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tooltip10__bubble[hidden] {
  display: none;
}

@keyframes tooltip10-in {
  from {
    opacity: 0;
    transform: translate(var(--tooltip10-x), 6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(var(--tooltip10-x), 0) scale(1);
  }
}

.tooltip10__edge {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.55), transparent);
}

.tooltip10__trace {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--tooltip-accent), transparent);
  animation: tooltip10-sweep 900ms ease-out 80ms both;
}

@keyframes tooltip10-sweep {
  from {
    transform: translateX(-120%);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  to {
    transform: translateX(260%);
    opacity: 0;
  }
}

.tooltip10__row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.tooltip10__dot {
  display: block;
  flex-shrink: 0;
  margin-top: 0.25rem;
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 9999px;
  background-color: var(--tooltip-accent);
  box-shadow: 0 0 6px 1px rgba(57, 255, 20, 0.55);
}

.tooltip10__title {
  display: block;
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 600;
  color: #ffffff;
}

.tooltip10__description {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.65);
}

.tooltip10__arrow {
  position: absolute;
  top: 100%;
  right: 0.75rem;
  height: 0.5rem;
  width: 0.5rem;
  transform: translate(0, -4px) rotate(45deg);
  background-color: var(--tooltip-fg);
}

@media (min-width: 40rem) {
  .tooltip10__bubble {
    --tooltip10-x: -50%;
    right: auto;
    left: 50%;
  }
  .tooltip10__arrow {
    right: auto;
    left: 50%;
    transform: translate(-50%, -4px) rotate(45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tooltip10__bubble {
    animation: none;
  }
  .tooltip10__trace {
    animation: none;
    opacity: 0;
  }
}

/*
  Page layout — the canvas this resource is presented on. Adjust or drop it
  when placing the resource inside your own layout.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(to bottom, #fafafa, #f4f4f5);
}
.tooltip10-layout {
  display: flex;
  min-height: 14rem;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem;
  padding-top: 6rem;
}
.tooltip10-layout__panel {
  display: flex;
  width: 100%;
  max-width: 28rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid oklch(0.9 0 0);
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.5rem;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 16px 40px -16px rgba(0, 0, 0, 0.14);
}
.tooltip10-layout__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: oklch(0.145 0 0);
}
.tooltip10-layout__subtitle {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  color: oklch(0.5 0 0);
}
