/* HR-Onboarding Tour-Styles
   Spotlight via box-shadow-Trick auf transparenter Box mit Target-Position.
   Nutzt CSS-Variablen vom Tour-Container für Position. */

/* Overlay mit Spotlight-Cutout */
.hrtour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: auto;
  /* Trick: leere Box mit huge box-shadow erzeugt cutout um die Spot-Position */
}
.hrtour-overlay::before {
  content: '';
  position: absolute;
  top: var(--spot-top, 0);
  left: var(--spot-left, 0);
  width: var(--spot-width, 0);
  height: var(--spot-height, 0);
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.7);
  border-radius: 6px;
  transition: top 250ms ease, left 250ms ease, width 250ms ease, height 250ms ease;
  pointer-events: none;
}

/* Tooltip-Box */
.hrtour-tooltip {
  position: absolute;
  z-index: 10000;
  background: var(--bg, #ffffff);
  color: var(--text, #1e293b);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  padding: 16px 20px;
  max-width: 360px;
  width: calc(100vw - 32px);
  opacity: 0;
  animation: hrtour-tooltip-in 250ms ease-out forwards;
}
:root[data-theme="dark"] .hrtour-tooltip {
  background: var(--bg-card, #1e293b);
  color: var(--text, #f1f5f9);
}

.hrtour-step-counter {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.hrtour-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink, #1e293b);
}
:root[data-theme="dark"] .hrtour-title { color: var(--text, #f1f5f9); }
.hrtour-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted, #475569);
  margin-bottom: 12px;
}

.hrtour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hrtour-skip {
  background: transparent;
  border: 0;
  color: var(--text-muted, #94a3b8);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
}
.hrtour-skip:hover { color: var(--ink, #1e293b); }

.hrtour-nav { display: flex; gap: 8px; }
.hrtour-prev,
.hrtour-next {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
}
.hrtour-prev {
  background: var(--bg-subtle, #f1f5f9);
  color: var(--ink, #1e293b);
}
.hrtour-prev:disabled { opacity: 0.4; cursor: not-allowed; }
.hrtour-next {
  background: var(--accent, #d4a03e);
  color: #fff;
}
.hrtour-next:hover { filter: brightness(1.05); }

/* Pulse-Hint für nie-gesehene Tour — wird auf bestehendem #helpBtn gesetzt
   (entfernt nach erstem Tour-Start via localStorage 'hrtour_seen') */
.tour-unseen {
  animation: tour-pulse 2s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes tour-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 160, 62, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(212, 160, 62, 0); }
}

/* Animation */
@keyframes hrtour-tooltip-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reduced-Motion */
@media (prefers-reduced-motion: reduce) {
  .hrtour-overlay::before,
  .hrtour-tooltip,
  .tour-unseen {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .hrtour-tooltip {
    left: 16px !important;
    right: 16px !important;
    max-width: none;
    width: auto;
  }
}

.hrtour-cta-link {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--accent, #D4AF37);
  color: white;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  margin-right: auto;   /* schiebt nach links, "Fertig" bleibt rechts */
  transition: opacity 0.15s;
}
.hrtour-cta-link:hover { opacity: 0.9; }
.hrtour-cta-link:focus-visible { outline: 2px solid white; outline-offset: 2px; }
