/* ============================================================
   tutorial.css - Guided tutorial system (tut-*)
   ============================================================ */

/* ── Trigger button ── */
.tut-trigger-btn {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px 5px 9px;
  background: rgba(126, 232, 162, 0.08);
  border: 1px solid rgba(126, 232, 162, 0.25);
  border-radius: 20px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.tut-trigger-btn:hover {
  background: rgba(126, 232, 162, 0.16);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(126, 232, 162, 0.15);
}
.tut-trigger-btn:active { transform: scale(0.97); }

/* ── Full-screen overlay ── */
.tut-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.tut-overlay-in  { opacity: 1; }
.tut-overlay-out { opacity: 0; }

/* ── Spotlight ── */
.tut-spotlight {
  position: absolute;
  border-radius: 10px;
  box-shadow:
    0 0 0 4px rgba(126, 232, 162, 0.45),
    0 0 0 9999px rgba(10, 10, 14, 0.78);
  transition:
    top    0.42s cubic-bezier(0.4, 0, 0.2, 1),
    left   0.42s cubic-bezier(0.4, 0, 0.2, 1),
    width  0.42s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
  pointer-events: none;
  z-index: 9001;
}
.tut-spotlight-hidden { opacity: 0; pointer-events: none; }

@keyframes tutSpotlightPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(126, 232, 162, 0.45), 0 0 0 9999px rgba(10, 10, 14, 0.78); }
  50%       { box-shadow: 0 0 0 6px rgba(126, 232, 162, 0.65), 0 0 0 9999px rgba(10, 10, 14, 0.78); }
}
.tut-overlay-in .tut-spotlight:not(.tut-spotlight-hidden) {
  animation: tutSpotlightPulse 2.2s ease-in-out infinite;
}

/* ── Tooltip card ── */
.tut-card {
  position: fixed;
  width: 320px;
  background: linear-gradient(145deg, #1c1c26 0%, #16161e 100%);
  border: 1px solid rgba(126, 232, 162, 0.22);
  border-radius: 14px;
  padding: 22px 22px 18px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(126, 232, 162, 0.06) inset;
  pointer-events: all;
  z-index: 9010;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.tut-card-in  { opacity: 1; transform: translateY(0) scale(1); }
.tut-card-out { opacity: 0; transform: translateY(-6px) scale(0.97); transition: opacity 0.15s ease, transform 0.15s ease; }

.tut-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: none;
  border-radius: 50%;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tut-close:hover { background: rgba(255,107,107,0.15); color: var(--red); }

.tut-icon       { font-size: 26px; line-height: 1; margin-bottom: 10px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.tut-step-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; margin-bottom: 6px; opacity: 0.8; }
.tut-title      { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.25; }
.tut-body       { font-size: 13px; color: var(--text-2); line-height: 1.65; margin-bottom: 18px; }

/* ── Progress dots ── */
.tut-dots { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.tut-dot  {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, width 0.25s;
  border: none;
}
.tut-dot-active { background: var(--accent); width: 20px; border-radius: 4px; transform: none; }
.tut-dot:not(.tut-dot-active):hover { background: rgba(255,255,255,0.35); }

/* ── Action buttons ── */
.tut-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.tut-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
  border: none;
}
.tut-btn:active    { transform: scale(0.96); }
.tut-btn:disabled  { opacity: 0.3; cursor: not-allowed; }

.tut-btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.tut-btn-ghost:not(:disabled):hover { background: rgba(255,255,255,0.1); color: var(--text); }

.tut-btn-primary { background: var(--accent); color: #0a0a0e; }
.tut-btn-primary:hover { background: #9af4bb; }

/* ── Hello FD trigger button ── */
.fd-trigger-btn {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.28);
  color: #fbbf24;
}
.fd-trigger-btn:hover {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.18);
}
.fd-trigger-btn:active { transform: scale(0.97) !important; }

/* When Tour and FD buttons sit inside a flex group, they flow naturally with the footer centering. */
#scheduleTourBtnGroup .tut-trigger-btn {
  position: static;
  transform: none;
  top: auto;
  right: auto;
}
#scheduleTourBtnGroup .tut-trigger-btn:active { transform: scale(0.97); }

/* ── Hello Regional trigger button ── */
.regional-trigger-btn {
  background: rgba(99, 179, 237, 0.08);
  border-color: rgba(99, 179, 237, 0.28);
  color: #63b3ed;
}
.regional-trigger-btn:hover {
  background: rgba(99, 179, 237, 0.18);
  border-color: rgba(99, 179, 237, 0.7);
  box-shadow: 0 0 12px rgba(99, 179, 237, 0.18);
}
.regional-trigger-btn:active { transform: scale(0.97) !important; }

/* ── Hello Tech trigger button (same blue palette as Regional) ── */
.tech-trigger-btn {
  background: rgba(99, 179, 237, 0.08);
  border-color: rgba(99, 179, 237, 0.28);
  color: #63b3ed;
}
.tech-trigger-btn:hover {
  background: rgba(99, 179, 237, 0.18);
  border-color: rgba(99, 179, 237, 0.7);
  box-shadow: 0 0 12px rgba(99, 179, 237, 0.18);
}
.tech-trigger-btn:active { transform: scale(0.97) !important; }

/* When Regional and Tech buttons sit inside a flex group on the admin overview footer. */
#adminOverviewTourBtnGroup .tut-trigger-btn {
  position: static;
  transform: none;
  top: auto;
  right: auto;
}
#adminOverviewTourBtnGroup .tut-trigger-btn:active { transform: scale(0.97); }

/* ── Demo trigger button (purple) ── */
.demo-trigger-btn {
  background: rgba(192, 132, 252, 0.08);
  border-color: rgba(192, 132, 252, 0.28);
  color: #c084fc;
}
.demo-trigger-btn:hover {
  background: rgba(192, 132, 252, 0.18);
  border-color: rgba(192, 132, 252, 0.7);
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.18);
}
.demo-trigger-btn:active { transform: scale(0.97) !important; }
