/* croqi help center (/yardim): the marketing pages' sheet (home.css: nav, footer, fonts, tokens) with one
   narrow, search-first column on top (layout A of the support design, 2026-10-23). */

.help [hidden] { display: none !important; }

.help-main { max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(64px, 8vw, 96px); }
.help-main h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.05; letter-spacing: -.035em; }
.help-lede { max-width: 52ch; margin: 14px 0 0; color: var(--muted); }
.help-muted { color: var(--quiet); }
.help-label { margin: 0 0 4px; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--quiet); }

/* ---------- home: the question and the search ---------- */
.help-hero { display: grid; gap: 14px; justify-items: center; margin-bottom: clamp(32px, 5vw, 48px); text-align: center; }
.help-search { position: relative; width: 100%; max-width: 560px; margin-top: 10px; }
.help-search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--quiet); pointer-events: none; }
.help-search input {
  width: 100%; height: 56px; padding: 0 16px 0 46px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--card); color: var(--ink); font: 400 17px var(--text); -webkit-appearance: none; appearance: none;
  box-shadow: 0 10px 28px -22px rgba(21, 23, 26, .45);
}
.help-search input::placeholder { color: var(--quiet); }
.help-search input:focus-visible { outline: 2px solid var(--denim); outline-offset: 2px; border-color: var(--denim); }
.help-search input::-webkit-search-cancel-button { cursor: pointer; }

.help-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 clamp(40px, 6vw, 56px); padding: 0; list-style: none; }
.help-cats a {
  display: grid; align-content: space-between; gap: 18px; height: 100%; min-height: 96px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none;
  transition: border-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}
.help-cats a:active { transform: scale(.98); }
.help-cat-title { font: 600 18px/1.2 var(--text); letter-spacing: -.01em; overflow-wrap: anywhere; }
.help-cat-count { font: 400 12px/1 var(--mono); color: var(--quiet); }

/* ---------- article lists (search results, popular, a category) ---------- */
.help-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.help-list li { border-bottom: 1px solid var(--line-strong); }
.help-list a { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 56px; padding: 14px 32px 14px 0; position: relative; text-decoration: none; }
.help-list a::after { content: '→'; position: absolute; right: 4px; top: 50%; translate: 0 -50%; color: var(--quiet); transition: translate 200ms var(--ease-out); }
.help-item-title { font: 500 17px/1.35 var(--text); }
.help-item-meta { font-size: 13px; color: var(--quiet); }
.help-results { margin-bottom: clamp(40px, 6vw, 56px); }
.help-empty { margin: 16px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.help-popular { margin-bottom: clamp(40px, 6vw, 56px); }

/* ---------- category and article ---------- */
.help-crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: -6px 0 8px; font-size: 14px; color: var(--quiet); }
.help-crumbs > span { display: inline-flex; align-items: center; }
.help-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-underline-offset: 3px; }
#categoryView h1 { margin-bottom: 28px; }

.help-prose { margin-top: 24px; font-size: 17px; line-height: 1.65; }
.help-prose > * { max-width: 64ch; }
.help-prose p, .help-prose ol, .help-prose ul { margin: 0 0 16px; }
.help-prose ol, .help-prose ul { padding-left: 22px; }
.help-prose li { margin-bottom: 8px; padding-left: 4px; }
.help-prose a { color: var(--denim); text-underline-offset: 3px; }
.help-prose code { padding: 1px 5px; border-radius: 4px; background: var(--ground-deep); font: 400 .85em var(--mono); }

.help-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 40px; padding: 18px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.help-feedback p { margin: 0; font-weight: 500; }
.help-votes { display: flex; gap: 8px; }
.help-votes button {
  display: grid; place-items: center; width: 48px; height: 44px; border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--card); font-size: 20px; line-height: 1; cursor: pointer; transition: transform 140ms var(--ease-out);
}
.help-votes button:active { transform: scale(.94); }
.help-thanks { color: var(--denim); }
.help-still { margin: 20px 0 0; color: var(--muted); }
.help-still a { display: inline-block; padding: 10px 0; color: var(--denim); font-weight: 500; text-underline-offset: 3px; }

