/* ============================================================
   SiberTemel — Stil Dosyası (style.css)
   Koyu tema varsayılan, açık tema [data-theme="light"].
   Terminal/siber estetik; erişilebilir, responsive, yazdırma destekli.
   ============================================================ */

/* ---------- Değişkenler (Koyu tema - varsayılan) ---------- */
:root {
  --bg: #0a0f14;
  --bg-elev: #0f1620;
  --surface: #121b27;
  --surface-2: #16202d;
  --border: #1f2d3d;
  --border-soft: #182433;
  --text: #d4e0ea;
  --text-strong: #eaf2fb;
  --muted: #8a9aab;
  --accent: #00e5a0;
  --accent-soft: rgba(0, 229, 160, 0.12);
  --accent2: #00d4ff;
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, 0.12);
  --warning: #ffb547;
  --warning-soft: rgba(255, 181, 71, 0.12);
  --code-bg: #0c1219;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --radius: 10px;
  --radius-sm: 6px;
  --header-h: 58px;
  --sidebar-w: 256px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "Noto Sans TC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  --maxw: 1180px;
  --transition: 180ms ease;
}

/* ---------- Açık tema ---------- */
[data-theme="light"] {
  --bg: #f4f6f9;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f3f7;
  --border: #d6deea;
  --border-soft: #e4e9f1;
  --text: #1b2733;
  --text-strong: #0f1820;
  --muted: #5b6b7d;
  --accent: #00875a;
  --accent-soft: rgba(0, 135, 90, 0.12);
  --accent2: #00838f;
  --danger: #c92a2a;
  --danger-soft: rgba(201, 42, 42, 0.10);
  --warning: #b26a00;
  --warning-soft: rgba(178, 106, 0, 0.12);
  --code-bg: #f0f3f7;
  --shadow: 0 6px 18px rgba(20, 40, 70, 0.10);
}

/* ---------- Sıfırlama ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--text-strong); line-height: 1.3; margin-top: 1.6em; margin-bottom: 0.5em; }
h1 { font-size: clamp(1.55rem, 4vw, 2.1rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h3 { font-size: 1.1rem; }
p { margin: 0.6em 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, kbd { font-family: var(--font-mono); }
code {
  background: var(--code-bg);
  border: 1px solid var(--border-soft);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--accent);
  word-break: break-word;
}
pre { margin: 0; }
img, svg { max-width: 100%; }
ul, ol { padding-left: 1.3em; }

/* ---------- Erişilebilirlik: atla, focus ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #04130d;
  padding: 0.6em 1em;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 2000;
  font-weight: 600;
}
.skip-link:focus { left: 0; }
:focus-visible {
  outline: 3px solid var(--accent2);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- İlerleme çubuğu ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 1200;
  transition: width 80ms linear;
}

/* ---------- Üst başlık ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1rem;
  max-width: 1600px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-strong);
  font-family: var(--font-mono);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  color: var(--accent);
  font-family: var(--font-mono);
  background: var(--accent-soft);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.brand-text .accent { color: var(--accent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.4rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--accent); color: var(--text-strong); }
.menu-toggle { display: none; }

.search-kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--muted);
}
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: inline-block; }

/* ---------- Düzen ---------- */
.layout {
  flex: 1 0 auto;
  display: flex;
  align-items: flex-start;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* ---------- Kenar menü ---------- */
.sidebar {
  position: sticky;
  top: var(--header-h);
  width: var(--sidebar-w);
  flex-shrink: 0;
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 0.8rem 0.6rem;
}
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  border: 1px solid transparent;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.side-link:hover { background: var(--surface); color: var(--text-strong); text-decoration: none; }
.side-link.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--border);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--accent-soft), 0 0 12px -2px var(--accent);
}
.side-link .side-ico { font-size: 1rem; width: 1.1em; text-align: center; color: var(--accent); }
.side-link.active .side-ico { color: var(--accent); }

/* Nav tamamlama rozeti */
.nav-completion {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  border: 1px solid transparent;
}
.nav-completion.complete {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 8px -2px var(--accent);
}

/* Nav mini ilerleme çubuğu */
.side-label-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.side-label { display: block; }
.nav-progress-wrap {
  height: 3px;
  background: var(--border-soft);
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
  max-width: 80px;
}
.nav-progress {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 2px;
  transition: width 400ms ease;
}

