/* Yardım (web/app/help.js): the side menu's Yardım and Tema, the help drawer, the screen tour. Colours: theme.css tokens. */

/* ---------- side menu: Yardım and Tema above the account ---------- */
.side-tools { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--p-efefef); }
.side-help .nav-kbd { min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; font: 600 10.5px/1 var(--font); color: var(--muted); }
.side-theme { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 0 10px; }
.side-theme-label { font-size: 12.5px; color: var(--muted); }
.side-tools + .side-foot-wrap .side-foot { border-top: 0; }

.theme-toggle { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--p-f4f4f4); }
.theme-toggle button { height: 26px; min-width: 28px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.theme-toggle button:hover { color: var(--ink); }
.theme-toggle button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: var(--knob-shadow); }
.theme-toggle button:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.theme-toggle svg.i.sm { width: 14px; height: 14px; }
.theme-toggle.labelled button { padding: 0 10px; }

/* ---------- the drawer ---------- */
.hd-layer { position: fixed; inset: 0; z-index: 60; }
.hd-backdrop { position: absolute; inset: 0; background: var(--scrim); animation: hd-fade 200ms ease-out both; }
.hd-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); display: flex; flex-direction: column; background: var(--card);
  color: var(--text); box-shadow: var(--dialog-shadow); animation: hd-in 320ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.hd-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px;
  background: var(--stage); color: var(--stage-ink); }
.hd-head h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--stage-ink); }
.hd-head small { font-size: 12.5px; color: var(--stage-muted); }
.hd-close { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--stage-chip-line);
  border-radius: 50%; background: transparent; color: var(--stage-ink); cursor: pointer; }
.hd-close:hover { background: var(--stage-chip); }
.hd-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.hd-sec { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.hd-sec h3 { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hd-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.hd-tips li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.5; color: var(--text); }
.hd-tips li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.hd-cards { gap: 8px; }
.hd-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.hd-card > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.hd-card strong { font-size: 13.5px; color: var(--ink); }
.hd-card span { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.hd-card-intro { background: var(--lime-soft); border-color: var(--p-dcebb8); }
.hd-card-ico { flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
  background: var(--card); color: var(--green-ink); border: 1px solid var(--line); }
.hd-card-intro .hd-card-ico { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.hd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink); }
.hd-switch-row { cursor: pointer; }
.hd-switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 34px; height: 20px; margin: 0; border-radius: 999px;
  background: var(--p-d6d6d6); cursor: pointer; transition: background-color 0.2s ease; }
.hd-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--on-fill);
  box-shadow: var(--knob-shadow); transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.hd-switch:checked { background: var(--green); }
.hd-switch:checked::after { transform: translateX(14px); }
.hd-switch:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.hd-note { font-size: 12px; color: var(--muted); }
.hd-faq { border-top: 1px solid var(--line-soft); }
.hd-faq details { border-bottom: 1px solid var(--line-soft); }
.hd-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 2px; list-style: none; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--ink); }
.hd-faq summary::-webkit-details-marker { display: none; }
.hd-faq summary::after { content: "+"; flex: none; font-size: 16px; font-weight: 400; color: var(--muted); }
.hd-faq details[open] summary::after { content: "–"; }
.hd-faq summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.hd-faq p { margin: 0 2px 12px; font-size: 13px; line-height: 1.55; color: var(--text); }
.hd-keys { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hd-keys > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; }
.hd-keys dt { display: flex; align-items: center; gap: 5px; }
.hd-keys dd { margin: 0; font-size: 13px; color: var(--text); }
.hd-keys kbd { min-width: 24px; padding: 1px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--p-f4f4f4);
  font: 700 12px/1.5 var(--font); color: var(--ink); text-align: center; }
.hd-then { font-size: 11.5px; color: var(--muted); }
.hd-form { display: flex; flex-direction: column; gap: 10px; }
.hd-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: 10px; background: var(--p-f4f4f4); }
.hd-seg button { padding: 7px 4px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 12px; font-weight: 600; color: var(--text-2);
  cursor: pointer; }
.hd-seg button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: var(--knob-shadow); }
.hd-seg button:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.hd-form-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hd-form-foot small { font-size: 12px; line-height: 1.45; color: var(--muted); }
.hd-list-head { margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hd-requests { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hd-requests li { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; }
.hd-req-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.hd-req-top b { color: var(--ink); font-variant-numeric: tabular-nums; }
.hd-req-top small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.hd-requests p { margin: 4px 0; font-size: 13px; line-height: 1.45; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.hd-requests li > small { display: block; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.hd-empty { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ---------- the screen tour ---------- */
.tour-layer { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.tour-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px var(--scrim), 0 0 0 2px var(--lime); transition: all 0.25s ease; }
.tour-veil { position: fixed; inset: 0; background: var(--scrim); }
.tour-bubble { position: fixed; width: 300px; max-width: calc(100vw - 24px); display: flex; flex-direction: column; gap: 8px; padding: 14px 16px;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--dialog-shadow); pointer-events: auto;
  animation: hd-pop 260ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.tour-count { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.tour-bubble strong { font-size: 15px; color: var(--ink); }
.tour-bubble p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text); }
.tour-foot { display: flex; align-items: center; gap: 6px; margin-top: 4px; }

@keyframes hd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hd-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hd-pop { from { transform: translateY(6px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hd-backdrop, .hd-drawer, .tour-bubble { animation: none; }
  .tour-hole { transition: none; }
}
@media (max-width: 720px) {
  .side-tools { flex-direction: row; align-items: center; padding-top: 0; border-top: 0; }
  .side-theme { display: none; }                      /* the drawer's Görünüm has it */
  .side-help .nav-kbd { display: none; }
  .hd-drawer { width: 100vw; }
}
@media (hover: none) and (pointer: coarse) {
  .hd-sec-keys { display: none; }                    /* a phone or tablet has no keyboard shortcuts to learn */
}
