/* =====================================================================
   TERMINAL INTERACTIVE GUIDED TOUR STYLES
   ===================================================================== */

.terminal-tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: transparent;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: none;
}

.terminal-tour-backdrop.active {
  display: block;
  opacity: 1;
}

/* Spotlight that frames the highlighted target element with crystal clear interior */
.tour-spotlight {
  position: fixed;
  z-index: 99995;
  border-radius: 8px;
  border: 2px solid #00e5ff;
  box-shadow: 0 0 0 9999px rgba(3, 7, 18, 0.85), 0 0 35px rgba(0, 229, 255, 0.75);
  background: transparent !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  animation: pulseSpotlight 2.5s infinite ease-in-out;
}

/* Ensure the highlighted target element stays 100% crisp, sharp, unblurred, and illuminated */
.tour-target-highlighted {
  position: relative !important;
  z-index: 99996 !important;
  filter: brightness(1.15) !important;
  transition: filter 0.3s ease;
}

@keyframes pulseSpotlight {
  0%, 100% {
    border-color: #00e5ff;
    box-shadow: 0 0 0 9999px rgba(3, 7, 18, 0.85), 0 0 25px rgba(0, 229, 255, 0.6);
  }
  50% {
    border-color: #38bdf8;
    box-shadow: 0 0 0 9999px rgba(3, 7, 18, 0.85), 0 0 45px rgba(0, 229, 255, 0.95);
  }
}

/* Floating Tour Tooltip Card */
.tour-card {
  position: fixed;
  z-index: 100000;
  width: 400px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(145deg, #090e1a 0%, #0d1527 100%);
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 229, 255, 0.25);
  padding: 22px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
}

/* Card Header */
.tour-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tour-step-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.12);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.tour-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
  transition: all 0.2s;
}

.tour-close-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

/* Card Title & Content */
.tour-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-card-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.tour-usages-list {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 18px;
  list-style: none;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tour-usages-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.tour-usages-list li strong {
  color: #38bdf8;
}

/* Card Footer & Controls */
.tour-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.tour-skip-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.tour-skip-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
}

.tour-nav-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-prev-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.tour-prev-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tour-prev-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tour-next-btn {
  background: linear-gradient(135deg, #00e5ff 0%, #0284c7 100%);
  border: 1px solid #38bdf8;
  color: #030712;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  transition: all 0.2s;
}

.tour-next-btn:hover {
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.7);
  transform: translateY(-1px);
}

/* Directional Pointers / Arrows */
.tour-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.tour-arrow-up {
  top: -10px;
  border-width: 0 10px 10px 10px;
  border-color: transparent transparent #00e5ff transparent;
}

.tour-arrow-down {
  bottom: -10px;
  border-width: 10px 10px 0 10px;
  border-color: #00e5ff transparent transparent transparent;
}

.tour-arrow-left {
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-color: transparent #00e5ff transparent transparent;
}

.tour-arrow-right {
  right: -10px;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #00e5ff;
}