/* ---------- İçerik ---------- */
.content {
  flex: 1 1 auto;
  padding: 1.5rem 1.4rem 3rem;
  min-width: 0; /* taşmayı önle */
}
.section { max-width: var(--maxw); margin: 0 auto; animation: fade 220ms ease; min-width: 0; }
.section[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.lead { font-size: 1.05rem; color: var(--text); }
.muted { color: var(--muted); }
.tagline {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1rem;
  margin-top: -0.2em;
  margin-bottom: 1em;
}

/* ---------- Kartlar / grid ---------- */
.grid-2, .grid-3 { display: grid; gap: 1rem; margin: 1em 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 0 1px var(--accent-soft); }
.card h3 { margin-top: 0; color: var(--accent); font-family: var(--font-mono); font-size: 1rem; }
.quick-card {
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}
.quick-card .qc-ico { font-size: 1.4rem; color: var(--accent); margin-bottom: 0.4rem; }
.quick-card .qc-title { font-weight: 600; color: var(--text-strong); }
.quick-card .qc-desc { font-size: 0.85rem; color: var(--muted); margin-top: 0.2em; }
.quick-card:hover { text-decoration: none; transform: translateY(-2px); }

/* ---------- Çağrı kutuları ---------- */
.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin: 1.2em 0;
  background: var(--surface);
}
.callout-title { margin-top: 0; color: var(--text-strong); font-size: 1rem; }
.callout-warning { border-left-color: var(--warning); background: var(--warning-soft); }
.callout-warning .callout-title { color: var(--warning); }
.callout-info { border-left-color: var(--accent2); background: rgba(0, 212, 255, 0.06); }
.callout-info .callout-title { color: var(--accent2); }

/* ---------- Listeler ---------- */
.ordered-steps, .bullet-list { margin: 0.8em 0; }
.ordered-steps li, .bullet-list li { margin: 0.35em 0; }

/* ---------- Tablolar ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 1em 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: 100%;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}
.data-table th, .data-table td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.data-table thead th {
  background: var(--surface-2);
  color: var(--text-strong);
  font-weight: 600;
  position: sticky;
  top: 0;
  white-space: nowrap;
}
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table code { white-space: nowrap; }
.legend { font-size: 0.85rem; color: var(--muted); margin-top: 0.5em; display: flex; align-items: center; gap: 0.3em; flex-wrap: wrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.2em; }
.dot-ok { background: var(--accent); }
.dot-warn { background: var(--danger); }

/* ---------- Filtre çubuğu ---------- */
.filter-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1em 0;
}
.filter-input, .filter-select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  flex: 1 1 220px;
  min-width: 160px;
}
.filter-input:focus, .filter-select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px var(--accent-soft); }
.filter-select { flex: 0 0 auto; min-width: 130px; }

/* ---------- Kod blokları ---------- */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1em 0;
  overflow: hidden;
}
.code-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0.7rem;
}
.code-label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.copy-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.copied { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.code-block pre { padding: 0.8rem 1rem; overflow-x: auto; }
.code-block code {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ---------- OSI gezgin ---------- */
.osi-explorer {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  margin: 1em 0;
}
.osi-layers { display: flex; flex-direction: column; gap: 6px; }
.osi-layer-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  color: var(--text);
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: background var(--transition), border-color var(--transition);
}
.osi-layer-btn:hover { background: var(--surface-2); }
.osi-layer-btn.active { border-left-color: var(--accent); background: var(--accent-soft); color: var(--text-strong); }
.osi-layer-btn .osi-no {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  width: 1.6em;
}
.osi-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  min-height: 180px;
}
.osi-detail h3 { margin-top: 0; color: var(--accent); font-family: var(--font-mono); }
.osi-detail .field { margin: 0.5em 0; font-size: 0.92rem; }
.osi-detail .field b { color: var(--text-strong); }
.osi-detail .analogy { font-style: italic; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 0.6em; margin-top: 0.6em; }

