/* exripe Destek — docs/dev shell (docs/theme.html ile aynı dil) */
:root {
  --help-primary: #1E293B;
  --help-deep: #1E293B;
  --help-soft: #CBD5E1;
  --help-dark: #100029;
  --help-dark-hover: #1a0a3d;
  --help-ink: #0f172a;
  --help-muted: #64748b;
  --help-border: #e2e8f0;
  --help-bg: #f8fafc;
  --help-card: #ffffff;
  --help-radius: 12px;
  --help-font: Inter, ui-sans-serif, system-ui, sans-serif;
  --help-mono: "Fira Code", ui-monospace, monospace;
  --help-max: 1400px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--help-font);
  color: #1e293b;
  background: var(--help-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--help-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--help-mono);
  font-size: 12px;
  background: #f1f5f9;
  color: var(--help-deep);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* —— Top bar —— */
.help-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--help-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.help-topbar-inner {
  max-width: var(--help-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.help-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.help-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.help-topbar-brand img {
  height: 1.75rem;
  width: auto;
  display: block;
}

.help-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.5rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.help-topbar-crumb {
  display: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
}

.help-topbar-sep {
  display: none;
  color: rgba(255, 255, 255, 0.25);
}

@media (min-width: 640px) {
  .help-topbar-crumb,
  .help-topbar-sep {
    display: inline;
  }
}

.help-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.help-btn-ghost {
  display: none;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.help-btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
}

.help-btn-solid {
  display: inline-flex;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  background: #fff;
  color: var(--help-dark);
  text-decoration: none;
  transition: background 0.15s ease;
}

.help-btn-solid:hover {
  background: #e2e8f0;
  text-decoration: none;
}

@media (min-width: 640px) {
  .help-btn-ghost {
    display: inline-flex;
  }
}

/* —— Layout —— */
.help-wrap {
  max-width: var(--help-max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3.5rem;
}

.help-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .help-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 1280px) {
  .help-layout {
    grid-template-columns: 240px minmax(0, 1fr) 200px;
  }
}

/* —— Left nav (light, docs-style) —— */
.help-nav-col {
  display: none;
}

@media (min-width: 1024px) {
  .help-nav-col {
    display: block;
  }
}

.help-nav-sticky {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.help-nav-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 0.5rem;
  padding: 0 0.5rem;
}

.help-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.help-nav a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
}

.help-nav a:hover {
  background: rgba(16, 0, 41, 0.05);
  color: var(--help-dark);
  text-decoration: none;
}

.help-nav a.is-active {
  background: var(--help-dark);
  color: #fff;
  border-color: var(--help-dark);
}

.help-nav a.is-active:hover {
  background: var(--help-dark-hover);
  color: #fff;
}

.help-nav .sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0.15rem 0 0.35rem 0.35rem;
  padding-left: 0.5rem;
  border-left: 2px solid #e2e8f0;
}

.help-nav .sub a {
  font-weight: 400;
  font-size: 0.8125rem;
  color: #64748b;
}

/* —— Right TOC —— */
.help-toc {
  display: none;
}

@media (min-width: 1280px) {
  .help-toc {
    display: block;
  }
}

.help-toc-sticky {
  position: sticky;
  top: 5rem;
}

.help-toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 0.75rem;
}

.help-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.help-toc a {
  display: block;
  font-size: 0.875rem;
  color: #64748b;
  text-decoration: none;
}

.help-toc a:hover,
.help-toc a.is-active {
  color: var(--help-dark);
}

/* —— Main content —— */
.help-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.help-card {
  background: var(--help-card);
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  padding: 1.5rem 1.75rem;
}

@media (min-width: 640px) {
  .help-card {
    padding: 2rem;
  }
}

.help-card > :first-child {
  margin-top: 0;
}

.help-card > :last-child {
  margin-bottom: 0;
}

.help-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.help-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--help-primary);
  flex-shrink: 0;
}

.help-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--help-dark);
}

.help-card h1 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
}

.help-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  scroll-margin-top: 5.5rem;
}

.help-card h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
}

.help-lead,
.help-card .lead,
.help-card > p {
  color: #475569;
  margin: 0 0 1rem;
}

.help-card ul,
.help-card ol {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: #475569;
}

.help-card li {
  margin: 0.4rem 0;
}

.help-card li + li {
  margin-top: 0.5rem;
}

.help-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.875rem;
  color: var(--help-muted);
  margin: 0 0 0.75rem;
}

.help-breadcrumb a {
  color: var(--help-muted);
}

.help-breadcrumb span {
  opacity: 0.5;
}

/* —— Callouts —— */
.help-callout {
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #1e293b;
}

.help-callout strong {
  color: #0f172a;
}

.help-callout-sky {
  border-color: #bae6fd;
  background: #f0f9ff;
  color: #0c4a6e;
}

.help-callout-amber {
  border-color: #fde68a;
  background: #fffbeb;
  color: #78350f;
}

/* —— Index grid —— */
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.help-tile {
  background: var(--help-card);
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.help-tile:hover {
  border-color: var(--help-soft);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  text-decoration: none;
}

.help-tile .tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e293b;
  background: #e2e8f0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.help-tile h2,
.help-tile h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.help-tile p {
  margin: 0;
  color: var(--help-muted);
  font-size: 0.9rem;
}

.help-badge-wip {
  color: #92400e !important;
  background: #fef3c7 !important;
}

.help-article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.help-article-list li {
  border-bottom: 1px solid var(--help-border);
  margin: 0;
}

.help-article-list a {
  display: block;
  padding: 1rem 0.15rem;
  color: inherit;
  text-decoration: none;
}

.help-article-list a:hover {
  color: var(--help-dark);
}

.help-article-list strong {
  display: block;
  font-size: 1rem;
}

.help-article-list span {
  color: var(--help-muted);
  font-size: 0.9rem;
}

.help-search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  position: relative;
}

