/* ============================================================
   Tooltips-Tour
   ------------------------------------------------------------
   Self-contained, no external library. Activated by
   scripts/tooltips-tour.js. Uses a single overlay element and
   a single tooltip card that gets re-positioned per step.
   ============================================================ */

.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease-out, visibility 280ms;
}
.tour-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* the "cut-out" effect — a fixed-position highlight box gets a
   huge transparent box-shadow that dims everything else. */
.tour-highlight {
  position: fixed;
  border-radius: 10px;
  pointer-events: none;
  box-shadow:
    0 0 0 4px rgba(216, 98, 200, 0.50),
    0 0 0 9999px rgba(15, 22, 36, 0.60);
  transition: top 260ms ease-out, left 260ms ease-out,
              width 260ms ease-out, height 260ms ease-out;
  z-index: 61;
}

.tour-tooltip {
  position: fixed;
  z-index: 62;
  background: white;
  color: #13213a;
  border: 2px solid var(--accent, #d862c8);
  border-radius: 14px;
  padding: 18px 20px;
  max-width: 340px;
  width: max-content;
  box-shadow: 0 20px 50px rgba(0,0,0,0.30);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 240ms ease-out, transform 240ms ease-out,
              top 260ms ease-out, left 260ms ease-out;
}
.tour-tooltip.is-in {
  opacity: 1;
  transform: scale(1);
}

.tour-tooltip-step {
  display: inline-block;
  background: var(--accent-soft, #fde7f7);
  color: var(--accent, #d862c8);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.tour-tooltip-text {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 14px;
  color: #1a2740;
}

.tour-tooltip-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.tour-tooltip-skip {
  background: transparent;
  border: none;
  color: #687385;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.tour-tooltip-skip:hover { color: #13213a; }

.tour-tooltip-next {
  background: linear-gradient(120deg, var(--accent, #d862c8), #7c3aed);
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 150ms, box-shadow 150ms;
}
.tour-tooltip-next:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(216,98,200,0.30); }

/* arrow */
.tour-tooltip::before,
.tour-tooltip::after {
  content: "";
  position: absolute;
  width: 0; height: 0;
  pointer-events: none;
}

/* arrow placement variants — set by data-arrow on the tooltip */
.tour-tooltip[data-arrow="left"]::before {
  left: -10px; top: 24px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 10px solid var(--accent, #d862c8);
}
.tour-tooltip[data-arrow="left"]::after {
  left: -7px; top: 26px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 7px solid white;
}

.tour-tooltip[data-arrow="right"]::before {
  right: -10px; top: 24px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 10px solid var(--accent, #d862c8);
}
.tour-tooltip[data-arrow="right"]::after {
  right: -7px; top: 26px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 7px solid white;
}

.tour-tooltip[data-arrow="top"]::before {
  top: -10px; left: 24px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 10px solid var(--accent, #d862c8);
}
.tour-tooltip[data-arrow="top"]::after {
  top: -7px; left: 26px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid white;
}

.tour-tooltip[data-arrow="bottom"]::before {
  bottom: -10px; left: 24px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 10px solid var(--accent, #d862c8);
}
.tour-tooltip[data-arrow="bottom"]::after {
  bottom: -7px; left: 26px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid white;
}