/* ---------- TCP el sıkışma animasyonu ---------- */
.handshake-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1em 0;
}
.handshake-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
  min-height: 70px;
}
.hs-node {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-strong);
  min-width: 90px;
  text-align: center;
}
.hs-line {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
  transition: background var(--transition);
}
.hs-line.active { background: var(--accent); }
.hs-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--border);
  transition: border-left-color var(--transition);
}
.hs-line.active::after { border-left-color: var(--accent); }
.hs-line.dir-reverse::after { right: auto; left: -1px; border-left-color: transparent; border-right-color: var(--border); }
.hs-line.dir-reverse.active::after { border-right-color: var(--accent); }
.handshake-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hs-flag {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  min-width: 90px;
  text-align: center;
}
.handshake-detail {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  font-size: 0.92rem;
}

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition);
  background: var(--surface);
  color: var(--text);
}
.btn:hover { border-color: var(--accent); color: var(--text-strong); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #04130d; border-color: var(--accent); font-weight: 600; }
.btn-primary:hover { filter: brightness(1.08); color: #04130d; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; }

/* ---------- Araç listesi ---------- */
.tool-list { display: flex; flex-direction: column; gap: 0.8rem; margin: 1em 0; }
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.tool-card h3 { margin: 0 0 0.3em; color: var(--accent); font-family: var(--font-mono); font-size: 1rem; }
.tool-card .tool-code {
  background: var(--code-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  white-space: pre-wrap;
  color: var(--text);
  margin: 0.5em 0;
  overflow-x: auto;
}

/* ---------- Linux komut kartları ---------- */
.cmd-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1em 0; }
.cmd-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.cmd-group h3 {
  margin: 0 0 0.6em;
  font-size: 0.95rem;
  color: var(--accent2);
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0.4em;
}
.cmd-item { margin: 0.6em 0; }
.cmd-item .cmd-name {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}
.cmd-item .cmd-desc { font-size: 0.85rem; color: var(--muted); margin: 0.2em 0; }
.cmd-item .cmd-ex {
  display: block;
  background: var(--code-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: pre-wrap;
  color: var(--text);
  margin-top: 0.3em;
  overflow-x: auto;
}

/* ---------- Pratik görevler ---------- */
.practice-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1em 0;
}
.practice-progress {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.practice-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width var(--transition); }
.practice-count { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.6em; }
.practice-list { list-style: none; padding: 0; margin: 0; max-height: 360px; overflow-y: auto; }
.practice-item { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border-soft); }
.practice-item:last-child { border-bottom: none; }
.practice-check {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 0.15em;
  accent-color: var(--accent);
  cursor: pointer;
}
.practice-text { font-size: 0.9rem; }
.practice-item.done .practice-text { text-decoration: line-through; color: var(--muted); }

/* ---------- Quiz ---------- */
.quiz-topic-select { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.8rem; margin: 1em 0; }
.quiz-topic-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--font-sans);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.quiz-topic-btn:hover { border-color: var(--accent); transform: translateY(-2px); background: var(--surface-2); }
.quiz-topic-btn .qt-name { font-weight: 600; color: var(--text-strong); }
.quiz-topic-btn .qt-meta { font-size: 0.8rem; color: var(--muted); margin-top: 0.3em; }
.quiz-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.quiz-topic-label { font-weight: 600; color: var(--accent); font-family: var(--font-mono); }
.quiz-progress { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 1rem; }
.quiz-progress-bar { height: 100%; width: 0%; background: var(--accent); transition: width var(--transition); }
.quiz-question { margin: 1em 0; }
.quiz-q-text { font-size: 1.05rem; color: var(--text-strong); margin-bottom: 1rem; }
.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  margin: 0.5rem 0;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text);
  font-family: var(--font-sans);
  transition: border-color var(--transition), background var(--transition);
}
.quiz-option:hover:not(:disabled) { border-color: var(--accent); background: var(--surface-2); }
.quiz-option:disabled { cursor: default; }
.quiz-option.correct { border-color: var(--accent); background: var(--accent-soft); color: var(--text-strong); }
.quiz-option.wrong { border-color: var(--danger); background: var(--danger-soft); color: var(--text-strong); }
.quiz-exp {
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text);
}
.quiz-actions { margin-top: 1rem; display: flex; gap: 0.6rem; }
.quiz-score { font-size: 1.2rem; font-weight: 700; color: var(--accent); font-family: var(--font-mono); }
.quiz-wrong-list { margin: 1em 0; }
.quiz-wrong-item { background: var(--danger-soft); border: 1px solid var(--border); border-left: 4px solid var(--danger); border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; margin: 0.5rem 0; font-size: 0.88rem; }
.quiz-wrong-item b { color: var(--text-strong); }

/* ---------- Sözlük ---------- */
.az-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 0.6em 0 1em;
}
.az-btn {
  min-width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 0.3rem;
  transition: all var(--transition);
}
.az-btn:hover { color: var(--text-strong); border-color: var(--accent); }
.az-btn.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.glossary-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin: 1em 0;
}
.glossary-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
}
.glossary-item { position: relative; }
.glossary-item.g-fav { border-color: var(--accent); background: var(--accent-soft); }
.glossary-item .g-fav-btn {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--muted);
  padding: 0;
  line-height: 1;
  transition: color var(--transition), transform var(--transition);
}
.glossary-item .g-fav-btn:hover { color: var(--warning); transform: scale(1.2); }
.glossary-item .g-fav-btn.active { color: var(--warning); }
.glossary-item .g-term { font-family: var(--font-mono); font-weight: 700; color: var(--accent); font-size: 0.92rem; padding-right: 1.5rem; }
.glossary-item .g-def { font-size: 0.85rem; color: var(--text); margin-top: 0.2em; }
.glossary-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 2rem; }

/* ---------- Yol haritası ---------- */
.roadmap { display: flex; flex-direction: column; gap: 0.7rem; margin: 1em 0; }
.roadmap-week {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  align-items: start;
}
.roadmap-week .rw-no {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.4rem;
}
.roadmap-week h3 { margin: 0 0 0.2em; color: var(--text-strong); font-size: 1rem; }
.roadmap-week .rw-goal { font-size: 0.88rem; margin: 0.2em 0; }
.roadmap-week .rw-practice { font-size: 0.82rem; color: var(--muted); }

/* ---------- Kaynaklar ---------- */
.resource-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition);
}
.resource-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.resource-card h3 { margin: 0 0 0.3em; color: var(--accent); font-family: var(--font-mono); font-size: 1rem; }
.resource-card .res-url { font-size: 0.8rem; color: var(--muted); font-family: var(--font-mono); word-break: break-all; }
.resource-card .res-desc { font-size: 0.88rem; color: var(--text); margin-top: 0.4em; }

