/* ==========================================================================
   rehber.css — Rehber icerik sayfasi (sayfalar.asp, /<seo>-s-<id>)
   2026-11-29: dizin sayfasi "Bilişim El Kitabı" oldu (bilisim-el-kitabi.asp);
   onun stili assets/css/el-kitabi.css'te. Eski dizin siniflari (.rh-gruplar,
   .rh-grup-cip, .rh-grup, .rh-liste, .rh-madde, .rh-dip) kaldirildi.
   Tokenlar design-system.css'ten (--ds-yuzey, --ds-yuzey-2, --ds-metin,
   --ds-soluk, --ds-cizgi, --color-primary). Koyu tema token uzerinden gelir.
   Icerik markalamasi: .rh-icerik icinde duz HTML (h2/h3/p/table/pre/kbd/ul),
   .rh-tablo (yatay kaydirma sarmali), .rh-not / .rh-ipucu / .rh-uyari kutulari,
   .rh-kod (satir ici kod). 2026-10-10.
   ========================================================================== */
.rh { --rh-vurgu: var(--color-primary); }
body.active-dark-mode .rh { --rh-vurgu: #c9a3bd; }

/* Grup ikonu (icerik sayfasinin yan sutunu .rh-yan-bas icinde kullanir) */
.rh-grup-ikon {
  flex: 0 0 52px; width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; font-size: 22px;
  color: var(--rh-vurgu); background: var(--ds-yuzey-2); border: 1px solid var(--ds-cizgi);
}

/* ---- Icerik sayfasi ---- */
.rh-icerik { color: var(--ds-metin); font-size: 16px; line-height: 1.75; }
.rh-icerik > :first-child { margin-top: 0; }
.rh-icerik h2 { margin: 36px 0 12px; font-size: 24px; line-height: 1.3; color: var(--ds-metin); scroll-margin-top: 96px; }
.rh-icerik h3 { margin: 26px 0 10px; font-size: 19px; color: var(--ds-metin); scroll-margin-top: 96px; }
.rh-icerik p { margin: 0 0 14px; color: var(--ds-metin); }
.rh-icerik ul, .rh-icerik ol { margin: 0 0 16px; padding-left: 22px; }
.rh-icerik li { margin: 0 0 6px; color: var(--ds-metin); }
.rh-icerik a { color: var(--rh-vurgu); text-decoration: underline; text-underline-offset: 3px; }
.rh-icerik strong, .rh-icerik b { color: var(--ds-metin); }
.rh-icerik img { max-width: 100%; height: auto; border-radius: 10px; }
.rh-icerik hr { border: 0; border-top: 1px solid var(--ds-cizgi); margin: 26px 0; }

.rh-icerik .rh-giris { font-size: 17px; line-height: 1.7; color: var(--ds-metin); }
.rh-icerik .rh-icindekiler {
  margin: 0 0 24px; padding: 14px 18px; border-radius: 10px;
  background: var(--ds-yuzey-2); border: 1px solid var(--ds-cizgi);
}
.rh-icerik .rh-icindekiler strong { display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: .4px; text-transform: uppercase; color: var(--ds-soluk); }
.rh-icerik .rh-icindekiler ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 24px; }
.rh-icerik .rh-icindekiler li { margin: 0 0 4px; break-inside: avoid; font-size: 14.5px; }

