/* Rehber yazilari icin ortak stil.
 *
 * NEDEN AYRI DOSYA: index.html'in kendi <style> blogu 1.700 satirdan uzun
 * ve tamami tanitim sayfasinin bolumlerine ait. Her yazi sayfasina onu
 * kopyalamak hem dosyalari sisirir hem de bir renk degisikliginde dort
 * yerde duzeltme gerektirirdi. Yazilarin ihtiyaci olan sey cok daha az:
 * okunabilir bir metin sutunu. Renkler tanitim sayfasiyla AYNI.
 */

:root {
  --bg: #07080B;
  --surface: #121520;
  --surface-card: rgba(18, 21, 32, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.16);
  --accent: #3D7BFF;
  --accent-hover: #548DFF;
  --accent-soft: rgba(61, 123, 255, 0.12);
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, sans-serif;
  /* Okuma icin 17px: tanitim sayfasindaki 15-16px kisa cumleler icindi,
     uzun metinde goz yoruyor. */
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* --- ust serit --- */
.ust {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 8, 11, 0.86);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.ust .ic {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ust img { height: 32px; display: block; }
.ust nav { display: flex; gap: 20px; font-size: 14.5px; }
.ust nav a { color: var(--text-muted); }
.ust nav a:hover { color: var(--text); text-decoration: none; }

/* --- yazi govdesi ---
   65 karakterlik satir uzunlugu tipografide okunabilirligin standardi;
   720px bu yazi boyunda ona denk geliyor. */
main { max-width: 720px; margin: 0 auto; padding: 56px 24px 90px; }

.yol { font-size: 13.5px; color: var(--text-dim); margin: 0 0 18px; }
.yol a { color: var(--text-dim); }

h1 {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.18; letter-spacing: -0.02em;
  font-weight: 800; margin: 0 0 14px;
}
.ozet { font-size: 19px; color: var(--text-muted); margin: 0 0 10px; line-height: 1.6; }
.tarih { font-size: 13.5px; color: var(--text-dim); margin: 0 0 40px; }

h2 {
  font-size: 25px; font-weight: 700; letter-spacing: -0.01em;
  margin: 46px 0 14px; padding-top: 10px;
}
h3 { font-size: 19px; font-weight: 700; margin: 30px 0 10px; }
p { margin: 0 0 18px; color: #D7DEE8; }
ul, ol { margin: 0 0 18px; padding-left: 24px; color: #D7DEE8; }
li { margin-bottom: 9px; }
strong { color: var(--text); font-weight: 700; }

code {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 7px; font-size: 14.5px;
  font-family: ui-monospace, Consolas, monospace;
}

/* --- vurgu kutusu --- */
.kutu {
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px; margin: 26px 0;
}
.kutu.mavi { border-color: rgba(61, 123, 255, 0.35); background: var(--accent-soft); }
.kutu p:last-child, .kutu ul:last-child { margin-bottom: 0; }
.kutu b { display: block; margin-bottom: 7px; color: var(--text); }

/* --- adim listesi --- */
ol.adimlar { list-style: none; padding: 0; counter-reset: adim; }
ol.adimlar > li {
  counter-increment: adim; position: relative;
  padding: 0 0 0 46px; margin-bottom: 22px;
}
ol.adimlar > li::before {
  content: counter(adim); position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid rgba(61, 123, 255, 0.4);
  color: #9DBDFF; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* --- dugme --- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 11px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }

/* --- diger yazilar --- */
.diger { margin-top: 56px; border-top: 1px solid var(--border); padding-top: 28px; }
.diger h2 { margin-top: 0; font-size: 20px; }
.kartlar { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.kart {
  display: block; background: var(--surface-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
}
.kart:hover { border-color: var(--border-bright); text-decoration: none; }
.kart b { display: block; color: var(--text); font-size: 16px; margin-bottom: 5px; }
.kart span { color: var(--text-muted); font-size: 14px; line-height: 1.5; }

/* --- alt --- */
footer {
  border-top: 1px solid var(--border); padding: 28px 24px 40px;
  text-align: center; color: var(--text-dim); font-size: 13.5px;
}
footer .uyari { max-width: 660px; margin: 12px auto 0; line-height: 1.6; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  main { padding: 36px 20px 64px; }
  .ust nav { display: none; }
}
