/* ==========================================================================
   Sık sorulan sorular (pages/faq.php) — site.css token'larıyla; gölge/gradyan yok.
   Arama + konu sekmeleri yalnız JS varken görünür; JS yoksa düz soru listesi.
   ========================================================================== */

/* Başlık: sol başlık, sağ arama */
.faq-head__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 28px clamp(32px, 5vw, 88px); align-items: end; }
.faq-search label { display: block; font-size: 13px; font-weight: 600; color: var(--fg-2); margin-bottom: 8px; }
.faq-search__box { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--fg); }
.faq-search__box > svg { width: 20px; height: 20px; flex: none; color: var(--fg-3); }
.faq-search input { flex: 1; min-width: 0; height: 54px; padding-inline: 14px 36px; border: 0; background: none; font: inherit; font-size: 17px; color: var(--fg); }
.faq-search input:focus { outline: none; }
.faq-search__box:focus-within { box-shadow: 0 1px 0 0 var(--fg); }
.faq-search input::placeholder { color: var(--fg-4); }
.faq-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.faq-search__clear { position: absolute; inset-inline-end: 0; display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; color: var(--fg-3); cursor: pointer; }
.faq-search__clear:hover { color: var(--fg); }
.faq-search__clear svg { width: 16px; height: 16px; }
html:not(.js) .faq-search, html:not(.js) .faq-topics, html:not(.js) .faq-count { display: none; }

