/* ============================================================================
   tutorial.css - the guide window ("راهنما"), in English and Persian.
   File: game/static/game/css/tutorial.css

   HOW TO EDIT
   1. Section 1: colors and size of the window.
   2. Section 2: the window itself. 3: the example elements. 4: the buttons.
   The text of the guide is in game/static/game/js/tutorial.js.
   ============================================================================ */


/* ---------- 1. COLORS AND SIZE ---------- */
:root {
  --tut-width: 520px;                                   /* widest the window gets */
  --tut-bg: var(--sidebar-bg, #ffffff);
  --tut-text: var(--text-dark, #18181b);
  --tut-muted: var(--text-muted, #71717a);
  --tut-border: var(--sidebar-border, #e5e7eb);
  --tut-accent: var(--accent, #f97316);
  --tut-overlay: rgba(10, 10, 12, 0.55);                /* the dimmed page behind it */
}


/* ---------- 2. THE WINDOW ---------- */
.tut-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--tut-overlay);
}
.tut-dialog {
  position: relative;
  width: min(100%, var(--tut-width));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 26px 26px 20px;
  border: 1px solid var(--tut-border);
  border-radius: 18px;
  background: var(--tut-bg);
  color: var(--tut-text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  font-family: var(--font, sans-serif);
  text-align: right;
}
.tut-close {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--tut-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.tut-close:hover { background: var(--tut-border); color: var(--tut-text); }

.tut-count { margin: 0; color: var(--tut-muted); font-size: 13px; }
.tut-title { margin: 4px 0 12px; font-size: 22px; font-weight: 800; line-height: 1.5; }
.tut-body p { margin: 0 0 8px; font-size: 15px; line-height: 2; }


/* ---------- 3. EXAMPLE ELEMENTS ---------- */
.tut-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 4px;
  padding: 16px 10px;
  border-radius: 12px;
  background: var(--canvas-bg, #f4f4f6);                /* looks like the workspace */
}
.tut-chip {                                             /* looks like an element on the workspace */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--pill-border, #e4e4e7);
  border-radius: var(--radius-pill, 10px);
  background: var(--pill-bg, #ffffff);
  box-shadow: var(--pill-shadow, 0 2px 6px rgba(0, 0, 0, 0.06));
  color: var(--text-dark, #18181b);
  font-size: 15px;
  font-weight: 500;
}
.tut-chip.is-result { border-color: var(--tut-accent); }
.tut-emoji { font-size: 17px; line-height: 1; }
.tut-op, .tut-arrow { color: var(--tut-muted); font-weight: 700; }
.tut-arrow { font-size: 20px; }

.tut-dropbox {                                          /* a picture of the Dictionary box */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 2px solid var(--tut-accent);
  border-radius: 14px;
  background: var(--accent-light, #fff7ed);
  color: var(--tut-accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}
.tut-dropbox img { width: 26px; height: 26px; display: block; }
html[data-theme="dark"] .tut-dropbox img { filter: invert(1) brightness(1.1); }
.tut-dropbox small { display: block; font-size: 0.85em; font-weight: 400; opacity: 0.8; }


/* ---------- 4. BUTTONS AND DOTS ---------- */
.tut-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.tut-btn {
  padding: 8px 18px;
  border: 1px solid var(--tut-border);
  border-radius: 10px;
  background: transparent;
  color: var(--tut-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.tut-btn:hover { border-color: var(--tut-accent); }
.tut-btn-main { background: var(--tut-accent); border-color: var(--tut-accent); color: #ffffff; }
.tut-btn-main:hover { filter: brightness(0.95); }
.tut-skip { border-color: transparent; color: var(--tut-muted); }

.tut-dots { display: inline-flex; gap: 6px; margin-inline-start: auto; }
.tut-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tut-border);
  cursor: pointer;
}
.tut-dots i.on { background: var(--tut-accent); }

@media (max-width: 480px) {
  .tut-dialog { padding: 22px 16px 16px; }
  .tut-title { font-size: 19px; }
  .tut-body p { font-size: 14px; }
  .tut-dots { display: none; }
}
