/* ==========================================
   Gargoli — Module Onboarding Tour (first-access tooltip guide)
   Shared by every module. (gargoli.md §20.14)
   Imports the central design tokens so it follows the active theme.
   ========================================== */
@import './design.css';

.tour-layer {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
}

.tour-layer.is-open {
  display: block;
}

/* The spotlight: a target ring whose huge box-shadow dims everything else. */
.tour-ring {
  position: fixed;
  display: none;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-primary-cyan);
  box-shadow: 0 0 0 9999px rgba(16, 42, 67, 0.62);
  pointer-events: none;
  transition: left 0.18s ease, top 0.18s ease, width 0.18s ease, height 0.18s ease;
}

.tour-card {
  position: fixed;
  width: 340px;
  max-width: 340px;
  padding: var(--space-4);
  background: var(--color-surface-white);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-pale);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 3001;
}

.tour-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.tour-card-step {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-cyan);
}

.tour-card-close {
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 1.375rem;
  line-height: 1;
  padding: 0 0.25rem;
  cursor: pointer;
}

.tour-card-close:hover {
  color: var(--color-text-primary);
}

.tour-card-title {
  margin: 0 0 var(--space-2);
  font-size: 1.0625rem;
  font-weight: 700;
}

.tour-card-body {
  margin: 0 0 var(--space-4);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.tour-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.tour-card-nav {
  display: flex;
  gap: var(--space-2);
}

/* Narrow screens: dock the card to the bottom, full width (responsive §6.4). */
@media (max-width: 640px) {
  .tour-card {
    width: auto;
    max-width: none;
  }

  .tour-card-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .tour-card-nav {
    justify-content: space-between;
  }

  .tour-card-nav .btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-ring {
    transition: none;
  }
}