.help-search input {
  flex: 1;
  height: 50px;
  border: 1px solid var(--help-border);
  border-radius: 10px;
  padding: 0 1rem;
  font: inherit;
  background: #fff;
  color: #0f172a;
}

.help-search input:focus {
  outline: none;
  border-color: #1e293b;
  box-shadow: 0 0 0 4px rgba(30, 41, 59, 0.12);
}

.help-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  background: #fff;
  border: 1px solid var(--help-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  max-height: 320px;
  overflow-y: auto;
  display: none;
}

.help-search-results.is-open {
  display: block;
}

.help-search-results a {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
}

.help-search-results a:last-child {
  border-bottom: 0;
}

.help-search-results a:hover,
.help-search-results a.is-active {
  background: #f8fafc;
}

.help-search-results strong {
  display: block;
  font-size: 0.9rem;
  color: #0f172a;
}

.help-search-results span {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.help-search-empty {
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

.help-article-block + .help-article-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--help-border);
}

.help-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 0.35rem;
}

.help-kicker code {
  font-size: 11px;
}

.help-footer-note {
  margin: 0;
  padding-top: 0.25rem;
  color: var(--help-muted);
  font-size: 0.875rem;
}

.help-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.help-steps > li {
  position: relative;
  padding: 1rem 1rem 1rem 3.25rem;
  background: #f8fafc;
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  margin-bottom: 0.75rem;
}

.help-steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--help-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* —— Annotated screenshot + zoom —— */
.help-shot {
  margin: 1.25rem 0 0;
  background: #fff;
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  overflow: hidden;
}

/* Düz figür (annotate olmayan) */
.help-shot > img {
  display: block;
  width: 100%;
  height: auto;
}

.help-shot figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--help-muted);
  border-top: 1px solid var(--help-border);
  background: #fcfcfd;
}

.help-shot-annotate {
  position: relative;
  overflow: hidden;
}

.help-shot-annotate .help-shot-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--help-radius) var(--help-radius) 0 0;
  background: #f1f5f9;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.help-shot-annotate .help-shot-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  backface-visibility: hidden;
}

/* Annotate içinde img asla doğal yüksekliğe açılmasın (dikey screenshot kırılması) */
.help-shot-annotate .help-shot-stage img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: top left;
  display: block;
  user-select: none;
  pointer-events: none;
}

.help-hotspot {
  position: absolute;
  z-index: 2;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--help-primary);
  color: #fff;
  font: 700 0.8rem/1 var(--help-font);
  box-shadow: 0 0 0 2px rgba(30, 41, 59, 0.25), 0 6px 16px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  transition: background 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
}

.help-hotspot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(30, 41, 59, 0.35);
  animation: help-hotspot-pulse 2s ease-out infinite;
  pointer-events: none;
}

.help-hotspot:hover,
.help-hotspot.is-active,
.help-hotspot:focus-visible {
  background: var(--help-deep);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.28), 0 8px 20px rgba(15, 23, 42, 0.25);
}

.help-hotspot:hover::after,
.help-hotspot.is-active::after {
  animation: none;
  border-color: rgba(30, 41, 59, 0.5);
}

.help-shot-annotate.is-zoomed .help-hotspot:not(.is-active) {
  opacity: 0.35;
}

@keyframes help-hotspot-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.45);
    opacity: 0;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.help-shot-legend {
  list-style: none;
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  display: grid;
  gap: 0.55rem;
  border-top: 1px solid var(--help-border);
  background: #fcfcfd;
}

.help-shot-legend li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.65rem;
  align-items: start;
  margin: 0;
  font-size: 0.9rem;
  color: var(--help-ink);
  cursor: pointer;
  border-radius: 8px;
  padding: 0.35rem 0.4rem;
  transition: background 0.15s ease;
}

.help-shot-legend li:hover,
.help-shot-legend li.is-active {
  background: #f1f5f9;
}

.help-shot-legend .n {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--help-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
}

.help-shot-legend li.is-active .n {
  background: var(--help-deep);
}

.help-shot-legend strong {
  display: block;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.help-shot-legend span {
  display: block;
  color: var(--help-muted);
  font-size: 0.82rem;
  margin-top: 0.1rem;
}

.help-shot-zoom-hint {
  margin: 0;
  padding: 0 1rem 0.85rem;
  font-size: 0.8rem;
  color: var(--help-muted);
  background: #fcfcfd;
}

.help-video {
  margin: 1.25rem 0 0;
  background: #0f172a;
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  overflow: hidden;
}

.help-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.help-video figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--help-muted);
  border-top: 1px solid var(--help-border);
  background: #fcfcfd;
}

/* Mobile nav toggle */
.help-mobile-nav {
  display: block;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .help-mobile-nav {
    display: none;
  }
}

.help-mobile-nav details {
  background: #fff;
  border: 1px solid var(--help-border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

.help-mobile-nav summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--help-dark);
}

.help-mobile-nav .help-nav {
  margin-top: 0.75rem;
}
