/* =====================================================================
   SSS (/sss) + Site içi arama (/arama) — v2 (Apple)
   Önek .fs-. Yalnız site.css tokenları. Akordeon site.css .accordion üzerine kurulu.
   ===================================================================== */

/* ── Sade metin sekmeleri (konu / sonuç türü) ─────────────────── */
.fs-seg { margin: 0 0 32px; }
.fs-seg__track { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 2px; }
.fs-seg--left .fs-seg__track { justify-content: flex-start; }
.fs-seg__item {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 980px;
    font-size: 14px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink-2); white-space: nowrap;
    transition: background-color .2s, color .2s;
}
.fs-seg--left .fs-seg__item:first-child { margin-left: -14px; }
.fs-seg__item:hover { color: var(--ink); text-decoration: none; background: rgba(0, 0, 0, .04); }
.fs-seg__item.is-active, .fs-seg__item.is-active:hover { background: var(--ink); color: #fff; }
.fs-seg__item span { color: var(--muted-2); font-size: 12px; }
.fs-seg__item.is-active span { color: rgba(255, 255, 255, .64); }

/* ── SSS: arama kutusu (giriş altında) ────────────────────────── */
.fs-searchbox {
    position: relative; display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 0 auto;
    height: 52px; padding: 0 14px 0 18px; background: var(--bg-alt); border-radius: 12px;
    transition: box-shadow .2s, background-color .2s;
}
.fs-searchbox:focus-within { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 0 0 4px rgba(0, 113, 227, .15); }
.fs-searchbox > .bi-search { font-size: 17px; color: var(--muted); }
.fs-searchbox__input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink);
    font-size: 17px; -webkit-appearance: none; appearance: none;
}
.fs-searchbox__input::placeholder { color: var(--muted-2); }
.fs-searchbox__input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.fs-searchbox__clear, .fs-find__clear { border: 0; background: none; color: var(--muted-2); padding: 4px; line-height: 1; display: grid; place-items: center; }
.fs-searchbox__clear:hover, .fs-find__clear:hover { color: var(--muted); }
.fs-searchbox__clear[hidden], .fs-find__clear[hidden] { display: none; }
.page-intro__visual .fs-searchbox { margin-top: -8px; }

/* ── SSS: kategoriler (sol başlık, sağ akordeon) ──────────────── */
.fs-faq { padding-top: clamp(24px, 3vw, 40px); }
.fs-status { text-align: center; font-size: 14px; color: var(--muted); margin: -12px 0 24px; }
.fs-cat {
    display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 16px 56px;
    padding: 44px 0 48px; border-top: 1px solid var(--line);
}
.fs-cat[hidden] { display: none; }
.fs-cat__title { font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: .009em; }
.fs-cat__text { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 240px; }
.fs-cat .accordion, .fs-subs { border-top: 0; }
.fs-cat__list > details:first-child > summary { padding-top: 0; }
.fs-cat__list > details:last-child, .fs-subs > .fs-sub:last-child { border-bottom: 0; }
.fs-cat__list > details:first-child > summary::after { top: calc(50% - 11px); }
.fs-q[hidden], .fs-sub[hidden] { display: none; }
.fs-q.is-flash > summary { animation: fsFlash 1.6s var(--ease); }
@keyframes fsFlash { 0%, 40% { color: var(--link); } 100% { color: inherit; } }
.fs-q summary mark, .fs-sub summary mark { background: none; color: inherit; box-shadow: inset 0 -2px 0 rgba(0, 102, 204, .45); }

/* Yanıt metni (panelden gelen zengin metin) */
.fs-answer { font-size: 17px; line-height: 1.53; }
.fs-answer > * + * { margin-top: 10px; }
.fs-answer ul, .fs-answer ol { padding-left: 1.2em; }
.fs-answer li + li { margin-top: 4px; }
.fs-answer a { text-decoration: underline; text-underline-offset: 2px; }
.fs-answer img { border-radius: var(--r-sm); }
.fs-answer .fs-permalink { display: inline-block; margin-top: 14px; font-size: 12px; color: var(--muted); text-decoration: none; }
.fs-answer .fs-permalink:hover { color: var(--link); text-decoration: underline; }

