/* css/guided-tour.css — Guided Test User tour overlay */

/* ── Persistent demo banner ─────────────────────────────────── */
#gt-demo-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99000;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 16px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 0.85rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
#gt-demo-banner .gt-banner-text { letter-spacing: 0.3px; }
#gt-demo-banner .gt-banner-actions { display: flex; gap: 8px; }
.gt-banner-btn {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.gt-banner-btn:hover { background: rgba(255, 255, 255, 0.3); }
.gt-banner-exit { background: rgba(220, 38, 38, 0.35); border-color: rgba(255, 255, 255, 0.35); }
.gt-banner-exit:hover { background: rgba(220, 38, 38, 0.6); }

/* Nudge fixed page headers below the banner where possible. */
body.gt-has-banner { scroll-padding-top: 40px; }

/* ── Spotlight ───────────────────────────────────────────────── */
.gt-spotlight {
  position: absolute;
  z-index: 99100;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(2, 18, 46, 0.72),
              0 0 24px 4px rgba(56, 189, 248, 0.35) inset;
  opacity: 0;
  transition: opacity 0.3s ease, top 0.25s ease, left 0.25s ease,
              width 0.25s ease, height 0.25s ease;
}
.gt-spotlight.gt-visible { opacity: 1; }

/* ── Tooltip card ────────────────────────────────────────────── */
.gt-tooltip {
  position: fixed;
  z-index: 99200;
  width: 340px;
  max-width: 92vw;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.32);
  font-family: 'Source Serif Pro', Georgia, serif;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}
.gt-tooltip.gt-visible { opacity: 1; transform: translateY(0); }

/* Centered modal variant (no spotlight target). */
.gt-tooltip.gt-modal {
  top: 50%; left: 50%;
  width: 460px;
  transform: translate(-50%, -50%) translateY(8px);
}
.gt-tooltip.gt-modal.gt-visible { transform: translate(-50%, -50%); }

/* ── Internal layout ─────────────────────────────────────────── */
.gt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 2px;
}
.gt-step-count {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gt-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 4px;
}
.gt-close:hover { background: #f1f5f9; color: #475569; }

.gt-progress {
  height: 4px;
  background: #e2e8f0;
  margin: 8px 16px 0;
  border-radius: 4px;
  overflow: hidden;
}
.gt-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #10b981);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.gt-title {
  margin: 12px 16px 6px;
  font-size: 1.12rem;
  color: #1e3a8a;
  font-weight: 700;
}
.gt-body {
  margin: 0 16px 4px;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
}
.gt-body strong { color: #1e3a8a; }

/* Defensive: host pages with dark themes or global color rules can otherwise
   bleed unreadable (e.g. white) text into the tour card. Force readable colors. */
.gt-tooltip .gt-title { color: #1e3a8a !important; }
.gt-tooltip .gt-body,
.gt-tooltip .gt-body * { color: #334155 !important; }
.gt-tooltip .gt-body strong { color: #1e3a8a !important; }
.gt-tooltip .gt-step-count { color: #64748b !important; }
.gt-tooltip .gt-close { color: #94a3b8 !important; }
.gt-tooltip .gt-btn-primary { color: #fff !important; }
.gt-tooltip .gt-btn-secondary { color: #64748b !important; }

.gt-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  padding: 14px 16px 16px;
  margin-top: 10px;
  border-top: 1px solid #eef2f7;
}
.gt-btn-primary {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
}
.gt-btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.gt-btn-primary.gt-cta {
  background: linear-gradient(135deg, #059669, #10b981);
  padding: 12px 24px;
  font-size: 1rem;
}
.gt-btn-secondary {
  background: none;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.gt-btn-secondary:hover { background: #f8fafc; color: #334155; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .gt-tooltip,
  .gt-tooltip.gt-modal {
    width: 94vw;
    left: 3vw !important;
    right: 3vw;
    top: auto !important;
    bottom: 12px;
    transform: translateY(8px);
  }
  .gt-tooltip.gt-modal { top: 50% !important; bottom: auto; transform: translate(0, -50%) translateY(8px); }
  .gt-tooltip.gt-visible,
  .gt-tooltip.gt-modal.gt-visible { transform: translateY(0); }
  .gt-tooltip.gt-modal.gt-visible { transform: translate(0, -50%); }
  #gt-demo-banner { font-size: 0.75rem; gap: 10px; }
}
