/* =========================================================
   Spotlight Engine Styles (Dark Blur & Precision Glow Mask)
   ========================================================= */

.spotlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.spotlight-overlay.active {
  opacity: 1;
  visibility: visible;
}

.spotlight-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.spotlight-mask-rect {
  transition: x 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              y 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-target-pulse {
  position: absolute;
  pointer-events: none;
  border-radius: 18px;
  box-shadow: 0 0 0 2px var(--accent-color, #2481cc), 0 0 24px rgba(36, 129, 204, 0.45);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: spotlightGlowPulse 2s infinite ease-in-out;
}

@keyframes spotlightGlowPulse {
  0%, 100% {
    box-shadow: 0 0 0 2px var(--accent-color, #2481cc), 0 0 16px rgba(36, 129, 204, 0.3);
  }
  50% {
    box-shadow: 0 0 0 3px var(--accent-color, #2481cc), 0 0 28px rgba(36, 129, 204, 0.6);
  }
}

/* Tooltip Bubble */
.spotlight-tooltip {
  position: absolute;
  max-width: 320px;
  width: calc(100vw - 32px);
  background: var(--surface-glass, rgba(28, 28, 30, 0.94));
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 1px rgba(255, 255, 255, 0.2);
  color: var(--text-primary, #ffffff);
  z-index: 10002;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              top 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

[data-theme="light"] .spotlight-tooltip {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
  color: #111111;
}

.spotlight-tooltip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-color, #2481cc);
  margin-bottom: 8px;
}

.spotlight-anim-wrap {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight-anim-wrap svg {
  width: 100%;
  height: 100%;
}

.spotlight-tooltip-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px 0;
}

.spotlight-tooltip-desc {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary, #8e8e93);
  margin: 0 0 16px 0;
}

.spotlight-tooltip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spotlight-dots {
  display: flex;
  gap: 5px;
}

.spotlight-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(120, 120, 128, 0.35);
  transition: all 0.25s ease;
}

.spotlight-dot.active {
  width: 16px;
  background: var(--accent-color, #2481cc);
}

.spotlight-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spotlight-btn-skip {
  background: transparent;
  border: none;
  color: var(--text-secondary, #8e8e93);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 8px;
}

.spotlight-btn-next {
  background: var(--accent-color, #2481cc);
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.spotlight-btn-next:active {
  transform: scale(0.96);
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-target-pulse {
    animation: none;
  }
  .spotlight-mask-rect,
  .spotlight-tooltip,
  .spotlight-overlay {
    transition: none !important;
  }
}