/* ---------- Başa dön ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #04130d;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 900;
  transition: opacity var(--transition), transform var(--transition);
}
.back-to-top:hover { transform: translateY(-2px); }
.back-to-top[hidden] { display: none; }

/* Mobil scroll-to-top FAB + konum göstergesi */
.scroll-fab {
  position: fixed;
  bottom: 5.2rem;
  right: 1.2rem;
  z-index: 890;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.scroll-fab.visible { display: flex; }
.scroll-fab-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #04130d;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.scroll-fab-btn:hover { transform: translateY(-2px); }
.scroll-fab-pct {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1em 0.5em;
  min-width: 30px;
  text-align: center;
}
@media (max-width: 760px) {
  .scroll-fab { display: flex; }
}

/* ---------- Komut paleti ---------- */
.palette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  backdrop-filter: blur(3px);
}
.palette-overlay[hidden] { display: none; }
.palette {
  width: min(640px, 92vw);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.palette-input {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
}
.palette-input:focus { outline: none; }
.palette-results { list-style: none; margin: 0; padding: 0.4rem; max-height: 50vh; overflow-y: auto; }
.palette-result {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}
.palette-result:hover, .palette-result.selected { background: var(--accent-soft); }
.palette-result .pr-type { font-size: 0.7rem; color: var(--muted); font-family: var(--font-mono); background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 4px; border: 1px solid var(--border); }
.palette-result .pr-title { color: var(--text-strong); }
.palette-result .pr-desc { color: var(--muted); font-size: 0.8rem; margin-left: auto; }
.palette-empty { padding: 1.5rem; text-align: center; color: var(--muted); }
.palette-hint { padding: 0.5rem 0.9rem; font-size: 0.75rem; color: var(--muted); border-top: 1px solid var(--border); }

/* ---------- QUIZ SKOR GEÇMİŞİ GRAFİĞİ ---------- */
.quiz-history { margin-top: 1em; }
.qh-chart {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  height: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem;
  margin: 0.6em 0;
}
.qh-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--muted);
  font-family: var(--font-mono);
  padding: 0.1em 0;
}
.qh-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  padding: 0 0.4rem 0 0.3rem;
  min-width: 0;
  overflow-x: auto;
}
.qh-col {
  flex: 1 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-width: 14px;
}
.qh-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.qh-bar {
  width: 70%;
  max-width: 20px;
  background: var(--muted);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: height 400ms ease, background 200ms ease;
  opacity: 0.7;
}
.qh-bar:hover { opacity: 1; }
.qh-bar.qh-pass { background: var(--accent); }
.qh-bar.qh-current { background: var(--accent2); opacity: 1; box-shadow: 0 0 8px -1px var(--accent2); }
.qh-bar.qh-timeout { background: var(--danger); opacity: 0.6; }
.qh-label { font-size: 0.62rem; color: var(--muted); font-family: var(--font-mono); margin-top: 2px; }
.qh-legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.4em;
}
.qh-leg {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 2px;
}
.qh-leg.qh-pass { background: var(--accent); }
.qh-leg.qh-current { background: var(--accent2); }
.qh-leg.qh-timeout { background: var(--danger); opacity: 0.6; }

/* ---------- BÖLÜM GEZİNME (önceki/sonraki) ---------- */
.section-nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0.8rem;
  margin: 2rem 0 0.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}
.sn-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  font-family: var(--font-sans);
  text-align: left;
}
.sn-btn:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-2px); text-decoration: none; }
.sn-btn:disabled, .sn-btn.sn-disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.sn-btn .sn-dir { font-size: 0.72rem; color: var(--muted); font-family: var(--font-mono); margin-bottom: 0.2em; }
.sn-btn .sn-title { font-weight: 600; color: var(--text-strong); }
.sn-btn.sn-next { text-align: right; }

/* ---------- QUIZ ZAYIF KONU KARTLARI ---------- */
.quiz-weak-topics { margin-top: 1em; }
.weak-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.8rem;
  margin: 0.6em 0;
}
.weak-topic-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  transition: border-color var(--transition), transform var(--transition);
}
.weak-topic-card:hover { transform: translateY(-2px); }
.weak-topic-card.wt-critical { border-left-color: var(--danger); }
.weak-topic-card.wt-warn { border-left-color: var(--warning); }
.weak-topic-card.wt-ok { border-left-color: var(--accent); }
.wt-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-mono);
}
.wt-critical .wt-icon { background: var(--danger-soft); color: var(--danger); }
.wt-warn .wt-icon { background: var(--warning-soft); color: var(--warning); }
.wt-ok .wt-icon { background: var(--accent-soft); color: var(--accent); }
.wt-body { flex: 1; min-width: 0; }
.wt-name { font-weight: 600; color: var(--text-strong); font-size: 0.92rem; }
.wt-stat { font-size: 0.78rem; color: var(--muted); margin-top: 0.2em; }
.wt-bar-wrap {
  height: 4px;
  background: var(--border-soft);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.4em;
}
.wt-bar { height: 100%; border-radius: 2px; transition: width 400ms ease; }
.wt-bar-critical { background: var(--danger); }
.wt-bar-warn { background: var(--warning); }
.wt-bar-ok { background: var(--accent); }

