/* chiyar-help.css — سیستم راهنمای «؟» + Onboarding Tour
   فایل جدا و افزودنی؛ به style.css اصلی دست نمی‌زنه. */

.chiyar-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.15);
  color: #c9a227;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-right: 4px;
  vertical-align: middle;
  user-select: none;
  border: 1px solid rgba(201, 162, 39, 0.3);
  line-height: 1;
}
.chiyar-help:hover,
.chiyar-help:focus {
  background: rgba(201, 162, 39, 0.3);
  outline: none;
}

.chiyar-help-popover {
  position: fixed;
  z-index: 9999;
  max-width: 280px;
  background: #1a1a20;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  direction: rtl;
  text-align: right;
  font-family: inherit;
  animation: chiyarHelpFadeIn 0.15s ease-out;
}
.chiyar-help-popover .title {
  font-size: 13px;
  font-weight: 700;
  color: #c9a227;
  margin-bottom: 6px;
}
.chiyar-help-popover .text {
  font-size: 12.5px;
  color: #c4c4cf;
  line-height: 1.8;
  margin-bottom: 10px;
}
.chiyar-help-popover button {
  background: rgba(201, 162, 39, 0.15);
  color: #c9a227;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.chiyar-help-popover button:hover { background: rgba(201, 162, 39, 0.28); }

@keyframes chiyarHelpFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Onboarding Tour ── */
.chiyar-onb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 12, 0.72);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.chiyar-onb-card {
  background: #16161c;
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 18px;
  max-width: 380px;
  width: 100%;
  padding: 28px 24px 22px;
  direction: rtl;
  text-align: right;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: chiyarHelpFadeIn 0.2s ease-out;
}
.chiyar-onb-emoji { font-size: 30px; margin-bottom: 12px; }
.chiyar-onb-title {
  font-size: 18px;
  font-weight: 800;
  color: #ececf2;
  margin-bottom: 8px;
}
.chiyar-onb-text {
  font-size: 13.5px;
  color: #9a9aa8;
  line-height: 1.9;
  margin-bottom: 22px;
}
.chiyar-onb-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.chiyar-onb-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.chiyar-onb-dots span.active { background: #c9a227; width: 18px; border-radius: 4px; transition: all .2s; }
.chiyar-onb-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.chiyar-onb-skip {
  background: none;
  border: none;
  color: #6b6b7b;
  font-size: 12.5px;
  cursor: pointer;
  padding: 8px 4px;
}
.chiyar-onb-next {
  background: #c9a227;
  color: #0f0f13;
  border: none;
  border-radius: 10px;
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.chiyar-onb-next:hover { background: #ddb62e; }

/* ── دکمه‌ی شناور «؟» برای بازکردن دوباره‌ی آموزش ── */
.chiyar-help-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1a1a20;
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: #c9a227;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.chiyar-help-fab:hover { background: #232329; }

@media (max-width: 640px) {
  .chiyar-help-fab { bottom: 76px; left: 14px; width: 38px; height: 38px; font-size: 14px; }
}