.rh-icerik .rh-tablo { overflow-x: auto; margin: 0 0 22px; border-radius: 10px; border: 1px solid var(--ds-cizgi); }
.rh-icerik table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0; }
.rh-icerik .rh-tablo table { border: 0; }
.rh-icerik table:not(.rh-tablo table) { margin: 0 0 22px; }
.rh-icerik th, .rh-icerik td { padding: 9px 12px; border: 1px solid var(--ds-cizgi); vertical-align: top; text-align: left; color: var(--ds-metin); }
.rh-icerik .rh-tablo th:first-child, .rh-icerik .rh-tablo td:first-child { border-left: 0; }
.rh-icerik .rh-tablo th:last-child, .rh-icerik .rh-tablo td:last-child { border-right: 0; }
.rh-icerik .rh-tablo tr:first-child th, .rh-icerik .rh-tablo tr:first-child td { border-top: 0; }
.rh-icerik .rh-tablo tr:last-child td { border-bottom: 0; }
.rh-icerik th { background: var(--ds-yuzey-2); font-weight: 700; white-space: nowrap; }
.rh-icerik tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--ds-yuzey-2) 55%, var(--ds-yuzey)); }
.rh-icerik td code, .rh-icerik .rh-kod, .rh-icerik kbd {
  font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 13.5px;
  padding: 2px 7px; border-radius: 6px;
  background: var(--ds-yuzey-2); border: 1px solid var(--ds-cizgi); color: var(--ds-metin);
}
.rh-icerik kbd { box-shadow: inset 0 -2px 0 var(--ds-cizgi); }
.rh-icerik pre {
  margin: 0 0 20px; padding: 16px 18px; border-radius: 10px; overflow: auto;
  background: #1f2227; color: #e6e8ec; font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 13.5px; line-height: 1.6; tab-size: 4; white-space: pre;
}
.rh-icerik pre code { background: transparent; border: 0; padding: 0; color: inherit; font-size: inherit; }
.rh-icerik .rh-not, .rh-icerik .rh-ipucu, .rh-icerik .rh-uyari {
  margin: 0 0 18px; padding: 13px 16px; border-radius: 10px; font-size: 15px; line-height: 1.65;
  background: var(--ds-yuzey-2); border: 1px solid var(--ds-cizgi); border-left-width: 4px;
}
.rh-icerik .rh-not { border-left-color: #436189; }
.rh-icerik .rh-ipucu { border-left-color: var(--rh-vurgu); }
.rh-icerik .rh-uyari { border-left-color: #b5443c; }
.rh-icerik .rh-not p:last-child, .rh-icerik .rh-ipucu p:last-child, .rh-icerik .rh-uyari p:last-child { margin-bottom: 0; }
.rh-icerik .rh-ornek { margin: 0 0 20px; padding: 14px 18px; border-radius: 10px; border: 1px dashed var(--ds-cizgi); }
.rh-icerik .rh-ornek > :last-child { margin-bottom: 0; }
.rh-icerik .rh-ekran {
  margin: 0 0 20px; padding: 16px 18px; border-radius: 10px; overflow: auto;
  background: #000; color: #c7c7c7; font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 13.5px; line-height: 1.5; white-space: pre;
}
.rh-icerik dl { margin: 0 0 18px; }
.rh-icerik dt { font-weight: 700; margin-top: 10px; }
.rh-icerik dd { margin: 2px 0 0 18px; color: var(--ds-metin); }

/* Onceki / sonraki */
.rh-gezinme { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--ds-cizgi); }
.rh-gez { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--ds-cizgi); background: var(--ds-yuzey-2); text-decoration: none !important; transition: border-color .18s ease; }
.rh-gez:hover { border-color: var(--rh-vurgu); }
.rh-gez small { font-size: 12px; letter-spacing: .3px; text-transform: uppercase; color: var(--ds-soluk); }
.rh-gez span { font-size: 15px; font-weight: 600; color: var(--ds-metin); }
.rh-gez-sonraki { text-align: right; }

/* Yan sutun */
.rh-yan { position: sticky; top: 110px; padding: 20px; border-radius: 12px; border: 1px solid var(--ds-cizgi); background: var(--ds-yuzey-2); }
.rh-yan-bas { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rh-yan-bas .rh-grup-ikon { flex-basis: 42px; width: 42px; height: 42px; font-size: 17px; border-radius: 11px; background: var(--ds-yuzey); }
.rh-yan-bas h2 { margin: 0; font-size: 17px; color: var(--ds-metin); }
.rh-yan-bas p { margin: 0; font-size: 12.5px; color: var(--ds-soluk); }
.rh-yan-liste { list-style: none; margin: 0; padding: 0; counter-reset: rh; }
.rh-yan-liste li { margin: 0; counter-increment: rh; }
.rh-yan-liste li a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 8px 10px; border-radius: 8px; font-size: 14px; line-height: 1.4;
  color: var(--ds-metin); text-decoration: none;
}
.rh-yan-liste li a::before { content: counter(rh, decimal-leading-zero); font-size: 11.5px; font-weight: 700; color: var(--ds-soluk); font-variant-numeric: tabular-nums; }
.rh-yan-liste li a:hover { background: var(--ds-yuzey); color: var(--rh-vurgu); }
.rh-yan-liste li.aktif a { background: var(--ds-yuzey); color: var(--rh-vurgu); font-weight: 700; }
.rh-yan-tum { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--rh-vurgu); text-decoration: none; }
.rh-yan-tum:hover { text-decoration: underline; }

@media (max-width: 991px) {
  .rh-yan { position: static; }
  .rh-icerik .rh-icindekiler ol { columns: 1; }
}
@media (max-width: 575px) {
  .rh-gezinme { grid-template-columns: 1fr; }
  .rh-gez-sonraki { text-align: left; }
  .rh-icerik { font-size: 15.5px; }
  .rh-icerik h2 { font-size: 21px; }
  .rh-icerik pre { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .rh-gez { transition: none; }
}