/* ---------- QUIZ GÖZDEN GEÇİR ---------- */
.quiz-review-list { margin: 1em 0; display: flex; flex-direction: column; gap: 0.8rem; }
.quiz-review-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.quiz-review-item.correct { border-left-color: var(--accent); }
.quiz-review-item.wrong { border-left-color: var(--danger); }
.quiz-review-item .qr-q { font-weight: 600; color: var(--text-strong); margin-bottom: 0.5em; }
.quiz-review-item .qr-opt { display: block; padding: 0.4rem 0.6rem; margin: 0.3rem 0; border-radius: var(--radius-sm); border: 1px solid var(--border-soft); font-size: 0.88rem; }
.quiz-review-item .qr-opt.is-correct { background: var(--accent-soft); border-color: var(--accent); color: var(--text-strong); }
.quiz-review-item .qr-opt.is-chosen-wrong { background: var(--danger-soft); border-color: var(--danger); color: var(--text-strong); }
.quiz-review-item .qr-exp { margin-top: 0.5em; font-size: 0.85rem; color: var(--muted); }

/* ---------- KISAYOL YARDIM ---------- */
.shortcuts-overlay { align-items: center; padding-top: 0; }
.shortcuts-dialog { max-width: 520px; width: 92vw; }
.shortcut-list { list-style: none; margin: 0; padding: 0.6rem 0.2rem; }
.shortcut-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.9rem;
}
.shortcut-list li:last-child { border-bottom: none; }
.shortcut-list li span { color: var(--muted); margin-left: auto; text-align: right; }
kbd {
  display: inline-block;
  min-width: 22px;
  padding: 0.1em 0.45em;
  background: var(--code-bg);
  color: var(--accent);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.4;
}

/* ---------- KOD DİL ETİKETİ ---------- */
.code-block .code-lang {
  margin-left: auto;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent2);
  background: var(--accent-soft);
  padding: 0.1em 0.5em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ---------- İLERİLEMİŞ KOPYALA GERİ BİLDİRİMİ ---------- */
.copy-btn .copy-icon { display: inline-flex; align-items: center; gap: 0.3rem; }

/* ---------- İLERLEME PANELİ ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
  margin: 1em 0;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.stat-card .stat-value { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.stat-card .stat-label { font-size: 0.78rem; color: var(--muted); margin-top: 0.2em; }
.stat-card .stat-icon { font-size: 1rem; color: var(--accent2); margin-bottom: 0.3em; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #04130d;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  z-index: 1800;
  animation: toastIn 200ms ease;
}
.toast[hidden] { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 1.4rem 1rem;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-inner p { margin: 0.3em 0; }
.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.5em;
  font-size: 0.78rem;
}
.footer-version {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.1em 0.6em;
  font-family: var(--font-mono);
  font-weight: 600;
}
.footer-updated, .footer-cmd-count {
  color: var(--muted);
  font-family: var(--font-mono);
}
.footer-inner .brand-mark { font-size: 0.9rem; }

/* ---------- Özel kaydırma çubuğu (uzun listeler) ---------- */
.practice-list::-webkit-scrollbar,
.palette-results::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.code-block pre::-webkit-scrollbar,
.cmd-ex::-webkit-scrollbar,
.tool-code::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cmd-container { grid-template-columns: 1fr; }
  .glossary-container { grid-template-columns: 1fr; }
  .osi-explorer { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 54px; }
  .menu-toggle { display: inline-flex; }
  .sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    z-index: 999;
    width: 80%;
    max-width: 300px;
    transform: translateX(-100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }
  .layout { flex-direction: column; align-items: stretch; }
  .content { padding: 1rem 0.9rem 2.5rem; width: 100%; overflow-x: hidden; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .search-kbd { display: none; }
  .handshake-stage { flex-direction: column; gap: 0.6rem; }
  .hs-line { width: 100%; height: 3px; }
  .hs-line::after, .hs-line.dir-reverse::after { display: none; }
  .roadmap-week { grid-template-columns: 1fr; }
  .toc-rail { display: none; }
  .content-with-toc { display: block; }
  .status-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
  .quiz-timer-row .quiz-share-btn { margin-left: 0; }
}

@media (max-width: 420px) {
  .content { padding: 0.8rem 0.7rem 2rem; }
  body { font-size: 15px; }
  .brand-text { display: none; }
  .header-inner { padding: 0 0.6rem; }
}