/* Ürün / hizmet grupları: açılır satırlar, içinde sorular */
.fs-sub { border-bottom: 1px solid var(--line); }
.fs-sub:first-child > summary { padding-top: 0; }
.fs-sub > summary {
    list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    padding: 18px 36px 18px 0; position: relative;
}
.fs-sub > summary::-webkit-details-marker { display: none; }
.fs-sub > summary::after {
    content: ""; position: absolute; right: 8px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
    border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .25s var(--ease), margin-top .25s var(--ease);
}
.fs-sub:first-child > summary::after { margin-top: -14px; }
.fs-sub[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.fs-sub:first-child[open] > summary::after { margin-top: -10px; }
.fs-sub__name { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: .012em; }
.fs-sub__count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.fs-sub__body { padding: 0 0 24px; }
.fs-sub__body .accordion { border-top: 1px solid var(--line-soft); }
.fs-sub__body .accordion details { border-bottom-color: var(--line-soft); }
.fs-sub__body .accordion summary { font-size: 17px; padding-top: 16px; padding-bottom: 16px; }
.fs-sub__body .accordion summary::after { font-size: 22px; }
.fs-sub__more { margin-top: 18px; font-size: 14px; }

.fs-empty { text-align: center; padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); }
.fs-empty[hidden] { display: none; }
.fs-empty__title { font-size: 21px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }

/* ── Arama sayfası ─────────────────────────────────────────────── */
.fs-find { padding: clamp(48px, 6vw, 88px) 0 8px; }
.fs-find__title { margin-bottom: 28px; }
.fs-find__form {
    display: flex; align-items: center; gap: 14px; padding: 6px 0 14px;
    border-bottom: 1px solid var(--line); transition: border-color .2s;
}
.fs-find__form:focus-within { border-bottom-color: var(--ink-2); }
.fs-find__form > .bi-search { font-size: 26px; color: var(--muted); flex: none; }
.fs-find__input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0; color: var(--ink);
    font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 600; letter-spacing: .004em;
    -webkit-appearance: none; appearance: none;
}
.fs-find__input::placeholder { color: var(--muted-2); font-weight: 600; }
.fs-find__input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.fs-find__clear { font-size: 20px; }
.fs-suggest { margin-top: 20px; font-size: 17px; color: var(--ink-2); }

.fs-results { padding: 32px 0 clamp(72px, 9vw, 140px); }
.fs-results .fs-seg { margin-bottom: 12px; }
.fs-count { font-size: 14px; color: var(--muted); }
.fs-group { margin-top: 44px; }
.fs-group__title { display: flex; align-items: baseline; gap: 8px; font-size: 21px; line-height: 1.19; font-weight: 600; letter-spacing: .011em; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fs-group__title span { font-size: 14px; font-weight: 400; color: var(--muted); }
.fs-hits { list-style: none; }
.fs-hit { padding: 18px 0 20px; border-bottom: 1px solid var(--line-soft); }
.fs-hit__title { font-size: 19px; line-height: 1.32; font-weight: 600; letter-spacing: .012em; color: var(--link); }
.fs-hit__text { margin-top: 6px; font-size: 15px; line-height: 1.47; color: var(--muted); }
.fs-hit mark { background: none; color: var(--ink); font-weight: 600; }
.fs-hit__title mark { color: inherit; }

.fs-none { margin-top: 8px; }
.fs-none__title { font-size: 28px; line-height: 1.14; font-weight: 600; letter-spacing: .007em; margin-bottom: 10px; }
.fs-none p { color: var(--muted); max-width: 600px; }

.fs-quick { margin-top: 56px; }
.fs-results .fs-quick:first-child { margin-top: 24px; }
.fs-quick__label { font-size: 12px; line-height: 1.33; font-weight: 400; letter-spacing: -.01em; color: var(--muted); margin-bottom: 14px; }
.fs-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.fs-pills a {
    display: inline-flex; align-items: center; min-height: 36px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 980px;
    font-size: 14px; color: var(--ink);
}
.fs-pills a:hover { border-color: var(--ink-2); text-decoration: none; }
.fs-dir { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.fs-dir ul { list-style: none; display: grid; gap: 10px; }
.fs-dir a { font-size: 17px; color: var(--ink); }
.fs-dir a:hover { color: var(--link); }

/* ── Duyarlı ───────────────────────────────────────────────────── */
@media (max-width: 834px) {
    .fs-cat { grid-template-columns: 1fr; gap: 20px; padding: 36px 0 40px; }
    .fs-cat__text { max-width: none; }
}
@media (max-width: 734px) {
    .fs-seg { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
    .fs-seg__track {
        flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
        padding: 0 var(--gutter); -webkit-overflow-scrolling: touch;
    }
    .fs-seg__track::-webkit-scrollbar { display: none; }
    .fs-seg--left .fs-seg__item:first-child { margin-left: 0; }
    .fs-searchbox { height: 48px; }
    .fs-find__form > .bi-search { font-size: 22px; }
    .fs-sub__name { font-size: 17px; }
    .fs-dir { grid-template-columns: 1fr; gap: 28px; }
    .fs-hit__title { font-size: 17px; }
}
