/* Copyright (c) 2025-2026 Let's Automate. All rights reserved.
   Unauthorized copying, modification, or distribution is strictly prohibited. */

/* ═══════════════════════════════════════════════════════════════════════
   GUIDED TOUR - the spotlight overlay assets/js/guided-tour.js mounts
   (2026-10-12).

   Three layers in one fixed root: a transparent backdrop that swallows
   clicks, the spotlight (a transparent box over the target whose enormous
   box-shadow is what darkens everything else), and the card. Chrome colour
   comes from the --lgg-* contract (TR-1, TR-3) so the tour wears whatever
   theme the page does; nothing here is a literal brand colour.

   The root sits above the cookie banner and the lead gate on purpose: a tour
   is a few seconds long, Skip all is one tap, and a card half-hidden behind
   a consent strip would read as broken.
   ═══════════════════════════════════════════════════════════════════════ */

.lgg-tour {
  position: fixed;
  inset: 0;
  z-index: 100001;
  overflow: hidden;
  font-family: var(--lgg-font-body, 'Rajdhani', system-ui, sans-serif);
}

.lgg-tour__backdrop {
  position: absolute;
  inset: 0;
}

.lgg-tour__spot {
  position: fixed;
  border-radius: 12px;
  box-shadow: 0 0 0 200vmax rgba(0, 0, 0, 0.74);
  outline: 2px solid var(--lgg-primary, #00ffff);
  outline-offset: 3px;
  pointer-events: none;
  transition:
    top 0.22s ease,
    left 0.22s ease,
    width 0.22s ease,
    height 0.22s ease;
}

.lgg-tour__card {
  position: fixed;
  width: min(360px, calc(100vw - 24px));
  padding: 16px 18px 14px;
  border-radius: 14px;
  border: 1px solid var(--lgg-border, rgba(255, 255, 255, 0.18));
  background: var(--lgg-surface-raised, #1e1e37);
  color: var(--lgg-text, #ffffff);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  animation: lgg-tour-in 0.22s ease-out;
}
.lgg-tour__card[data-dock] {
  top: auto;
  left: 12px;
  right: 12px;
  width: auto;
}
.lgg-tour__card[data-dock='bottom'] {
  bottom: calc(12px + env(safe-area-inset-bottom));
}
.lgg-tour__card[data-dock='top'] {
  top: calc(12px + env(safe-area-inset-top));
}

.lgg-tour__step {
  margin: 0;
  font-family: var(--lgg-font-display, 'Orbitron', sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lgg-primary, #00ffff);
}
.lgg-tour__title {
  margin: 6px 0 4px;
  font-family: var(--lgg-font-display, 'Orbitron', sans-serif);
  font-size: 1rem;
  line-height: 1.3;
}
.lgg-tour__body {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--lgg-text-muted, #b0b0b0);
}

.lgg-tour__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lgg-tour__skip {
  margin-right: auto;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: var(--lgg-text-muted, #b0b0b0);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.lgg-tour__btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.lgg-tour__btn--primary {
  border: 0;
  background: var(--lgg-primary, #00ffff);
  color: var(--lgg-on-primary, #000000);
}
.lgg-tour__btn--secondary {
  border: 1px solid var(--lgg-border, rgba(255, 255, 255, 0.18));
  background: transparent;
  color: var(--lgg-text, #ffffff);
}
.lgg-tour__btn[hidden] {
  display: none;
}

@keyframes lgg-tour-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lgg-tour__spot {
    transition: none;
  }
  .lgg-tour__card {
    animation: none;
  }
}
