/* ===========================================================================
   Çözüm Merkezi — /support/help-center
   ---------------------------------------------------------------------------
   Betik bağlantı noktaları korunmuştur: `.js-modal-trigger`
   (data-firstId / data-secondId), `#modal-js-example`, `#category_content`,
   `#question_content`, `#answer_content`, `.modal-dismiss`.
   =========================================================================== */

:root {
    --hlp-panel: #121414;
    --hlp-line: #1f2222;
    --hlp-text: #e9eded;
    --hlp-muted: #9aa1a1;
    --hlp-dim: #767d7d;
    --hlp-accent: #f37a52;
}

.hlp { background-color: #0b0c0c; position: relative; }
.hlp > * { position: relative; z-index: 1; }

/* ---------------------------------------------------------------------------
   Başlık ve arama
   --------------------------------------------------------------------------- */
.hlp-hero { padding-top: 7rem; padding-bottom: 3rem; overflow: hidden; }
.hlp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(780px 340px at 50% -14%, rgba(243, 122, 82, .14), transparent 62%),
        radial-gradient(620px 280px at 12% 4%, rgba(243, 122, 82, .1), transparent 60%);
}
.hlp-hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.hlp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .32rem .8rem;
    border-radius: 999px;
    border: 1px solid rgba(243, 122, 82, .4);
    background: rgba(243, 122, 82, .1);
    color: #ffbe9c;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.hlp-eyebrow svg {
    width: 14px; height: 14px;
    fill: none; stroke: currentColor;
    stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.hlp-title {
    margin: 1rem 0 0;
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}
.hlp-lead {
    max-width: 56ch;
    margin: .85rem 0 0;
    color: var(--hlp-muted) !important;
    font-size: 1rem;
    line-height: 1.75;
}
.hlp-lead strong { color: #fff !important; }

/* Arama alanı */
.hlp-search { position: relative; width: 100%; max-width: 560px; margin-top: 1.75rem; }
.hlp-search-icon {
    position: absolute;
    left: 1.15rem; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    fill: none; stroke: var(--hlp-dim);
    stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
    pointer-events: none;
}
.hlp .hlp-search-input {
    width: 100% !important;
    height: 56px;
    padding: 0 3.2rem 0 3rem !important;
    border-radius: 999px !important;
    border: 1px solid var(--hlp-line) !important;
    background: rgba(255, 255, 255, .04) !important;
    color: var(--hlp-text) !important;
    font-size: .95rem !important;
    box-shadow: none !important;
    transition: border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.hlp .hlp-search-input:focus {
    border-color: rgba(243, 122, 82, .6) !important;
    background: rgba(255, 255, 255, .06) !important;
    box-shadow: 0 0 0 3px rgba(243, 122, 82, .12) !important;
    outline: none;
}
.hlp .hlp-search-input::placeholder { color: #5f6666 !important; }
.hlp-search-clear {
    position: absolute;
    right: .75rem; top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: var(--hlp-muted);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.hlp-search-clear:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.hlp-search-clear[hidden] { display: none; }
.hlp-search-clear svg {
    width: 15px; height: 15px;
    fill: none; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round;
}

/* ---------------------------------------------------------------------------
   Konu kartları
   --------------------------------------------------------------------------- */
.hlp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    align-items: start;
}
.hlp-topic {
    border-radius: 1.15rem;
    border: 1px solid var(--hlp-line);
    background: var(--hlp-panel);
    overflow: hidden;
    transition: border-color .28s ease;
}
.hlp-topic:hover { border-color: rgba(243, 122, 82, .45); }
.hlp-topic[hidden] { display: none; }

.hlp-topic-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--hlp-line);
    background: rgba(255, 255, 255, .018);
}
.hlp-topic-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: .7rem;
    border: 1px solid rgba(243, 122, 82, .3);
    background: rgba(243, 122, 82, .12);
    color: #ffbe9c;
}
.hlp-topic-icon svg {
    width: 18px; height: 18px;
    fill: none; stroke: currentColor;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.hlp-topic-title { flex: 1 1 auto; min-width: 0; margin: 0; color: #fff; font-size: 1rem; font-weight: 800; line-height: 1.35; }
.hlp-topic-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px; height: 24px;
    padding: 0 .45rem;
    border-radius: 999px;
    border: 1px solid var(--hlp-line);
    background: rgba(255, 255, 255, .04);
    color: var(--hlp-dim);
    font-size: .72rem;
    font-weight: 700;
}

/* Soru satırları — eski hâli `check` ikonlu düz bağlantılardı. */
.hlp-list { padding: .4rem; }
.hlp-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    padding: .7rem .8rem;
    border: 0;
    border-radius: .7rem;
    background: transparent;
    color: var(--hlp-muted);
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.hlp-item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.hlp-item:focus-visible { outline: 2px solid var(--hlp-accent); outline-offset: -2px; }
.hlp-item[hidden] { display: none; }
.hlp-item-text { flex: 1 1 auto; min-width: 0; }
.hlp-item-go {
    flex: 0 0 auto;
    width: 15px; height: 15px;
    fill: none; stroke: currentColor;
    stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
}
.hlp-item:hover .hlp-item-go { opacity: .6; transform: translateX(2px); }

/* Sonuç yok */
.hlp-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin: 2rem 0 0;
    padding: 2.5rem 1.5rem;
    border-radius: 1.15rem;
    border: 1px dashed var(--hlp-line);
    color: var(--hlp-muted);
    font-size: .95rem;
}
.hlp-empty[hidden] { display: none; }
.hlp-empty svg {
    width: 18px; height: 18px;
    fill: none; stroke: var(--hlp-dim);
    stroke-width: 1.9; stroke-linecap: round;
}

