/* GREVIA PIVMS UX Prototype — 共用樣式：新手教學（tour）＋ toast ＋ 重播按鈕 */

/* ---------- 重播按鈕（右下角「?」） ---------- */
#tour-replay {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #003521;
  color: #E6A738;
  font-size: 20px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 53, 33, 0.35);
  z-index: 8000;
}
#tour-replay:hover { background: #004a2e; }

/* ---------- Toast ---------- */
#pivms-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%) translateY(12px);
  max-width: 420px;
  background: #1f2937;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 9600;
}
#pivms-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Tour：捲動鎖定 ---------- */
html.pivms-tour-lock,
html.pivms-tour-lock body { overflow: hidden; }

/* ---------- Tour：遮罩與聚光燈 ---------- */
#tour-blocker {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: transparent; /* 變暗由 spotlight 的 box-shadow 負責 */
}
#tour-spotlight {
  position: fixed;
  z-index: 9001;
  pointer-events: none;
  border-radius: 10px;
  box-shadow: 0 0 0 2px rgba(230, 167, 56, 0.9), 0 0 0 200vmax rgba(0, 27, 17, 0.62);
  transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
}

/* ---------- Tour：提示卡 ---------- */
#tour-card {
  position: fixed;
  z-index: 9002;
  width: 320px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #D8D3CB;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  padding: 16px 18px;
  font-family: inherit;
}
#tour-card .tour-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #003521;
}
#tour-card .tour-card-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.65;
  margin: 8px 0 12px;
}
#tour-card .tour-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #6b7263;
}
#tour-card .tour-dots { display: inline-flex; gap: 5px; }
#tour-card .tour-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D8D3CB;
  display: inline-block;
}
#tour-card .tour-dot.on { background: #E6A738; }
#tour-card .tour-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
#tour-card .tour-btn {
  font-family: inherit;
  font-size: 13px;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}
#tour-card .tour-btn:disabled { opacity: 0.45; cursor: default; }
#tour-card .tour-btn-primary {
  background: #003521;
  color: #ffffff;
  border: 1px solid #003521;
  font-weight: 500;
}
#tour-card .tour-btn-primary:hover { background: #004a2e; }
#tour-card .tour-btn-secondary {
  background: #ffffff;
  color: #003521;
  border: 1px solid #D8D3CB;
}
#tour-card .tour-btn-ghost {
  background: none;
  border: none;
  color: #6b7263;
  margin-left: auto;
  padding: 6px 4px;
}
#tour-card .tour-btn-ghost:hover { color: #003521; }
