/* ============================================================
   imzza — Bilgi Bankası (knowledge base)
   style.css içindeki tasarım token'larını (--grad, --ink, --line ...)
   kullanır; onun ARDINDAN yüklenmelidir.
   ============================================================ */

/* ---------- Sayfa başlığı / hero ---------- */
.kb-hero {
    position: relative;
    padding: 88px 0 64px;
    background: var(--grad-soft);
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
}
.kb-hero__inner { position: relative; z-index: 2; max-width: 820px; }
.kb-hero h1 {
    font-weight: 800;
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: -1.6px;
    color: var(--ink);
    margin: 0 0 20px;
}
.kb-hero h1 em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.kb-hero__lead { font-size: 1.12rem; line-height: 1.7; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Breadcrumb ---------- */
.kb-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--ink-mute);
    margin-bottom: 22px;
}
.kb-crumb a { color: var(--ink-soft); transition: color 0.25s var(--ease); }
.kb-crumb a:hover { color: var(--violet); }
.kb-crumb span[aria-current] { color: var(--ink); font-weight: 600; }
.kb-crumb .sep { opacity: 0.5; }
/* Hizmet sayfalarının ortalanmış başlık bloğunda breadcrumb da ortalansın */
.seo-header .kb-crumb { justify-content: center; }

/* ---------- Meta satırı (okuma süresi / güncelleme) ---------- */
.kb-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 26px;
    font-size: 0.82rem;
    color: var(--ink-mute);
}
.kb-meta__pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 15px;
    font-weight: 600;
    color: var(--ink-soft);
}
.kb-meta__pill svg { flex: none; }

/* ---------- Hub: kategori + kart ızgarası ---------- */
/* .container'ın yatay boşluğunu koruyarak dikey boşluk ekler
   (satır içi "padding: 72px 0" yazmak sol/sağ boşluğu siliyordu) */
.kb-hub { padding-top: 72px; padding-bottom: 96px; }

.kb-cat { margin-bottom: 72px; }
.kb-cat__head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--line);
}
.kb-cat__head h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--ink);
}
.kb-cat__head p { font-size: 0.9rem; color: var(--ink-mute); margin-left: auto; }

.kb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.kb-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 26px 24px;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.kb-card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: var(--shadow-hover);
}
.kb-card__tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--accent);
}
.kb-card__title {
    font-size: 1.13rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.3px;
    color: var(--ink);
}
.kb-card__desc { font-size: 0.93rem; line-height: 1.65; color: var(--ink-soft); }
.kb-card__go {
    margin-top: auto;
    padding-top: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.kb-card:hover .kb-card__go .arr { transform: translateX(4px); }
.kb-card__go .arr { transition: transform 0.3s var(--ease); }

/* ---------- Makale düzeni: içerik + yan sütun ---------- */
.kb-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 64px;
    align-items: start;
    padding: 72px 0 96px;
}

/* ---------- Makale gövdesi ---------- */
/* min-width:0 — grid öğesinin varsayılan min-width:auto değeri, içindeki
   geniş tabloların sütunu şişirip sayfayı yatay kaydırmasına yol açıyor. */
.kb-body { min-width: 0; max-width: 74ch; font-size: 1.04rem; line-height: 1.82; color: var(--ink-soft); }
.kb-body > * + * { margin-top: 1.15em; }

.kb-body h2 {
    font-size: clamp(1.5rem, 2.5vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.2;
    color: var(--ink);
    margin-top: 2.4em;
    padding-top: 0.1em;
    scroll-margin-top: 96px;
}
.kb-body h3 {
    font-size: 1.19rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--ink);
    margin-top: 1.9em;
    scroll-margin-top: 96px;
}
.kb-body h2 + p, .kb-body h3 + p { margin-top: 0.7em; }
.kb-body strong { color: var(--ink-2); font-weight: 700; }
.kb-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.kb-body a:hover { color: var(--violet); text-decoration-thickness: 2px; }