/* ---------------------------------------------------------------------------
   Kapanış
   --------------------------------------------------------------------------- */
.hlp-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding: 1.75rem 2rem;
    border-radius: 1.35rem;
    border: 1px solid var(--hlp-line);
    background:
        radial-gradient(120% 130% at 12% 0%, rgba(243, 122, 82, .12), transparent 62%),
        var(--hlp-panel);
}
.hlp-cta-title { margin: 0; color: #fff; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.hlp-cta-sub { margin: .3rem 0 0; color: var(--hlp-muted); font-size: .9rem; line-height: 1.65; }
.hlp .hlp-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    height: 48px;
    padding: 0 1.5rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(243, 122, 82, .6) !important;
    background: rgba(243, 122, 82, .2) !important;
    color: #fff !important;
    font-size: .92rem !important;
    font-weight: 700 !important;
    line-height: 1;
    white-space: nowrap;
    transition: border-color .25s ease, background .25s ease;
}
.hlp .hlp-btn:hover { border-color: rgba(243, 122, 82, .95) !important; background: rgba(243, 122, 82, .32) !important; }
.hlp .hlp-btn svg {
    width: 17px; height: 17px;
    fill: none; stroke: currentColor;
    stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------------------------------------------------------------------------
   Cevap penceresi
   --------------------------------------------------------------------------- */
.hlp-modal .modal-background {
    background: rgba(3, 5, 5, .78);
    -webkit-backdrop-filter: blur(10px) saturate(115%);
    backdrop-filter: blur(10px) saturate(115%);
    cursor: pointer;
}
.hlp-modal .modal-content {
    width: calc(100% - 2rem);
    max-width: 680px;
    margin: 0 auto;
    overflow: visible;
}
.hlp-modal-inner {
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(16, 19, 19, .94);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95);
}
.hlp-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--hlp-line);
    background: rgba(255, 255, 255, .02);
}
.hlp-modal-cat {
    color: #ffbe9c;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hlp-modal-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    cursor: pointer;
    transition: border-color .22s ease, background .22s ease;
}
.hlp-modal-close:hover { border-color: rgba(255, 96, 72, .7); background: rgba(255, 96, 72, .18); }
.hlp-modal-close svg {
    width: 16px; height: 16px;
    fill: none; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round;
}

.hlp-modal-body { padding: 1.5rem 1.5rem 1.35rem; max-height: 62vh; overflow-y: auto; }
.hlp-modal-q { margin: 0 0 .85rem; color: #fff; font-size: 1.15rem; font-weight: 800; line-height: 1.45; letter-spacing: -.01em; }
.hlp-modal-a { color: var(--hlp-muted); font-size: .95rem; line-height: 1.85; }
.hlp-modal-a p { margin: 0 0 .9rem; color: var(--hlp-muted) !important; }
.hlp-modal-a p:last-child { margin-bottom: 0; }
.hlp-modal-a strong, .hlp-modal-a b { color: #fff !important; }
.hlp-modal-a a { color: var(--hlp-accent) !important; font-weight: 600; }
.hlp-modal-a ul, .hlp-modal-a ol { margin: .4rem 0 .9rem 1.25rem; list-style: disc; }
.hlp-modal-a ol { list-style: decimal; }
.hlp-modal-a li { margin-bottom: .35rem; }
.hlp-modal-a img { max-width: 100%; height: auto; border-radius: .6rem; }

.hlp-modal-foot {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    padding: .95rem 1.5rem;
    border-top: 1px solid var(--hlp-line);
    background: rgba(255, 255, 255, .018);
    color: var(--hlp-dim);
    font-size: .82rem;
}
.hlp-modal-foot a { color: var(--hlp-accent) !important; font-weight: 700; }

/* ---------------------------------------------------------------------------
   Küçük ekran
   --------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
    /* Mobilde sabit başlık iki katmanlı: 67px + 64px = 131px. */
    .hlp-hero { padding-top: 10rem; padding-bottom: 2.25rem; }
    .hlp-search { margin-top: 1.35rem; }
    .hlp .hlp-search-input { height: 50px; font-size: .9rem !important; }
    .hlp-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .hlp-cta { padding: 1.35rem 1.15rem; margin-top: 1.75rem; }
    .hlp .hlp-btn { width: 100%; }
    .hlp-modal-body { padding: 1.15rem; max-height: 68vh; }
    .hlp-modal-q { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) and (prefers-reduced-motion: no-preference) /* ETKİSİZ: hareket azaltma yok sayılıyor */ {
    .hlp-topic, .hlp-item, .hlp-item-go, .hlp .hlp-btn, .hlp .hlp-search-input { transition: none; }
}