/* ---------- Hareket azaltma tercihi ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
html.reduce-motion .brand-mark::after { animation: none; opacity: 1; }

/* ---------- HERO & Görsel cilalama ---------- */
.section > h1 {
  position: relative;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.8em;
}
.section > h1::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
}
.tagline {
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  border-left: 3px solid var(--accent);
  padding: 0.4em 0.8em;
  border-radius: var(--radius-sm);
  display: inline-block;
}
#anasayfa .lead {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent2);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
}
.quick-card {
  position: relative;
  overflow: hidden;
}
.quick-card::before {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  transition: left 600ms ease;
  pointer-events: none;
}
.quick-card:hover::before { left: 120%; }
.card {
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 2px; height: 0;
  background: var(--accent);
  transition: height 300ms ease;
}
.card:hover::after { height: 100%; }
.brand-mark {
  position: relative;
}
.brand-mark::after {
  content: "";
  display: inline-block;
  width: 6px; height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- TERMİNAL SİMÜLATÖRÜ ---------- */
.terminal {
  background: #050a0f;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  margin: 1em 0;
}
.terminal-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #0a1219;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.8rem;
}
.term-dot {
  width: 12px; height: 12px; border-radius: 50%;
  display: inline-block;
}
.term-red { background: #ff5f56; }
.term-yellow { background: #ffbd2e; }
.term-green { background: #27c93f; }
.term-title {
  margin-left: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.terminal-body {
  padding: 0.8rem 1rem;
  height: 320px;
  overflow-y: auto;
  font-size: 0.85rem;
  color: #c8d3dc;
  line-height: 1.55;
}
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-line.term-cmd-in { color: var(--accent); }
.term-line.term-err { color: var(--danger); }
.term-line.term-ok { color: var(--accent2); }
.term-cmd { color: var(--accent); }
.term-prompt-text { color: var(--accent2); }
.term-path { color: var(--accent); }
.terminal-input-row {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  background: #050a0f;
  padding: 0.5rem 1rem;
}
.term-prompt {
  color: var(--accent2);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-right: 0.5rem;
  white-space: nowrap;
}
.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  caret-color: var(--accent);
}
.terminal-input::placeholder { color: var(--muted); opacity: 0.6; }

/* ---------- ALT AĞ HESAPLAYICI ---------- */
.subnet-calc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1em 0;
}
.subnet-form {
  display: flex;
  align-items: end;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.subnet-label {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.2em;
  font-family: var(--font-mono);
}
.subnet-form .filter-input { flex: 1 1 180px; }
.subnet-result {
  margin-top: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.subnet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}
.subnet-cell {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
}
.subnet-cell .sc-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.subnet-cell .sc-value { color: var(--accent); font-weight: 600; word-break: break-all; }
.subnet-result.error { border-color: var(--danger); color: var(--danger); }

/* ---------- FLASHCARD ---------- */
.flashcard-area { margin-top: 1.5rem; }
.flashcard-stage {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
  perspective: 1000px;
}
.flashcard-card {
  width: min(480px, 92vw);
  height: 220px;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 500ms ease;
}
.flashcard-card.flipped { transform: rotateY(180deg); }
.fc-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 2px solid var(--accent);
}
.fc-front {
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
  color: var(--text-strong);
}
.fc-front .fc-term {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 700;
}
.fc-front .fc-hint { font-size: 0.75rem; color: var(--muted); margin-top: 0.8em; }
.fc-back {
  background: linear-gradient(145deg, var(--accent-soft), var(--surface-2));
  transform: rotateY(180deg);
  color: var(--text);
  font-size: 0.95rem;
}
.flashcard-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
#fc-counter { font-family: var(--font-mono); min-width: 60px; text-align: center; }

/* ---------- DROPDOWN PANELLERİ ---------- */
.dropdown-panel {
  position: fixed;
  top: calc(var(--header-h) + 6px);
  right: 0.8rem;
  z-index: 1100;
  width: min(320px, 92vw);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: panelIn 160ms ease;
}
.dropdown-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.dropdown-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.4rem;
}
.dropdown-close:hover { color: var(--danger); }
.bookmarks-list { max-height: 60vh; overflow-y: auto; padding: 0.5rem; }
.bookmark-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.bookmark-item:hover { background: var(--surface-2); border-color: var(--border); }
.bookmark-item .bm-link { flex: 1; color: var(--text); cursor: pointer; }
.bookmark-item .bm-link:hover { color: var(--accent); text-decoration: none; }
.bookmark-item .bm-remove {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 0.3rem;
}
.bookmark-item .bm-remove:hover { color: var(--danger); }

/* ---------- A11Y PANEL ---------- */
.a11y-body { padding: 0.8rem 0.9rem; display: flex; flex-direction: column; gap: 0.9rem; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.a11y-label { font-size: 0.88rem; color: var(--text); }
.a11y-value { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); min-width: 44px; text-align: center; }
.a11y-font-controls { display: flex; align-items: center; gap: 0.4rem; }
.a11y-theme-options { display: flex; gap: 0.3rem; }
.theme-opt.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* Açma-kapama anahtarı (switch) */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 24px;
  transition: background var(--transition);
}
.switch-slider::before {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: var(--text);
  border-radius: 50%;
  transition: transform var(--transition);
}
.switch input:checked + .switch-slider { background: var(--accent); }
.switch input:checked + .switch-slider::before { transform: translateX(18px); background: #04130d; }

/* ---------- Bölüm yer imi düğmesi (sağ alt) ---------- */
.section-bookmark {
  position: fixed;
  bottom: 4.6rem;
  right: 1.2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 900;
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}
.section-bookmark:hover { transform: translateY(-2px); color: var(--accent); border-color: var(--accent); }
.section-bookmark.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.section-bookmark[hidden] { display: none; }

/* ---------- ÇEREZ AKIŞ GÖRSELLEŞTİRME ---------- */
.cookie-flow {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem;
  margin: 1em 0;
}
.cookie-flow-stage {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 130px;
  margin-bottom: 1rem;
}
.cf-node {
  flex: 0 0 140px;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cf-node.active { border-color: var(--accent); box-shadow: 0 0 16px -2px var(--accent); }
.cf-node-title { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-strong); margin-bottom: 0.5em; font-weight: 600; }
.cf-cookie-jar {
  background: var(--code-bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.cf-cookie {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0.15em 0.5em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  white-space: nowrap;
  animation: cookiePop 280ms ease;
}
@keyframes cookiePop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cf-cookie-empty { font-size: 0.78rem; color: var(--muted); font-style: italic; }
.cf-server-state { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); padding: 0.5rem 0; }
.cf-arrow-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.cf-arrow {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
  transition: background var(--transition);
}
.cf-arrow.active { background: var(--accent); }
.cf-arrow.active::after { border-left-color: var(--accent); }
.cf-arrow::after {
  content: ""; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: var(--border);
}
.cf-arrow.reverse::after { right: auto; left: -1px; border-left-color: transparent; border-right-color: var(--border); }
.cf-arrow.active.reverse::after { border-right-color: var(--accent); }
.cf-arrow-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.4rem;
  text-align: center;
  min-height: 1.2em;
}
.cookie-flow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.cookie-flow-detail {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
}
.cookie-flow-detail code { font-size: 0.82rem; }
@media (max-width: 560px) {
  .cookie-flow-stage { flex-direction: column; }
  .cf-node { flex: 0 0 auto; width: 80%; }
  .cf-arrow { width: 3px; height: 30px; }
  .cf-arrow::after { right: 50%; top: auto; bottom: -1px; transform: translateX(50%); border: 6px solid transparent; border-top-color: var(--border); border-left-color: transparent; }
  .cf-arrow.active::after { border-top-color: var(--accent); }
}

/* ---------- HTTP DURUM KODU GEZGİNİ ---------- */
.status-explorer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1em 0;
}
.status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.status-filter {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition);
}
.status-filter:hover { color: var(--text-strong); border-color: var(--accent); }
.status-filter.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 600; }
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.status-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}
.status-chip:hover { transform: translateY(-2px); border-left-color: var(--accent); box-shadow: 0 4px 12px -4px var(--accent); }
.status-chip.active { border-left-color: var(--accent); background: var(--accent-soft); }
.status-chip .sc-code { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; color: var(--text-strong); }
.status-chip .sc-name { font-size: 0.7rem; color: var(--muted); margin-top: 0.1em; }
.status-chip.fam-1xx { border-left-color: var(--accent2); }
.status-chip.fam-2xx { border-left-color: var(--accent); }
.status-chip.fam-3xx { border-left-color: var(--warning); }
.status-chip.fam-4xx { border-left-color: var(--danger); }
.status-chip.fam-5xx { border-left-color: var(--danger); }
.status-detail {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  min-height: 60px;
}
.status-detail .sd-head { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.status-detail .sd-name { color: var(--text-strong); font-weight: 600; margin-left: 0.6em; }

/* ---------- OKUMA SÜRESİ ROZETİ ---------- */
.readtime-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  margin-left: 0.6em;
  vertical-align: middle;
}