.kb-body ul, .kb-body ol { padding-left: 1.3em; }
.kb-body li + li { margin-top: 0.5em; }
.kb-body ul { list-style: none; padding-left: 0; }
.kb-body ul li { position: relative; padding-left: 28px; }
.kb-body ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--grad);
}
.kb-body ol { counter-reset: kb; list-style: none; padding-left: 0; }
.kb-body ol > li { position: relative; padding-left: 40px; counter-increment: kb; }
.kb-body ol > li::before {
    content: counter(kb);
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--accent-wash);
    color: var(--accent-ink);
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Öne çıkan kutu / uyarı ---------- */
.kb-note {
    border-left: 3px solid var(--accent);
    background: var(--bg-2);
    border-radius: 0 12px 12px 0;
    padding: 22px 26px;
    font-size: 0.98rem;
}
.kb-note strong:first-child { display: block; margin-bottom: 6px; color: var(--accent-ink); }
.kb-note--warn { border-left-color: var(--amber); background: #FFF8EC; }
.kb-note--warn strong:first-child { color: #92650B; }

/* ---------- Tablo ---------- */
.kb-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; }
.kb-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 520px; }
.kb-table th, .kb-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.kb-table thead th {
    background: var(--bg-2);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap;
}
.kb-table tbody tr:last-child td { border-bottom: none; }
.kb-table tbody tr:hover { background: var(--bg-2); }

/* ---------- SSS ---------- */
.kb-faq { border-top: 1px solid var(--line); }
.kb-faq details { border-bottom: 1px solid var(--line); }
.kb-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 44px 20px 0;
    position: relative;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink);
    line-height: 1.45;
}
.kb-faq summary::-webkit-details-marker { display: none; }
.kb-faq summary::after {
    content: '+';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--accent);
    transition: transform 0.3s var(--ease);
}
.kb-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.kb-faq details > p, .kb-faq details > ul { margin: 0 0 22px; font-size: 0.99rem; line-height: 1.75; color: var(--ink-soft); }

/* ---------- Yan sütun ---------- */
.kb-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 26px; }

.kb-toc { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; background: #fff; }
.kb-toc h2 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 14px;
}
.kb-toc ol { list-style: none; counter-reset: toc; }
.kb-toc li { counter-increment: toc; }
.kb-toc li + li { margin-top: 2px; }
.kb-toc a {
    display: block;
    padding: 7px 0 7px 26px;
    position: relative;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--ink-soft);
    transition: color 0.25s var(--ease);
}
.kb-toc a::before {
    content: counter(toc, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 7px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ink-mute);
}
.kb-toc a:hover, .kb-toc a.is-active { color: var(--accent); }
.kb-toc a.is-active::before { color: var(--accent); }

.kb-side-cta {
    background: var(--ink);
    color: #fff;
    border-radius: 16px;
    padding: 28px 26px;
}
.kb-side-cta h2 { font-size: 1.12rem; font-weight: 800; line-height: 1.3; margin-bottom: 10px; color: #fff; }
.kb-side-cta p { font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.72); margin-bottom: 20px; }
.kb-side-cta .btn { width: 100%; justify-content: center; }

/* ---------- Makale altı: ilgili yazılar + CTA ---------- */
.kb-related { border-top: 1px solid var(--line); padding-top: 46px; margin-top: 64px; }
.kb-related h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.4px; color: var(--ink); margin-bottom: 26px; }

.kb-cta {
    background: var(--ink);
    color: #fff;
    border-radius: 22px;
    padding: 56px 52px;
    margin-top: 56px;
    position: relative;
    overflow: hidden;
}
.kb-cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -1px; color: #fff; margin-bottom: 12px; }
.kb-cta h2 em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.kb-cta p { color: rgba(255,255,255,0.72); max-width: 56ch; margin-bottom: 28px; line-height: 1.7; }
.kb-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.kb-cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.24); }
.kb-cta .btn--ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Duyarlılık ---------- */
@media (max-width: 1000px) {
    .kb-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 52px 0 72px; }
    .kb-aside { position: static; flex-direction: row; flex-wrap: wrap; }
    .kb-toc, .kb-side-cta { flex: 1 1 300px; }
}
@media (max-width: 720px) {
    .kb-hero { padding: 56px 0 44px; }
    .kb-body { font-size: 1rem; }
    .kb-cta { padding: 38px 26px; border-radius: 18px; }
    .kb-cat__head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .kb-cat__head p { margin-left: 0; }
    .kb-aside { flex-direction: column; }
}
