/* Guided-tour engine visuals: spotlight ring, connected callout caret, pulsing
   micro-CTA, and the demo dashboard's reaction animations. Class names are the
   contract with tour_controller.js (tour-*) and demo_dashboard_controller.js
   (demo-tour-*). Ported from lib/mocks/demo_cro/story_tour.html. */

/* Bar width transition when the ROAS model switches */
.demo-tour-bar { transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

/* ROAS rows slide to new rank positions via a FLIP; the transform transition is
   applied inline by demo_dashboard_controller.js during the reorder. */
.demo-tour-row { will-change: transform; }

/* Spotlight ring with a dark scrim. Sits below the sticky nav (z-30) so the
   narration callout (z-40) stays bright above the dimmed dashboard. */
.tour-ring {
  position: fixed;
  border-radius: 10px;
  pointer-events: none;
  z-index: 20;
  animation: tour-ringpulse 1.6s ease-in-out infinite;
  transition: all 0.3s ease;
}
@keyframes tour-ringpulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.95), 0 0 0 9999px rgba(17, 24, 39, 0.55); }
  50%      { box-shadow: 0 0 0 7px rgba(99, 102, 241, 0.4),  0 0 0 9999px rgba(17, 24, 39, 0.55); }
}

/* Floating "do this" nudge arrow, anchored just off the target control and
   bouncing toward it. Positioned by tour_controller.js opposite the callout. */
.tour-float-nudge { animation: tour-float-nudge 1s ease-in-out infinite; line-height: 1; }
@keyframes tour-float-nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* Panel reveal when a demo reaction fires */
.demo-tour-pop { animation: tour-pop 0.4s ease; }
@keyframes tour-pop {
  0%   { transform: scale(0.96); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

/* Pulsing micro-CTA nested at the spotlighted element */
.tour-hotpulse { animation: tour-hotpulse 1.4s ease-in-out infinite; }
@keyframes tour-hotpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.55); transform: scale(1); }
  50%      { box-shadow: 0 0 0 12px rgba(99, 102, 241, 0); transform: scale(1.04); }
}

/* Caret ties the callout to the highlighted item */
.tour-caret {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  transform: rotate(45deg);
}
.tour-caret.up   { top: -7px;    border-left: 1px solid #e5e7eb; border-top: 1px solid #e5e7eb; }
.tour-caret.down { bottom: -7px; border-right: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
