/* ============================================================
   Guided Tour — shared stylesheet
   No per-course edits needed. Copy verbatim to the target
   course's css/guided-tour.css.
   ============================================================

   HIGHLIGHT TECHNIQUE: Four surrounding dark panels
   ──────────────────────────────────────────────────
   Four position:fixed divs cover TOP / BOTTOM / LEFT / RIGHT
   of the viewport, leaving the target element's bounding rect
   completely uncovered.  The target shows at 100% brightness —
   no SVG, no z-index tricks, pure geometry.

   z-index stack:
     10000  .gt-panel    (dark surrounds)
     10001  #gt-glow     (cyan border ring — above panels)
     10001  #gt-arrow    (connector arrow)
     10002  #gt-tooltip  (card — topmost, pointer-events:all)
   ============================================================ */

/* ── Root ────────────────────────────────────────────────── */
#gt-root {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;   /* children opt in */
}

/* ── Four dark surrounding panels ───────────────────────── */
.gt-panel {
  position: fixed;
  background: rgba(0, 0, 0, 0.76);
  pointer-events: all;      /* block clicks outside highlight */
  transition: left   0.22s ease,
              top    0.22s ease,
              width  0.22s ease,
              height 0.22s ease;
  z-index: 10000;
}

/* ── Glow border around the highlighted element ─────────── */
#gt-glow {
  position: fixed;
  display: none;
  pointer-events: none;
  z-index: 10001;
  border-radius: 10px;
  border: 2.5px solid rgba(99, 220, 255, 0.95);
  box-shadow:
    0 0 0 5px  rgba(99, 220, 255, 0.20),
    0 0 28px 8px rgba(99, 220, 255, 0.50);
  animation: gt-glow-in 0.25s ease;
  transition: left 0.22s ease, top 0.22s ease,
              width 0.22s ease, height 0.22s ease;
}

@keyframes gt-glow-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1);    }
}

/* ── Arrow connector ─────────────────────────────────────── */
#gt-arrow {
  position: fixed;
  display: none;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 10001;
}

#gt-arrow.gt-arr-up {
  display: block;
  border-left:   10px solid transparent;
  border-right:  10px solid transparent;
  border-bottom: 12px solid #1e293b;
}
#gt-arrow.gt-arr-dn {
  display: block;
  border-left:  10px solid transparent;
  border-right: 10px solid transparent;
  border-top:   12px solid #1e293b;
}
#gt-arrow.gt-arr-lt {
  display: block;
  border-top:    10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right:  12px solid #1e293b;
}
#gt-arrow.gt-arr-rt {
  display: block;
  border-top:    10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left:   12px solid #1e293b;
}

/* ── Tooltip card ────────────────────────────────────────── */
#gt-tooltip {
  position: fixed;
  width: 340px;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(99, 220, 255, 0.32);
  border-radius: 14px;
  padding: 20px 20px 16px;
  box-shadow:
    0 10px 42px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 22px rgba(99, 220, 255, 0.14);
  z-index: 10002;
  pointer-events: all;
  color: #e2e8f0;
}

#gt-tooltip.gt-wide { width: 420px; }

/* Pop-in animation */
@keyframes gt-pop-anim {
  0%   { opacity: 0; transform: scale(0.87) translateY(10px); }
  65%  { opacity: 1; transform: scale(1.03) translateY(-2px); }
  100% { opacity: 1; transform: scale(1)    translateY(0);    }
}
#gt-tooltip.gt-pop {
  animation: gt-pop-anim 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── Tooltip header ──────────────────────────────────────── */
#gt-tt-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

#gt-step-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(99, 220, 255, 0.82);
}

#gt-skip-btn {
  background: none;
  border: none;
  color: rgba(148, 163, 184, 0.65);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
#gt-skip-btn:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

/* ── Tooltip title ───────────────────────────────────────── */
#gt-tt-title {
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* ── Tooltip body ────────────────────────────────────────── */
#gt-tt-body {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.68;
  margin-bottom: 16px;
}
#gt-tt-body strong { color: #63dcff; }
#gt-tt-body em     { color: #a5b4fc; font-style: normal; }

/* ── Footer ──────────────────────────────────────────────── */
#gt-tt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Progress dots */
#gt-dots { display: flex; gap: 5px; align-items: center; }

.gt-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.28);
  transition: background 0.2s, transform 0.2s;
}
.gt-dot-on { background: #63dcff; transform: scale(1.45); }

/* Nav buttons */
#gt-nav { display: flex; gap: 8px; }

#gt-prev-btn,
#gt-next-btn {
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

#gt-prev-btn {
  background: rgba(255, 255, 255, 0.07);
  color: #94a3b8;
}
#gt-prev-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #e2e8f0;
}

#gt-next-btn {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
}
#gt-next-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.52);
}

/* ── Pulse ring on highlighted buttons ───────────────────── */
@keyframes gt-pulse-anim {
  0%   { box-shadow: 0 0 0 0    rgba(99, 220, 255, 0.85); }
  70%  { box-shadow: 0 0 0 14px rgba(99, 220, 255, 0);    }
  100% { box-shadow: 0 0 0 0    rgba(99, 220, 255, 0);    }
}
.gt-pulse {
  animation: gt-pulse-anim 1.5s ease-in-out infinite !important;
  border-radius: 6px;
}

/* ── Launch button injected into the Lab Features section ── */
#gt-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 6px;
  padding: 11px 22px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.42);
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.02em;
}
#gt-launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(14, 165, 233, 0.58);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  #gt-tooltip,
  #gt-tooltip.gt-wide {
    width: calc(100vw - 24px) !important;
    left: 12px !important;
  }
}
