/* ============================================================================
   YARDIM MERKEZİ (help) — hub rehber kartı + makale sayfası + katlanabilir ray.
   Plan: arch/plans/20260817-help-iki-dil-cg001.json
   YALNIZ /help ve /help/* sayfalarında yüklenir (main.ejs → locals.pageCss).
   Tailwind'e yeni sınıf eklemez; kabuk (chrome.css) ve style.css'in üstüne biner.
   Renkler tailwind.config.js paletinden birebir: ink #0B1B2B, hairline #DDE3EA,
   secondary-600 #475569, ai #4F46D6, verified #0F7A5A, humanink #8A5A00.
   ========================================================================== */

/* ---- Makale düzeni: sol ray + içerik ---- */
.help-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) {
  .help-layout { grid-template-columns: 232px minmax(0, 1fr); gap: 3rem; }
  .help-layout[data-rail="closed"] { grid-template-columns: 46px minmax(0, 1fr); }
}

/* ---- Sol ray ---- */
.help-rail-wrap { min-width: 0; }
.help-rail {
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 1024px) {
  .help-rail {
    position: sticky; top: 104px;
    border-bottom: 0; border-right: 1px solid #E2E8F0;
    padding: 0 1.25rem 0 0; margin-bottom: 0;
  }
  .help-layout[data-rail="closed"] .help-rail { border-right: 0; padding-right: 0; }
}

.help-rail__top { display: none; }
@media (min-width: 1024px) {
  .help-rail__top { display: flex; align-items: center; gap: .5rem; margin-bottom: .875rem; }
  .help-rail__top > span {
    font-size: .6875rem; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: #64748B;
  }
  .help-layout[data-rail="closed"] .help-rail__top > span,
  .help-layout[data-rail="closed"] .help-rail__body { display: none; }
}

