/*!
 * DGR Web — SSS (v8, pages-b): arama kutusu, "tümünü aç", sayaç, akordeon. Düz zemin, 1px çizgi, keskin ofset gölge; blur yok.
 * <details> üzerine kurulu: JavaScript olmadan da açılıp kapanır (front/faq.js ek olarak arama + ok tuşları).
 */

.faq {
    background: #fff;
    border-top: 1px solid var(--line);
}

.faq__wrap {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.faq__side {
    display: grid;
    gap: 1rem;
    align-content: start;
    justify-items: start;
}

.faq__title {
    margin-top: 0;
}

.faq__intro {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--muted);
}

.faq__search {
    position: relative;
    display: block;
    width: 100%;
}

.faq__search .icon {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    width: 17px;
    height: 17px;
    color: var(--faint);
    transform: translateY(-50%);
    pointer-events: none;
}

.faq__input {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 0 0.9rem 0 2.5rem;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 0.97rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq__input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 3px 3px 0 var(--brand);
}

.faq__tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    width: 100%;
}

.faq__count {
    font-family: var(--mono);
    font-size: var(--fs-label);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--faint);
}

.faq__count b {
    color: var(--ink);
}

.faq__side .qa {
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: 3px 3px 0 var(--brand);
}

.faq__side .qa__list {
    grid-template-columns: 1fr;
}

.faq__list {
    display: grid;
    gap: 0.6rem;
}

.faq__item {
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.faq__item:hover {
    border-color: var(--ink);
}

.faq__item[open] {
    border-color: var(--ink);
    box-shadow: 4px 4px 0 var(--brand);
    transform: translate(-2px, -2px);
}

.faq__item[hidden] {
    display: none;
}

.faq__q {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    list-style: none;
}

.faq__q::-webkit-details-marker {
    display: none;
}

.faq__num {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-600);
}

.faq__text {
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.faq__text mark {
    background: #ffe2d2;
    color: inherit;
}

.faq__icon {
    position: relative;
    width: 26px;
    height: 26px;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    transition: background-color 0.2s, border-color 0.2s;
}

.faq__icon i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 1.75px;
    border-radius: 1px;
    background: var(--ink);
    transform: translate(-50%, -50%);
    transition: transform 0.3s var(--ease), background-color 0.2s;
}

.faq__icon i:last-child {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item[open] .faq__icon {
    border-color: var(--ink);
    background: var(--ink);
}

.faq__item[open] .faq__icon i {
    background: #fff;
}

.faq__item[open] .faq__icon i:last-child {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq__a-inner {
    display: grid;
    gap: 0.7rem;
    padding: 0 1.1rem 1.1rem calc(1.1rem + 0.9rem + 1.4rem);
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--muted);
}

.faq__a-inner p {
    margin: 0;
}

.faq__item[open] .faq__a-inner {
    animation: faq-in 0.4s var(--ease) both;
}

@keyframes faq-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.faq__empty {
    margin: 0.8rem 0 0;
    padding: 1rem;
    border: 1px dashed var(--line-2);
    border-radius: 12px;
    color: var(--muted);
}

.faq__empty[hidden] {
    display: none;
}

.faq__more {
    margin: 1.25rem 0 0;
    font-size: 0.97rem;
    color: var(--muted);
}

.faq__more-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 650;
    color: var(--ink);
    text-decoration: none;
}

.faq__more-link .icon {
    width: 15px;
    height: 15px;
}

@media (min-width: 960px) {
    .faq__wrap {
        grid-template-columns: minmax(17rem, 22rem) 1fr;
    }

    .faq__side {
        position: sticky;
        top: 6rem;
    }
}

@media (max-width: 599px) {
    .faq__a-inner {
        padding-left: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq__item[open] .faq__a-inner {
        animation: none;
    }

    .faq__item,
    .faq__icon i {
        transition: none;
    }
}

html[data-motion="off"] .faq__item[open] .faq__a-inner {
    animation: none;
}