/* ---------- QUIZ SÜRE SAYACI ---------- */
.quiz-timer-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.5em 0 1em;
  flex-wrap: wrap;
}
.quiz-timer-toggle { font-size: 0.8rem; }
.quiz-timer-display {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.7rem;
  font-size: 0.9rem;
  min-width: 70px;
  text-align: center;
}
.quiz-timer-display.warn { color: var(--warning); border-color: var(--warning); }
.quiz-timer-display.alarm { color: var(--danger); border-color: var(--danger); animation: pulse 1s ease infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }
.quiz-share-btn { margin-left: auto; }

/* ---------- TABLO ZEBRA ---------- */
.data-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.015); }
[data-theme="light"] .data-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.018); }

/* ---------- İPUCU (tooltip) ---------- */
.term-tip {
  position: relative;
  border-bottom: 1px dashed var(--accent2);
  cursor: help;
  color: var(--accent2);
  font-weight: 500;
}
.term-tip-en {
  font-size: 0.78em;
  color: var(--muted);
  font-weight: 400;
  font-style: italic;
}
.term-tip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.term-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 400;
  white-space: nowrap;
  max-width: 260px;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 50;
}
.term-tip:hover::after, .term-tip:focus::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- KOD BLOĞU SATIR NUMARASI ---------- */
.code-block pre { counter-reset: codeline; }
.code-block pre .code-line {
  counter-increment: codeline;
  display: block;
  position: relative;
  padding-left: 2.6em;
}
.code-block pre .code-line::before {
  content: counter(codeline);
  position: absolute;
  left: 0;
  width: 2em;
  text-align: right;
  color: var(--muted);
  opacity: 0.45;
  font-size: 0.78rem;
  border-right: 1px solid var(--border-soft);
  padding-right: 0.5em;
  margin-right: 0.5em;
  user-select: none;
}

