/* Guided Tour & Educational Spotlight Styles (ARC Beta 0.1) */

/* Tour Overlay Backdrop */
.arc-tour-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.arc-tour-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Spotlight Highlight on active element */
.tour-spotlight-active {
  position: relative !important;
  z-index: 1005 !important;
  box-shadow: 0 0 0 4px var(--accent-primary), 0 0 30px rgba(99, 102, 241, 0.5) !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Floating Tour Card */
.arc-tour-card {
  position: fixed;
  z-index: 1010;
  width: 380px;
  max-width: 90vw;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95) translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), top 0.25s ease, left 0.25s ease;
  pointer-events: none;
}

.arc-tour-card.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Tour Card Header */
.tour-card-header {
  padding: 12px 18px;
  background: var(--bg-surface-2);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tour-step-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-surface);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.tour-progress-bar-wrap {
  height: 3px;
  width: 100%;
  background: var(--bg-surface-3);
}

.tour-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  transition: width 0.25s ease;
}

/* Tour Card Body */
.tour-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.tour-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.tour-pedagogical-focus {
  background: var(--bg-surface-2);
  border-left: 2px solid var(--accent-primary);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-primary);
}

/* Tour Card Footer */
.tour-card-footer {
  padding: 12px 18px;
  background: var(--bg-surface-2);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Contextual Info Icon (ⓘ) styling */
.info-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--bg-surface-3);
  color: var(--text-muted);
  border: 1px solid var(--border-default);
  font-size: 11px;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
  transition: all 0.15s ease;
  user-select: none;
}

.info-icon-btn:hover {
  background: var(--accent-surface);
  color: var(--accent-text);
  border-color: var(--border-focus);
  transform: scale(1.1);
}

/* Floating Hover Tooltip */
.arc-floating-tooltip {
  position: absolute;
  z-index: 1050;
  width: 280px;
  background: #11141b;
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.arc-floating-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-title {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tooltip-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.tooltip-hint {
  font-size: 10px;
  color: var(--accent-text);
  font-weight: 500;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 4px;
}

/* Learn Mode Banner & Glow */
.learn-mode-banner {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.35);
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-primary);
  animation: fadeIn 0.2s ease;
}

.learn-mode-active .info-icon-btn {
  background: var(--accent-surface);
  color: var(--accent-text);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.3);
}

/* Detailed Help Drawer Styles */
.help-drawer {
  width: 520px;
}

.help-drawer-header {
  padding: 16px 20px;
}

.help-drawer-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-surface);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: bold;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.help-drawer-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.help-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.help-section-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-text);
}

.help-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.help-example-box {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.45;
}

.help-tip-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #a7f3d0;
}

.relationship-flow-diagram {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.flow-pill {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 4px;
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: all 0.12s ease;
}

.flow-pill:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-focus);
  color: var(--text-primary);
}

.flow-pill.current {
  background: var(--accent-surface);
  color: var(--accent-text);
  border-color: var(--accent-primary);
  font-weight: 600;
}

.flow-arrow {
  color: var(--text-muted);
  font-weight: bold;
  font-size: 12px;
}