/* ---------- the bottom box: the way to a person ---------- */
.help-contact {
  display: grid; justify-items: center; gap: 10px; margin-top: clamp(40px, 6vw, 56px); padding: 28px 20px;
  border: 1px dashed var(--line-strong); border-radius: 14px; text-align: center;
}
.help-contact p { margin: 0; }
.help-contact > p:first-child { font: 500 18px/1.3 var(--text); }
.help-contact .help-muted { font-size: 14px; }

/* ---------- Bize yazın ---------- */
.help-form { display: grid; gap: 22px; margin-top: 32px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field-label { font: 500 15px/1.3 var(--text); }
.field-label small { font-size: 14px; font-weight: 400; color: var(--quiet); }
.field-hint { margin: 0; font-size: 14px; line-height: 1.45; color: var(--quiet); }
/* 16px and up: Safari on iPhone zooms into any smaller field */
.help-form input:not([type="file"]), .help-form select, .help-form textarea {
  width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--card); color: var(--ink); font: 400 16px/1.4 var(--text); -webkit-appearance: none; appearance: none;
}
.help-form textarea { min-height: 150px; resize: vertical; }
.help-form select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%234a4f57' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.help-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--denim); outline-offset: 1px; border-color: var(--denim); }
.help-form input[readonly] { background: var(--ground-deep); color: var(--muted); }
.help-form [aria-invalid="true"] { border-color: #b3261e; }
.help-form ::placeholder { color: var(--quiet); }

.help-attach {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 46px; padding: 0 18px;
  border: 1px dashed var(--line-strong); border-radius: 9px; background: var(--card); font: 500 15px/1 var(--text); cursor: pointer;
}
#files:focus-visible + .help-attach { outline: 2px solid var(--denim); outline-offset: 3px; }
.help-files { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.help-files:empty { display: none; }
.help-files li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0 0 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
.help-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.help-file-size { flex: none; font: 400 12px var(--mono); color: var(--quiet); }
.help-file-remove { flex: none; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font: 400 22px/1 var(--text); cursor: pointer; }

.help-verify:empty { display: none; }
.help-fallback, .help-error { margin: 0; padding: 14px 16px; border-radius: 9px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.help-fallback { background: var(--denim-soft); color: var(--ink); }
.help-fallback a { color: var(--denim); font-weight: 600; }
.help-error { background: #fbe9e7; color: #8c1d18; }
.help-form .btn { justify-self: start; min-width: 160px; }
.help-form .btn:disabled { opacity: .55; cursor: default; transform: none; }
.help-kvkk { margin: 0; font-size: 14px; color: var(--quiet); }
.help-kvkk a { color: var(--muted); text-underline-offset: 3px; }

.help-sent { display: grid; justify-items: center; gap: 12px; padding: clamp(32px, 6vw, 56px) 8px; text-align: center; outline: none; }
.help-sent h1 { font-size: clamp(28px, 4.4vw, 40px); }
.help-sent p { max-width: 44ch; margin: 0; overflow-wrap: anywhere; }
.help-sent a { display: inline-block; padding: 12px 0; color: var(--denim); font-weight: 500; }
.help-check { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--denim); color: #fff; font: 600 28px/1 var(--text); }

@media (hover: hover) and (pointer: fine) {
  .help-cats a:hover { border-color: var(--ink); }
  .help-list a:hover .help-item-title { text-decoration: underline; text-underline-offset: 3px; }
  .help-list a:hover::after { translate: 3px -50%; color: var(--ink); }
  .help-votes button:hover, .help-attach:hover { border-color: var(--ink); }
}

@media (max-width: 520px) {
  .help-form .btn { justify-self: stretch; }
  .help-cats a { padding: 14px; }
  .help-cat-title { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .help-cats a, .help-votes button, .help-list a::after { transition: none; }
}
