/* ========================================================
   SITE TUTORIAL - Simple & Clean
   ======================================================== */

/* Overlay with spotlight cutout */
.st-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: auto;
}

.st-overlay-panel {
  position: absolute;
  background: rgba(15, 23, 42, 0.6);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Spotlight glow ring around target */
.st-spotlight-ring {
  position: absolute;
  top: calc(var(--ty, 0px) - 4px);
  left: calc(var(--tx, 0px) - 4px);
  width: calc(var(--tw, 0px) + 8px);
  height: calc(var(--th, 0px) + 8px);
  border: 2px solid rgba(124, 58, 237, 0.7);
  border-radius: 14px;
  box-shadow:
    0 0 24px rgba(124, 58, 237, 0.3),
    0 0 60px rgba(99, 102, 241, 0.15),
    inset 0 0 24px rgba(124, 58, 237, 0.1);
  pointer-events: none;
  z-index: 10002;
  animation: stSpotPulse 2s ease-in-out infinite;
}

@keyframes stSpotPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(124,58,237,0.3), 0 0 60px rgba(99,102,241,0.15); }
  50% { box-shadow: 0 0 36px rgba(124,58,237,0.5), 0 0 90px rgba(99,102,241,0.25); }
}

/* Tooltip */
.st-tooltip {
  position: fixed;
  z-index: 10003;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 0 0 3px #7c3aed;
  padding: 1rem 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  pointer-events: auto;
}

.st-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.st-tooltip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.st-tooltip-step {
  font-size: 0.7rem;
  font-weight: 600;
  color: #7c3aed;
  background: #f3f0ff;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.st-tooltip-close {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1rem;
  line-height: 1;
}

.st-tooltip-close:hover {
  background: #e2e8f0;
}

.st-tooltip-title {
  font-family: var(--fr-font);
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.3rem;
}

.st-tooltip-text {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.st-tooltip-progress {
  height: 3px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.st-tooltip-bar {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #6366f1);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.st-tooltip-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.st-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.st-btn-skip {
  background: transparent;
  color: #94a3b8;
}

.st-btn-skip:hover {
  color: #64748b;
  background: #f1f5f9;
}

.st-btn-next {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
}

.st-btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(124,58,237,0.3);
}

/* Robot */
.st-robot {
  position: fixed;
  z-index: 10003;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.st-robot.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.st-robot-avatar {
  width: 110px;
  height: 110px;
  border-radius: 0;
  overflow: visible;
  flex-shrink: 0;
}

.st-robot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.3));
}

.st-robot-bubble {
  display: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .st-tooltip,
  .st-robot,
  .st-done {
    transition: none !important;
  }
}

/* Completion toast */
.st-done {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
  font-family: var(--fr-font-body, system-ui, sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
  z-index: 10010;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.st-done.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Hide FAB when tutorial is active */
body.st-active .btn-tutorial-fab {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}