/* ---------- İÇİNDEKİLER (TOC) ---------- */
.toc-rail {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  align-self: start;
  width: 200px;
  flex-shrink: 0;
  max-height: calc(100vh - var(--header-h) - 2rem);
  overflow-y: auto;
  padding: 0.6rem 0.8rem;
  border-left: 1px solid var(--border);
}
.toc-rail h4 {
  margin: 0 0 0.5em;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-family: var(--font-mono);
}
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-link {
  display: block;
  padding: 0.3rem 0.5rem;
  border-left: 2px solid transparent;
  font-size: 0.82rem;
  color: var(--muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.3;
}
.toc-link:hover { color: var(--text); background: var(--surface); }
.toc-link.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.toc-top {
  display: block;
  margin-top: 0.8rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
  cursor: pointer;
  transition: color var(--transition);
  font-family: var(--font-mono);
}
.toc-top:hover { color: var(--accent); }

/* Port/komut arama highlight */
.port-row.highlight, .cmd-item.highlight {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  background: var(--accent-soft) !important;
  border-radius: var(--radius-sm);
  animation: gPulse 500ms ease;
}
.content-with-toc { display: flex; gap: 1.5rem; align-items: flex-start; }
.content-with-toc .section { flex: 1; min-width: 0; }

/* ---------- CONFETTI (bölüm tamamlama) ---------- */
.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -20px;
  border-radius: 2px;
  animation: confettiFall 2s ease-in forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0.2; }
}
html.reduce-motion .confetti-layer { display: none; }

/* ---------- TEMA GEÇİŞ ANİMASYONU ---------- */
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color 320ms ease, color 320ms ease, border-color 320ms ease, fill 320ms ease !important;
}

/* ---------- TABLO SATIR HOVER ---------- */
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: var(--accent-soft) !important; }
.data-table tbody tr:hover td { color: var(--text-strong); }

/* ---------- GÖZLÜK HIGHLIGHT (arama) ---------- */
.glossary-item.g-highlight {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px var(--accent-soft), 0 0 16px -2px var(--accent);
  animation: gPulse 600ms ease;
}
@keyframes gPulse {
  0% { transform: scale(0.98); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* ---------- QUIZ SÜRE DOLDU ROZETİ ---------- */
.quiz-timeout-badge {
  display: inline-block;
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: 999px;
  padding: 0.1em 0.6em;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-sans);
  margin-left: 0.5em;
  vertical-align: middle;
}

/* ---------- BÖLÜM TAMAMLAMA ROZETİ ---------- */
.completion-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  margin-left: 0.6em;
  vertical-align: middle;
}
.completion-badge.locked {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--border);
}

/* ---------- Yer imi rozeti ---------- */
.bm-count {
  background: var(--accent);
  color: #04130d;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0 0.35em;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
}
.bm-count[hidden] { display: none; }

/* ---------- Yazdırma ---------- */
@media print {
  :root { --bg: #fff; --text: #000; --surface: #fff; --border: #ccc; --muted: #444; --accent: #000; --accent2: #000; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.5; }
  .site-header, .sidebar, .back-to-top, .progress-bar, .filter-bar,
  .copy-btn, .handshake-controls, .quiz-actions, .practice-box,
  #palette-overlay, #shortcuts-overlay, .toast, .menu-toggle, .header-actions,
  .section-bookmark, .dropdown-panel, .flashcard-controls, .flashcard-area,
  .terminal-input-row, .subnet-form, .toc-rail, .status-explorer,
  .status-filters, .status-grid, .cookie-flow-controls, .cookie-flow-stage,
  .quiz-timer-row, .practice-list, .nav-completion, .readtime-badge,
  .term-tip, .term-tip-en, .quiz-share-btn, .quiz-review-btn { display: none !important; }
  .layout { display: block; }
  .content { padding: 0; max-width: 100%; }
  .section[hidden] { display: block !important; }
  .section { page-break-after: always; padding: 0 0.5cm 1cm; }
  .section > h1 { font-size: 18pt; border-bottom: 2px solid #000; padding-bottom: 4pt; margin-top: 0; }
  .section > h1::after { display: none; }
  .section h2 { font-size: 14pt; page-break-after: avoid; margin-top: 1.2em; }
  .section h3 { font-size: 12pt; page-break-after: avoid; }
  .card, .callout, .tool-card, .cmd-group, .code-block, .table-wrap {
    border: 1px solid #999; box-shadow: none; break-inside: avoid;
  }
  .callout { background: #f8f8f8 !important; border-left: 3px solid #000; }
  .code-block { background: #f4f4f4 !important; }
  .code-block pre { white-space: pre-wrap; word-break: break-word; }
  .data-table { font-size: 9pt; }
  .data-table tbody tr:nth-child(even) { background: transparent; }
  a { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #444; }
  a[href^="#"]::after { content: ""; }
  code { color: #000; background: #f2f2f2; border: 1px solid #ddd; }
  pre { border: 1px solid #ccc !important; }
  h1, h2, h3 { color: #000; }
  .terminal-body { background: #fff !important; color: #000; border: 1px solid #ccc; max-height: 300px; }
  .subnet-result { background: #fff !important; border: 1px solid #ccc; }
  /* yazdırma başlığı */
  .print-header { display: block !important; text-align: center; font-size: 9pt; color: #666; border-bottom: 1px solid #ccc; padding-bottom: 4pt; margin-bottom: 8pt; }
}
.print-header { display: none; }
