/* =========================================================================
   Qalentis konu sayfalari + blog yazilari (tools/build_site.py uretir)
   Yalniz marka paleti: kirmizi #ff1700, siyah #0a0a0a, beyaz.
   ========================================================================= */
/* Dil secici (ana sayfada satir ici; konu sayfalari icin kopya) */
.lang-selector { position: relative; margin-right: 15px; z-index: 9999; }
.lang-toggle { display: flex; align-items: center; gap: 6px; background: transparent; border: 1px solid #ddd; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 14px; font-weight: 600; color: #333; transition: all 0.2s; }
.lang-toggle:hover { border-color: #ff1700; color: #ff1700; }
.lang-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); min-width: 180px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s ease; overflow: hidden; }
.lang-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; transition: background 0.15s; }
.lang-option:hover { background: #fff1ef; }
.lang-option.active { background: #fff1ef; }
.lang-abbr { font-weight: 700; font-size: 14px; color: #0a0a0a; min-width: 28px; }
.lang-name { font-size: 14px; color: #6b6b6b; flex: 1; }
.lang-check { color: #ff1700; font-size: 16px; opacity: 0; transition: opacity 0.15s; }
.lang-option.active .lang-check { opacity: 1; }

.qt-page > header { position: sticky; top: 0; z-index: 999; }
.qt-page .header-transparent { position: relative; }
.qt-page { padding-top: 0 !important; }

.qt-skip { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: #0a0a0a; color: #fff !important;
  padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.qt-skip:focus { left: 12px; }

.qt { background: #fff; }
.qt-wrap { max-width: 880px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) 20px clamp(48px, 6vw, 80px); }

/* kirinti */
.qt-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 clamp(22px, 3vw, 34px); padding: 0;
  font: 500 13px/1.4 'Inter', system-ui, sans-serif; color: #6b6b6b; }
.qt-crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: #bdbdbd; }
.qt-crumbs a { color: #6b6b6b !important; text-decoration: none; }
.qt-crumbs a:hover { color: #ff1700 !important; }
.qt-crumbs [aria-current] { color: #0a0a0a; }

/* baslik */
.qt-kicker { margin: 0 0 14px !important; font: 800 12px/1 'Inter', system-ui, sans-serif !important; letter-spacing: .22em;
  text-transform: uppercase; color: #ff1700 !important; }
.qt h1 { margin: 0 0 18px !important; font-size: clamp(32px, 5.2vw, 56px) !important; line-height: 1.06 !important;
  letter-spacing: -.03em !important; color: #0a0a0a !important; text-wrap: balance; overflow-wrap: anywhere; }
.qt-lede { margin: 0 0 14px !important; font: 400 clamp(17px, 1.6vw, 20px)/1.6 'Inter', system-ui, sans-serif !important; color: #333 !important; }
.qt-meta { margin: 0 !important; font: 500 13px/1.5 'Inter', system-ui, sans-serif !important; color: #6b6b6b !important; }

/* kisa cevap */
.qt-answer { margin: clamp(26px, 3.4vw, 38px) 0 22px; padding: clamp(20px, 2.6vw, 28px); border-radius: 18px;
  background: #fff; border: 1.5px solid #0a0a0a; border-inline-start: 6px solid #ff1700; }
.qt-answer b { display: block; margin-bottom: 8px; font: 800 12px/1 'Inter', system-ui, sans-serif; letter-spacing: .2em;
  text-transform: uppercase; color: #ff1700; }
.qt-answer p { margin: 0 !important; font: 500 clamp(16px, 1.45vw, 18px)/1.65 'Inter', system-ui, sans-serif !important; color: #0a0a0a !important; }

/* dugmeler */
.qt-cta-row, .qt-band-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.qt-cta-row { margin-bottom: clamp(28px, 4vw, 44px); }
.qt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; font: 700 15px/1 'Inter', system-ui, sans-serif; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.qt-btn:hover { transform: translateY(-2px); }
.qt-btn--red { background: #ff1700; color: #fff !important; }
.qt-btn--red:hover { background: #0a0a0a; }
.qt-btn--line { border: 1.5px solid #0a0a0a; color: #0a0a0a !important; }
.qt-btn--line:hover { background: #0a0a0a; color: #fff !important; }
.qt-btn--white { background: #fff; color: #0a0a0a !important; }
.qt-btn--ghost { border: 1.5px solid rgba(255,255,255,.7); color: #fff !important; }
.qt-btn--ghost:hover { background: #fff; color: #ff1700 !important; }

/* icindekiler */
.qt-toc { margin: 0 0 clamp(28px, 4vw, 44px); padding: 18px 22px; border-radius: 14px; background: #fafafa; border: 1px solid #e8e8e8; }
.qt-toc b { display: block; margin-bottom: 10px; font: 800 12px/1 'Inter', system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #6b6b6b; }
.qt-toc ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.qt-toc a { color: #0a0a0a !important; font: 500 15px/1.45 'Inter', system-ui, sans-serif; text-decoration: none; }
.qt-toc a:hover { color: #ff1700 !important; text-decoration: underline; }

/* govde */
.qt-sec { margin: 0 0 clamp(34px, 4.4vw, 52px); scroll-margin-top: 110px; }
.qt-body h2, .qt-related h2 { margin: 0 0 16px !important; font-size: clamp(25px, 3vw, 34px) !important; line-height: 1.15 !important;
  letter-spacing: -.025em !important; color: #0a0a0a !important; }
.qt-body h3 { margin: 26px 0 10px !important; font-family: 'Inter', system-ui, sans-serif !important; font-weight: 700 !important;
  font-size: 19px !important; line-height: 1.35 !important; letter-spacing: -.01em !important; color: #0a0a0a !important; }
.qt-body p, .qt-body li { font: 400 17px/1.75 'Inter', system-ui, sans-serif !important; color: #262626 !important; }
.qt-body p { margin: 0 0 14px !important; }
.qt-body ul, .qt-body ol { margin: 0 0 16px !important; padding-inline-start: 22px !important; }
.qt-body ul { list-style: none; padding-inline-start: 0 !important; }
.qt-body ul > li { position: relative; padding-inline-start: 22px; margin-bottom: 8px; }
.qt-body ul > li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .72em; width: 8px; height: 8px;
  border-radius: 2px; background: #ff1700; }
.qt-body ol > li { margin-bottom: 8px; padding-inline-start: 4px; }
.qt-body ol > li::marker { color: #ff1700; font-weight: 800; }
.qt-body a { color: #ff1700 !important; text-decoration: underline; text-underline-offset: 3px; }
.qt-body strong, .qt-body b { color: #0a0a0a; font-weight: 700; }

/* tablo */
.qt-table { width: 100%; margin: 6px 0 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e8e8e8; border-radius: 14px; }
.qt-table table { width: 100%; min-width: 520px; border-collapse: collapse; font: 400 15px/1.55 'Inter', system-ui, sans-serif; }
.qt-table th, .qt-table td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid #eee; color: #262626; }
.qt-table th { background: #0a0a0a; color: #fff; font-weight: 700; }
.qt-table tr:last-child td { border-bottom: 0; }
.qt-table td:first-child { font-weight: 600; color: #0a0a0a; }

/* not kutusu */
.qt-note { margin: 18px 0; padding: 16px 20px; border-radius: 12px; background: #fff1ef; border: 1px solid #ffd2cc; }
.qt-note p:last-child { margin-bottom: 0 !important; }

/* 9-box izgara */
.qt-ninebox { display: grid; grid-template-columns: 34px repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 20px; }
.qt-ninebox .ax { display: flex; align-items: center; justify-content: center; font: 800 11px/1 'Inter', system-ui, sans-serif;
  letter-spacing: .14em; color: #6b6b6b; }
.qt-ninebox .ax-y { writing-mode: vertical-rl; transform: rotate(180deg); grid-row: 1 / 4; }
.qt-ninebox .ax-x { grid-column: 2 / 5; padding-top: 4px; }
.qt-ninebox .c { min-height: 92px; padding: 12px; border-radius: 12px; border: 1px solid #e8e8e8; background: #fff;
  font: 400 13.5px/1.4 'Inter', system-ui, sans-serif; color: #444; }
.qt-ninebox .c b { display: block; margin-bottom: 4px; font-size: 14.5px; color: #0a0a0a; }
.qt-ninebox .c.hot { background: #ff1700; border-color: #ff1700; color: #fff; }
.qt-ninebox .c.hot b { color: #fff; }
.qt-ninebox .c.ink { background: #0a0a0a; border-color: #0a0a0a; color: #ddd; }
.qt-ninebox .c.ink b { color: #fff; }

/* adim kartlari */
.qt-steps { counter-reset: s; display: grid; gap: 12px; margin: 8px 0 18px !important; padding: 0 !important; list-style: none; }
.qt-body .qt-steps > li { counter-increment: s; position: relative; margin: 0; padding: 16px 18px 16px 62px; border: 1px solid #e8e8e8; border-radius: 14px; }
.qt-body .qt-steps > li::before { content: counter(s); position: absolute; inset-inline-start: 16px; top: 16px; width: 32px; height: 32px;
  border-radius: 50%; background: #0a0a0a; color: #fff; font: 800 14px/32px 'Inter', system-ui, sans-serif; text-align: center; }
[dir="rtl"] .qt-body .qt-steps > li { padding: 16px 62px 16px 18px; }

/* SSS */
.qt-faq details { border-bottom: 1px solid #e8e8e8; }
.qt-faq details:first-of-type { border-top: 1px solid #e8e8e8; }
.qt-faq summary { cursor: pointer; list-style: none; position: relative; padding: 18px 40px 18px 0;
  font: 700 17px/1.45 'Inter', system-ui, sans-serif; color: #0a0a0a; }
.qt-faq summary::-webkit-details-marker { display: none; }
.qt-faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 14px; font: 400 26px/1 'Inter', system-ui, sans-serif; color: #ff1700; }
.qt-faq details[open] summary::after { content: "\2212"; }
.qt-faq details > div { padding: 0 0 18px; }
.qt-faq details > div p:last-child { margin-bottom: 0 !important; }

/* ilgili */
.qt-related { margin: clamp(10px, 2vw, 20px) 0 clamp(36px, 5vw, 56px); }
.qt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.qt-card { display: block; padding: 18px; border-radius: 14px; border: 1px solid #e8e8e8; text-decoration: none; transition: border-color .2s, transform .2s; }
.qt-card:hover { border-color: #ff1700; transform: translateY(-2px); }
.qt-card b { display: block; margin-bottom: 6px; font: 700 16px/1.35 'Inter', system-ui, sans-serif; color: #0a0a0a; }
.qt-card span { display: block; font: 400 14px/1.5 'Inter', system-ui, sans-serif; color: #555; }

/* CTA bandi */
.qt-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: clamp(24px, 3.4vw, 40px);
  border-radius: 24px; background: #0a0a0a; }
.qt-band h2 { margin: 0 0 8px !important; font-size: clamp(24px, 2.8vw, 32px) !important; line-height: 1.15 !important; color: #fff !important;
  -webkit-text-fill-color: #fff !important; }
.qt-band p { margin: 0 !important; font: 400 16px/1.6 'Inter', system-ui, sans-serif !important; color: #cfcfcf !important; }

/* blog listesi */
.qt-postlist { display: grid; gap: 14px; margin: 0 0 20px; padding: 0; list-style: none; }
.qt-body .qt-postlist > li { padding: 0; margin: 0; }
.qt-body .qt-postlist > li::before { display: none; }
.qt-postlist a { display: block; padding: 20px; border: 1px solid #e8e8e8; border-radius: 14px; text-decoration: none !important; }
.qt-postlist a:hover { border-color: #ff1700; }
.qt-postlist b { display: block; font: 700 19px/1.35 'Inter', system-ui, sans-serif; color: #0a0a0a; margin-bottom: 6px; }
.qt-postlist span { display: block; font: 400 15px/1.55 'Inter', system-ui, sans-serif; color: #555; }

@media (max-width: 767px) {
  .qt-wrap { padding-left: 16px; padding-right: 16px; }
  .qt-btn { width: 100%; }
  .qt-band { grid-template-columns: 1fr; }
  .qt-band-btns { flex-direction: column; }
  .qt-body p, .qt-body li { font-size: 16px !important; }
  .qt-ninebox { grid-template-columns: 26px repeat(3, minmax(0, 1fr)); gap: 6px; }
  .qt-ninebox .c { min-height: 78px; padding: 8px; font-size: 12px; }
  .qt-ninebox .c b { font-size: 12.5px; }
  .qt-ninebox .c span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .qt-btn, .qt-card { transition: none; }
  .qt-btn:hover, .qt-card:hover { transform: none; }
}
