/* LexIZY interaktív bemutató — vezetett tour overlay
   A meglévő design lapokra ültetett, nem-invazív prezentációs réteg. */

:root {
  --tour-accent: #4f46e5;
  --tour-accent-2: #6366f1;
  --tour-ink: #0f172a;
  --tour-muted: #64748b;
}

/* Sötétítő réteg lyukkal (spotlight) */
#lx-tour-mask {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  transition: box-shadow .25s ease, top .25s ease, left .25s ease,
              width .25s ease, height .25s ease, opacity .2s ease;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, .62);
}
#lx-tour-mask.lx-no-spot {
  /* Középre helyezett, célelem nélküli lépés: teljes sötétítés.
     Itt tömör háttérrel sötétítünk, mert a box-shadow a viewporton kívülre
     esne (a maszk kitölti a képernyőt), így nem látszana. */
  inset: 0;
  border-radius: 0;
  background: rgba(15, 23, 42, .68);
  box-shadow: none;
}
#lx-tour-ring {
  position: fixed;
  z-index: 2147483001;
  pointer-events: none;
  border: 2px solid var(--tour-accent-2);
  border-radius: 12px;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .25);
  transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease, opacity .2s ease;
}
#lx-tour-ring.lx-hidden, #lx-tour-mask.lx-hidden { opacity: 0; }

/* Magyarázó buborék */
#lx-tour-pop {
  position: fixed;
  z-index: 2147483002;
  width: min(380px, calc(100vw - 32px));
  background: #fff;
  color: var(--tour-ink);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .35);
  padding: 20px 20px 16px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transition: top .25s ease, left .25s ease, opacity .2s ease;
}
#lx-tour-pop.lx-center {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 32px));
}
.lx-pop-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--tour-accent);
  margin-bottom: 8px;
}
.lx-pop-eyebrow .lx-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tour-accent); display: inline-block;
}
.lx-pop-title {
  font-size: 18px; font-weight: 700; line-height: 1.3;
  margin: 0 0 6px;
}
.lx-pop-body {
  font-size: 14px; line-height: 1.55; color: var(--tour-muted);
  margin: 0 0 16px;
}
.lx-pop-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.lx-progress {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--tour-muted); font-weight: 600;
}
.lx-progress .lx-bars { display: flex; gap: 4px; }
.lx-progress .lx-bar {
  width: 18px; height: 4px; border-radius: 4px; background: #e2e8f0;
}
.lx-progress .lx-bar.on { background: var(--tour-accent); }
.lx-pop-actions { display: flex; gap: 8px; }
.lx-btn {
  font-family: inherit; font-size: 13px; font-weight: 700;
  border-radius: 10px; padding: 9px 16px; cursor: pointer;
  border: 1px solid transparent; transition: all .15s ease;
}
.lx-btn-ghost {
  background: #fff; color: var(--tour-muted); border-color: #e2e8f0;
}
.lx-btn-ghost:hover { background: #f8fafc; color: var(--tour-ink); }
.lx-btn-primary {
  background: linear-gradient(135deg, var(--tour-accent), var(--tour-accent-2));
  color: #fff;
}
.lx-btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Bezáró + szakasz jelölés a buborék tetején */
.lx-pop-close {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 8px;
  border: none; background: #f1f5f9; color: var(--tour-muted);
  cursor: pointer; font-size: 16px; line-height: 1;
}
.lx-pop-close:hover { background: #e2e8f0; color: var(--tour-ink); }

/* Újraindító / indító lebegő gomb (ha a tour be van zárva) */
#lx-tour-launch {
  position: fixed; right: 20px; bottom: 20px;
  z-index: 2147483002;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--tour-accent), var(--tour-accent-2));
  color: #fff; border: none; cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif; font-size: 13px; font-weight: 700;
  padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(79, 70, 229, .4);
  transition: transform .15s ease, filter .15s ease;
}
#lx-tour-launch:hover { transform: translateY(-2px); filter: brightness(1.06); }
#lx-tour-launch.lx-hidden { display: none; }

/* Befejező kártya */
.lx-finish .lx-pop-title { font-size: 22px; }
.lx-finish-badge {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px;
  display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #059669;
}

@media (max-width: 640px) {
  #lx-tour-pop { left: 16px !important; right: 16px; width: auto; }
}
