/* ========================================================
   Guided Tour — tooltip, backdrop, tip styles
   Prefix: .od-tour-
   ======================================================== */

/* ── Backdrop ──────────────────────────────────────────── */
.od-tour-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 36, 63, 0.55);
  z-index: 1000;
  animation: od-tour-fadein 0.25s ease;
}

/* Elevate a fixed container above the backdrop */
.od-tour-elevated {
  z-index: 1001 !important;
}

/* Pulse ring on the highlighted target */
.od-tour-target {
  position: relative !important;
  z-index: 2 !important;
  border-radius: var(--radius-btn);
  animation: od-tour-pulse 1.8s ease-in-out infinite;
}

@keyframes od-tour-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--lime); }
  50%      { box-shadow: 0 0 0 6px var(--lime), 0 0 14px rgba(233, 252, 135, 0.4); }
}

/* ── Tooltip ───────────────────────────────────────────── */
.od-tour-tooltip {
  position: fixed;
  z-index: 1002;
  width: 280px;
  max-width: calc(100vw - 2rem);
  background: var(--surface-white, #fff);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1rem 1.125rem;
  animation: od-tour-fadein 0.2s ease;
}

@keyframes od-tour-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.od-tour-tooltip-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.od-tour-tooltip-body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.od-tour-tooltip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.od-tour-progress {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.od-tour-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.od-tour-skip-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0.375rem 0.5rem;
}

.od-tour-skip-btn:active {
  color: var(--text-secondary);
}

.od-tour-next-btn {
  background: var(--lime);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-btn);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1.125rem;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
}

.od-tour-next-btn:active {
  background: #d4e870;
  box-shadow: var(--shadow-cta-pressed);
}

/* Arrow (rotated square) */
.od-tour-arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--surface-white, #fff);
  transform: rotate(45deg);
}

.od-tour-tooltip[data-position="above"] .od-tour-arrow {
  bottom: -6px;
}

.od-tour-tooltip[data-position="below"] .od-tour-arrow {
  top: -6px;
}

/* ── Tour Prompt ───────────────────────────────────────── */
.od-tour-prompt {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: var(--surface-white, #fff);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1rem 1.25rem;
  text-align: center;
  max-width: calc(100vw - 2rem);
  width: 300px;
  animation: od-tour-slidein 0.3s ease;
}

@keyframes od-tour-slidein {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.od-tour-prompt-text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.od-tour-prompt-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.od-tour-prompt-yes {
  background: var(--lime);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
}

.od-tour-prompt-yes:active {
  background: #d4e870;
}

.od-tour-prompt-no {
  background: none;
  border: var(--border-subtle);
  border-radius: var(--radius-btn);
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
}

.od-tour-prompt-no:active {
  background: var(--cream-light);
}

/* ── Contextual Tips ───────────────────────────────────── */
.od-tour-tip {
  margin: 0.75rem 1rem;
  padding: 0.625rem 0.75rem;
  background: var(--cream-light, #FEFBF2);
  border: var(--border-subtle);
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  animation: od-tour-fadein 0.3s ease;
}

.od-tour-tip-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

.od-tour-tip-body {
  flex: 1;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.od-tour-tip-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0.25rem;
}

.od-tour-tip-dismiss:active {
  color: var(--text-primary);
}