.help-rail__collapse {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  border: 1px solid #E2E8F0; border-radius: 8px; background: #fff;
  color: #0B1B2B; font-size: .8125rem; line-height: 1; cursor: pointer;
}
.help-rail__collapse:hover { border-color: #CBD5E1; }
.help-rail__collapse:focus-visible { outline: 2px solid #0B1B2B; outline-offset: 2px; }

/* Mobil: rayın tamamı tek düğmenin arkasında */
.help-rail__mobile {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid #E2E8F0; border-radius: 10px;
  padding: .625rem .875rem; font-size: .9375rem; font-weight: 600; color: #0B1B2B;
  margin-bottom: .75rem;
}
.help-rail__mobile::after { content: "\25BE"; float: right; color: #64748B; }
.help-rail__mobile[aria-expanded="true"]::after { content: "\25B4"; }
.help-rail__mobile:focus-visible { outline: 2px solid #0B1B2B; outline-offset: 2px; }
@media (min-width: 1024px) { .help-rail__mobile { display: none; } }

.help-rail__group + .help-rail__group { margin-top: .125rem; }
.help-rail__head {
  display: flex; align-items: center; gap: .5rem; width: 100%; cursor: pointer;
  background: none; border: 0; border-radius: 8px; padding: .4375rem .5rem;
  font-size: .875rem; font-weight: 600; color: #0B1B2B; text-align: left;
}
.help-rail__head::before {
  content: "\25B8"; font-size: .625rem; color: #94A3B8; transition: transform .15s ease;
}
.help-rail__head[aria-expanded="true"]::before { transform: rotate(90deg); }
.help-rail__head:hover { background: #F1F5F9; }
.help-rail__head:focus-visible { outline: 2px solid #0B1B2B; outline-offset: 2px; }
.help-rail__count {
  margin-left: auto; font-size: .75rem; font-weight: 500; color: #94A3B8;
  font-variant-numeric: tabular-nums;
}
.help-rail__list { padding: .125rem 0 .375rem 1.125rem; display: grid; gap: 1px; }
/* display:grid tarayıcının [hidden]{display:none} kuralını EZER — kapalı grup açık
   kalırdı. Kapalı durumu burada açıkça yazıyoruz (aynı sorun .help-rail için de var). */
.help-rail__list[hidden], .help-rail[hidden] { display: none; }
.help-rail__list a {
  display: block; padding: .3125rem .5rem; border-radius: 6px;
  font-size: .875rem; color: #475569; text-decoration: none;
}
.help-rail__list a:hover { background: #F8FAFC; color: #0B1B2B; }
.help-rail__list a.is-current { background: #F1F5F9; color: #0B1B2B; font-weight: 600; }
.help-rail__list a:focus-visible { outline: 2px solid #0B1B2B; outline-offset: 2px; }

/* ---- Hub: rehber kartı ---- */
.help-guide-card {
  display: flex; align-items: stretch; overflow: hidden; text-decoration: none;
  background: #fff; border: 1px solid #E2E8F0; border-radius: 14px;
  transition: border-color .15s ease;
}
.help-guide-card:hover { border-color: #C9C2B8; }
.help-guide-card:focus-visible { outline: 2px solid #0B1B2B; outline-offset: 2px; }
.help-guide-card__thumb {
  flex: none; width: 132px; display: grid; place-items: center;
  background: linear-gradient(160deg, #E8EEF3 0%, #D3DDE6 100%);
  border-right: 1px solid #E2E8F0; color: #0B1B2B;
}
@media (max-width: 640px) { .help-guide-card__thumb { width: 84px; } }
.help-guide-card__body { display: block; padding: 1.125rem 1.25rem; }
.help-guide-card__badge {
  display: inline-block; font-size: .75rem; font-weight: 600; color: #0B1B2B;
  background: #F1F5F9; border-radius: 6px; padding: .125rem .5rem; margin-bottom: .5rem;
}
.help-guide-card__title {
  display: block; font-family: Poppins, system-ui, sans-serif;
  font-size: 1.0625rem; font-weight: 600; color: #0B1B2B; margin-bottom: .25rem;
}
.help-guide-card__desc { display: block; font-size: .9375rem; color: #475569; }
.help-guide-card__cta {
  display: inline-block; margin-top: .625rem; font-size: .875rem; font-weight: 600; color: #0B1B2B;
}

/* ---- Makale: video ---- */
.help-video {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid #DDE3EA; border-radius: 14px; background: #EEF2F6;
}
.help-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Makale: dil şeridi ---- */
.help-langbar {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
  border: 1px dashed #DDE3EA; border-radius: 10px; padding: .625rem .875rem;
  font-size: .9375rem; color: #64748B;
}
.help-langbar a { color: #0B1B2B; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Makale: özet kutusu ---- */
.help-summary {
  background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 1rem 1.25rem;
}
.help-summary > strong {
  display: block; font-family: Poppins, system-ui, sans-serif;
  font-size: 1rem; color: #0B1B2B; margin-bottom: .375rem;
}
.help-summary ul { margin: 0; padding-left: 1.125rem; color: #475569; }
.help-summary li { margin-bottom: .25rem; }

/* ---- Makale: adım kartları ---- */
.help-steps { counter-reset: helpstep; display: grid; gap: .625rem; }
.help-step {
  counter-increment: helpstep;
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 1rem; align-items: start;
  background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 1rem 1.125rem;
}
.help-step__n {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: #111827; color: #fff; font-family: Poppins, system-ui, sans-serif;
  font-size: .875rem; font-weight: 700;
}
.help-step__n::before { content: counter(helpstep); }
.help-step h3 {
  font-family: Poppins, system-ui, sans-serif; font-size: 1.0625rem; font-weight: 600;
  color: #0B1B2B; margin: 0 0 .1875rem;
}
.help-step p { margin: 0; color: #475569; }

/* Durum etiketi: renk TEK BAŞINA gösterge değil — her etikette metin de var. */
.help-chip {
  display: inline-block; margin-top: .5rem; border-radius: 999px;
  padding: .125rem .625rem; font-size: .8125rem; font-weight: 600;
}
.help-chip--ai { color: #4F46D6; background: #EEEDFB; }
.help-chip--human { color: #8A5A00; background: #FBF2E0; }
.help-chip--verified { color: #0F7A5A; background: #E6F3EE; }

/* ---- Makale: ne yapar / neyi garanti etmez ---- */
.help-limits { display: grid; gap: .75rem; }
@media (min-width: 640px) { .help-limits { grid-template-columns: 1fr 1fr; } }
.help-limits > div { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 1rem 1.25rem; }
.help-limits h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .5rem; }
.help-limits ul { margin: 0; padding-left: 1.125rem; color: #475569; }
.help-limits li { margin-bottom: .3125rem; }
.help-limits .help-limits__does h3 { color: #0F7A5A; }
.help-limits .help-limits__doesnt h3 { color: #8A5A00; }

/* ---- Makale: kapanış CTA'sı ---- */
.help-cta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: #F7F5F0; border: 1px solid #DDE3EA; border-radius: 14px; padding: 1.25rem 1.5rem;
}
.help-cta h2 { font-size: 1.125rem; font-weight: 600; color: #0B1B2B; margin: 0 0 .1875rem; }
.help-cta p { margin: 0; font-size: .9375rem; color: #64748B; }
.help-cta .help-cta__btn { margin-left: auto; }
@media (max-width: 640px) { .help-cta .help-cta__btn { margin-left: 0; } }