/* Kısa yanıtlar */
.faq-short { padding-block: clamp(48px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.faq-short__h { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--fg-3); margin-bottom: 24px; }
.faq-short__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.faq-short__list li { display: flex; flex-direction: column; gap: 12px; padding: 26px clamp(20px, 2.4vw, 36px) 4px; border-inline-start: 1px solid var(--line); }
.faq-short__list li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.faq-short__no { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
html[dir="rtl"] .faq-short__no { letter-spacing: 0; }
.faq-short h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.faq-short p { margin: 0; font-family: var(--f-display); font-size: clamp(19px, 1.5vw, 22px); line-height: 1.4; letter-spacing: -.012em; color: var(--fg); text-wrap: pretty; }
.faq-short__go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; }
.faq-short__go:hover { color: var(--fg); text-decoration-color: currentColor; }
.faq-short__go svg { width: 15px; height: 15px; }
html[dir="rtl"] .faq-short__go svg, html[dir="rtl"] .faq-rel__go { transform: scaleX(-1); }

/* Kısa yanıtlarla ana liste arası */
.faq-short + .faq-sec { padding-top: clamp(48px, 5vw, 80px); }

/* Ana düzen: sol yapışkan sütun (konular + iletişim), sağ liste */
.faq2 { display: grid; grid-template-columns: var(--split-col, 340px) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.faq2__aside { position: sticky; top: calc(var(--header-h) + 28px); display: flex; flex-direction: column; gap: 40px; }

.faq-topics__h { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--fg-3); }
.faq-topics__list { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.faq-topic { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; width: 100%; padding: 13px 0 13px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: 15.5px; color: var(--fg-3); text-align: start; cursor: pointer; transition: color .2s; }
html[dir="rtl"] .faq-topic { padding: 13px 16px 13px 0; }
.faq-topic::before { content: ""; position: absolute; inset-block: 10px; inset-inline-start: 0; width: 2px; background: var(--accent); transform: scaleY(0); transition: transform .3s var(--ease); }
.faq-topic:hover, .faq-topic.is-on { color: var(--fg); }
.faq-topic.is-on { font-weight: 600; }
.faq-topic.is-on::before { transform: scaleY(1); }
.faq-topic small { font-size: 13px; font-weight: 500; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.faq-topic:focus-visible { outline: 1.5px solid var(--fg); outline-offset: -2px; }

.faq-help { padding: 26px 24px 22px; background: var(--bg-elev); border: 1px solid var(--line); }
.faq-help h2 { font-size: 21px; line-height: 1.25; font-weight: 500; letter-spacing: -.012em; margin-bottom: 8px; }
.faq-help > p { margin: 0 0 18px; font-size: 14.5px; color: var(--fg-2); line-height: 1.55; }
.faq-help__list { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.faq-help__list li { border-bottom: 1px solid var(--line); }
.faq-help__list a { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; align-items: center; padding: 13px 0; transition: color .2s; }
.faq-help__list svg { width: 19px; height: 19px; color: var(--fg-3); }
.faq-help__list b { display: block; font-size: 14.5px; font-weight: 600; }
.faq-help__list small { display: block; font-size: 13px; color: var(--fg-3); }
html[dir="rtl"] .faq-help__list small[dir="ltr"] { text-align: end; }
.faq-help__list a:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.faq-help__list a:hover svg { color: var(--fg); }
.faq-help__cat { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--fg-2); }
.faq-help__cat svg { width: 17px; height: 17px; }
.faq-help__cat:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }

/* Soru listesi */
.faq-count { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--fg-3); }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-q { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-q summary { list-style: none; display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; gap: 14px; align-items: baseline; padding: 22px 0; cursor: pointer; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary:focus-visible { outline: 1.5px solid var(--fg); outline-offset: 2px; }
.faq-q__no { font-size: 13px; font-weight: 600; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.faq-q__t { font-size: clamp(17px, 1.25vw, 19px); font-weight: 600; line-height: 1.4; letter-spacing: -.008em; transition: color .2s; }
.faq-q summary:hover .faq-q__t { color: var(--fg-2); }
.faq-q[open] .faq-q__no { color: var(--accent); }
.faq-q summary i { position: relative; width: 14px; height: 14px; align-self: center; }
.faq-q summary i::before, .faq-q summary i::after { content: ""; position: absolute; inset: 6.5px 0 auto; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.faq-q summary i::after { transform: rotate(90deg); }
.faq-q[open] summary i::after { transform: rotate(0); }
.faq-q mark { background: none; color: inherit; box-shadow: inset 0 -.42em 0 color-mix(in srgb, var(--accent) 30%, transparent); }

.faq-q__body { padding: 0 0 28px; padding-inline-start: 54px; }
.faq-q__a { max-width: 44em; font-size: 16px; line-height: 1.75; color: var(--fg-2); }
.faq-q__a p:last-child { margin-bottom: 0; }
.faq-rel { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.faq-rel a { display: inline-grid; grid-template-columns: 18px auto 14px; gap: 12px; align-items: center; min-height: 48px; padding: 10px 16px; border: 1px solid var(--line-2); background: var(--bg-elev); font-size: 14.5px; font-weight: 600; transition: border-color .2s, background .2s; }
.faq-rel a:hover { border-color: var(--fg); }
.faq-rel__ic { width: 18px; height: 18px; color: var(--fg-3); }
.faq-rel__go { width: 14px; height: 14px; color: var(--fg-3); transition: transform .25s var(--ease); }
.faq-rel a:hover .faq-rel__go { transform: translateX(3px); }
html[dir="rtl"] .faq-rel a:hover .faq-rel__go { transform: scaleX(-1) translateX(3px); }
.faq-q__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--fg-3); }
.faq-q__link { font-weight: 600; color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.faq-q__link:hover { color: var(--fg); text-decoration-color: currentColor; }

.faq-empty { padding: 40px 0 8px; border-top: 1px solid var(--line-2); }
.faq-empty__t { font-family: var(--f-display); font-size: 22px; color: var(--fg); margin-bottom: 6px; }
.faq-empty p { color: var(--fg-2); }
.faq-empty__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

@media (max-width: 960px) {
  .faq-head__row { grid-template-columns: 1fr; }
  .faq-short__list { grid-template-columns: 1fr; border-top: 0; }
  .faq-short__list li, .faq-short__list li:first-child { padding: 22px 0; border-inline-start: 0; border-top: 1px solid var(--line-2); }
  .faq2 { display: flex; flex-direction: column; gap: 28px; }
  .faq2__aside { display: contents; }
  .faq-topics { order: 0; width: 100%; }
  .faq2__main { order: 1; width: 100%; }
  .faq-help { order: 2; width: 100%; }
  .faq-topics__h { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .faq-topics__list { flex-direction: row; gap: 8px; overflow-x: auto; border: 0; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .faq-topics__list::-webkit-scrollbar { display: none; }
  .faq-topic, html[dir="rtl"] .faq-topic { flex: none; width: auto; height: 42px; align-items: center; padding: 0 14px; border: 1px solid var(--line-2); gap: 8px; }
  .faq-topic::before { display: none; }
  .faq-topic.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
  .faq-topic.is-on small { color: inherit; opacity: .7; }
}
@media (max-width: 640px) {
  .faq-q summary { grid-template-columns: 30px minmax(0, 1fr) 14px; gap: 10px; padding: 18px 0; }
  .faq-q__body { padding-inline-start: 0; }
  .faq-rel a { width: 100%; grid-template-columns: 18px 1fr 14px; }
}
