/* =====================================================================
   dnssorgulama.com — Tasarım Sistemi
   Koyu, teknik, veri odaklı. Kart yığını değil; ince çizgiler, tipografik
   hiyerarşi ve tek renk vurgular üzerine kurulu.
   ===================================================================== */

/* ---------------------------------------------------------------- 1. Token */
:root {
  /* Zemin katmanları — hepsi lacivert-siyah ailesinden, mavi tonlu */
  --bg-0: #05070d;
  --bg-1: #080b14;
  --bg-2: #0b101c;
  --bg-3: #0f1526;
  --bg-4: #141c31;

  /* Çizgiler */
  --line: #1a2338;
  --line-soft: #141b2c;
  --line-strong: #26314c;

  /* Metin */
  --ink: #e8eefb;
  --ink-2: #b3c0d9;
  --ink-3: #7d8aa6;
  --ink-4: #566179;

  /* Vurgular */
  --blue: #4b8cff;
  --blue-dim: #2f5fb8;
  --cyan: #26d5ea;
  --violet: #a78bfa;
  --emerald: #3ddc97;
  --amber: #f5b53d;
  --orange: #ff9d४2;
  --orange: #fb923c;
  --red: #ff5f6d;
  --slate: #7d8aa6;

  /* Yarı saydam vurgular */
  --blue-a: rgba(75, 140, 255, .14);
  --cyan-a: rgba(38, 213, 234, .13);
  --violet-a: rgba(167, 139, 250, .13);
  --emerald-a: rgba(61, 220, 151, .13);
  --amber-a: rgba(245, 181, 61, .13);
  --orange-a: rgba(251, 146, 60, .13);
  --red-a: rgba(255, 95, 109, .13);
  --slate-a: rgba(125, 138, 166, .12);

  /* Tipografi */
  --font: "Inter var", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono",
          Menlo, Consolas, "Liberation Mono", monospace;

  /* Ölçüler */
  --shell: 1280px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --speed: .22s;
}

/* ---------------------------------------------------------------- 2. Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--line-strong) var(--bg-1);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "cv02", "cv03", "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Sayfanın üstünde ince, hareketsiz bir ışık alanı — gradient duvarı değil */
body::before {
  content: "";
  position: fixed;
  inset: -30vh 0 auto 0;
  height: 70vh;
  background:
    radial-gradient(60% 60% at 20% 30%, rgba(75, 140, 255, .10), transparent 70%),
    radial-gradient(45% 55% at 78% 12%, rgba(167, 139, 250, .07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
code, kbd, samp { font-family: var(--mono); font-size: .92em; }

::selection { background: rgba(75, 140, 255, .3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px; top: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  clip-path: inset(50%);
}
.skip:focus { clip-path: none; }

/* ------------------------------------------------------------- 3. Yerleşim */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
}
@media (max-width: 640px) { .shell { padding-inline: 16px; } }

.section { padding-block: 72px; }
.section--tight { padding-block: 44px; }
.section--flush { padding-block: 0 72px; }
@media (max-width: 860px) { .section { padding-block: 48px; } }

.rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 32px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-sidebar { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-sidebar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 780px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.flex-wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ----------------------------------------------------------- 4. Tipografi */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--blue);
}

.display {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  font-weight: 620;
  letter-spacing: -.035em;
  line-height: 1.04;
}
.h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.03em; }
.h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); letter-spacing: -.025em; }
.h3 { font-size: 1.18rem; }
.h4 { font-size: 1rem; }

.lead { font-size: 1.06rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-4); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: var(--mono); font-variant-ligatures: none; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break { word-break: break-all; overflow-wrap: anywhere; }

.tone-blue { color: var(--blue); }
.tone-cyan { color: var(--cyan); }
.tone-violet { color: var(--violet); }
.tone-emerald { color: var(--emerald); }
.tone-amber { color: var(--amber); }
.tone-orange { color: var(--orange); }
.tone-red { color: var(--red); }
.tone-slate { color: var(--slate); }

/* ---------------------------------------------------------------- 5. İkon */
.icon { flex: none; vertical-align: -.15em; }

/* --------------------------------------------------------------- 6. Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 7, 13, .82);
}
/* backdrop-filter yalnızca pseudo katmanda: sabit konumlu mobil menü
   header'a göre konumlanmasın diye (containing block tuzağı). */
.nav::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  z-index: -1;
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 62px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.02em; }
.brand__mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--blue), var(--violet));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(75,140,255,.35), 0 6px 18px -8px rgba(75,140,255,.8);
}
.brand__text { font-size: 15px; }
.brand__text b { font-weight: 640; }
.brand__text span { color: var(--ink-4); font-weight: 450; }

.nav__menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-2);
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav__link:hover { color: var(--ink); background: var(--bg-2); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px 2px 0 0;
}

/* Mega menü */
.nav__item { position: relative; }
.nav__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  width: min(680px, 88vw);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255,255,255,.02);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease), visibility var(--speed);
}
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.nav__panel-link {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 9px;
  align-items: start;
  transition: background var(--speed) var(--ease);
}
.nav__panel-link:hover { background: var(--bg-3); }
.nav__panel-link i { color: var(--blue); display: grid; place-items: center; padding-top: 2px; }
.nav__panel-link b { display: block; font-size: 13.5px; font-weight: 550; }
.nav__panel-link span { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.4; }

.nav__toggle { display: none; padding: 8px; border-radius: 8px; color: var(--ink-2); }
.nav__toggle:hover { background: var(--bg-2); }

@media (max-width: 1000px) {
  .nav__toggle { display: inline-flex; margin-left: auto; }
  .nav__menu {
    position: fixed;
    inset: 62px 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-1);
    border-top: 1px solid var(--line);
    padding: 16px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .28s var(--ease);
    margin-left: 0;
  }
  .nav__menu[data-open="true"] { transform: translateX(0); }
  .nav__link { padding: 14px 8px; font-size: 15px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav__panel {
    position: static; width: auto; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; padding: 0 0 12px 8px;
    display: none;
  }
  .nav__item[data-open="true"] .nav__panel { display: block; }
  .nav__panel-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------ 7. Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-3);
  color: var(--ink);
  font-size: 14px;
  font-weight: 520;
  letter-spacing: -.01em;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease),
              transform var(--speed) var(--ease), color var(--speed) var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--bg-4); border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.btn--primary {
  background: linear-gradient(180deg, #5a97ff, #3b78ee);
  border-color: #5a97ff;
  color: #04101f;
  font-weight: 600;
  box-shadow: 0 10px 26px -14px rgba(75, 140, 255, .95);
}
.btn--primary:hover { background: linear-gradient(180deg, #6ea4ff, #4682f5); }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn--ghost:hover { color: var(--ink); border-color: var(--line-strong); background: var(--bg-2); }

.btn--danger { border-color: rgba(255,95,109,.4); color: var(--red); background: var(--red-a); }
.btn--danger:hover { background: rgba(255,95,109,.2); }

.btn--sm { padding: 6px 12px; font-size: 13px; }
.btn--lg { padding: 14px 26px; font-size: 15px; }
.btn--block { width: 100%; }

.link {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(75,140,255,.32);
  transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.link:hover { border-color: var(--blue); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; }
.link-arrow .icon { transition: transform var(--speed) var(--ease); }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* -------------------------------------------------------------- 8. Konsol */
.console {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 28, 49, .8), rgba(11, 16, 28, .9));
  padding: 6px;
  display: flex;
  gap: 6px;
  align-items: center;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.console::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  padding: 1px;
  background: linear-gradient(120deg, rgba(75,140,255,.5), rgba(167,139,250,.35), rgba(38,213,234,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
  pointer-events: none;
}
.console:focus-within { border-color: transparent; box-shadow: 0 24px 60px -32px rgba(75,140,255,.7); }
.console:focus-within::before { opacity: 1; }

.console__prefix {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  color: var(--ink-3);
  flex: none;
}
.console__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.console__input::placeholder { color: var(--ink-4); }
.console__input:focus { outline: none; }
.console__btn {
  height: 46px;
  padding-inline: 22px;
  border-radius: 9px;
  flex: none;
}
@media (max-width: 560px) {
  .console { flex-wrap: wrap; }
  .console__input { width: 100%; flex-basis: 100%; order: 1; }
  .console__prefix { order: 0; }
  .console__btn { order: 2; width: 100%; margin-top: 4px; }
}

.console-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.console-hints .tiny { color: var(--ink-4); }
.chip {
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  color: var(--ink-3);
  background: var(--bg-2);
  transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }

/* ------------------------------------------------------------ 9. Paneller */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-1);
  overflow: hidden;
}
.panel--flat { background: transparent; }
.panel--raised { background: var(--bg-2); }

.panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255,255,255,.022), transparent);
}
.panel__head h3, .panel__head h2 { font-size: 14.5px; font-weight: 580; letter-spacing: -.01em; }
.panel__head .icon { color: var(--ink-3); }
.panel__meta { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); display: flex; gap: 10px; align-items: center; }
.panel__body { padding: 18px; }
.panel__body--flush { padding: 0; }
.panel__foot { padding: 12px 18px; border-top: 1px solid var(--line-soft); background: rgba(255,255,255,.012); }

/* Numaralı bölüm başlığı — kart yerine tipografik ayrım */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head__text { max-width: 62ch; }
.section-head h2 { margin-bottom: 8px; }

/* -------------------------------------------------------------- 10. Rozet */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 550;
  letter-spacing: .01em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge--blue { background: var(--blue-a); color: var(--blue); border-color: rgba(75,140,255,.28); }
.badge--cyan { background: var(--cyan-a); color: var(--cyan); border-color: rgba(38,213,234,.28); }
.badge--violet { background: var(--violet-a); color: var(--violet); border-color: rgba(167,139,250,.28); }
.badge--emerald { background: var(--emerald-a); color: var(--emerald); border-color: rgba(61,220,151,.28); }
.badge--amber { background: var(--amber-a); color: var(--amber); border-color: rgba(245,181,61,.28); }
.badge--orange { background: var(--orange-a); color: var(--orange); border-color: rgba(251,146,60,.28); }
.badge--red { background: var(--red-a); color: var(--red); border-color: rgba(255,95,109,.3); }
.badge--slate { background: var(--slate-a); color: var(--ink-3); border-color: var(--line); }

.badge--mono { font-family: var(--mono); font-size: 11px; }

/* Durum noktası */
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--slate); }
.dot--ok { background: var(--emerald); }
.dot--warn { background: var(--amber); }
.dot--bad { background: var(--red); }
.dot--live { background: var(--blue); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(75,140,255,.55); }
  60% { box-shadow: 0 0 0 7px rgba(75,140,255,0); }
}

.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }

/* -------------------------------------------------------- 11. Anahtar-değer */
.kv { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 2px 20px; }
.kv > dt {
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.kv > dd {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.kv > dt:last-of-type, .kv > dd:last-of-type { border-bottom: 0; }
@media (max-width: 620px) {
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kv > dt { padding-bottom: 0; border-bottom: 0; }
  .kv > dd { padding-top: 2px; }
}

/* -------------------------------------------------------------- 12. Tablo */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { font-size: 13.5px; }
.table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--bg-2);
  position: sticky;
  top: 0;
}
.table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--speed) var(--ease); }
.table tbody tr:hover { background: rgba(75, 140, 255, .045); }
.table td.mono, .table td .mono { font-size: 12.5px; }
.table .col-tight { width: 1%; white-space: nowrap; }

/* Mobilde kart görünümü */
@media (max-width: 720px) {
  .table--cards thead { display: none; }
  .table--cards tr { display: block; border-bottom: 1px solid var(--line); padding: 12px 4px; }
  .table--cards td { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 12px; padding: 5px 12px; border: 0; }
  .table--cards td::before {
    content: attr(data-label);
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .09em;
    text-transform: uppercase; color: var(--ink-4); padding-top: 2px;
  }
}

/* ----------------------------------------------------------- 13. Skor kadranı */
.score {
  display: flex;
  align-items: center;
  gap: 24px;
}
.score__dial { position: relative; width: 132px; height: 132px; flex: none; }
.score__dial svg { transform: rotate(-90deg); }
.score__track { stroke: var(--line); }
.score__arc {
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.score__value {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center;
}
.score__value b { font-size: 34px; font-weight: 640; letter-spacing: -.04em; line-height: 1; }
.score__value span { font-size: 11px; color: var(--ink-4); font-family: var(--mono); letter-spacing: .08em; }
.score__label { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }

/* Kategori barları */
.bars { display: grid; gap: 12px; }
.bar__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; margin-bottom: 6px; }
.bar__head b { font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.bar__head b:not([class]) { color: var(--ink-2); }
.bar__track { height: 5px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
/* span olarak kullanıldığı için display:block şart — aksi halde genişlik uygulanmaz */
.bar__fill { display: block; height: 100%; border-radius: 3px; width: 0; transition: width .9s var(--ease); }
.bar--dim .bar__fill { background: var(--line-strong); }

/* ----------------------------------------------------------- 14. Bulgular */
.findings { display: grid; gap: 10px; }
.finding {
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  background: var(--bg-1);
  overflow: hidden;
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.finding:hover { background: var(--bg-2); }
.finding[data-sev="CRITICAL"] { border-left-color: var(--red); }
.finding[data-sev="HIGH"] { border-left-color: var(--orange); }
.finding[data-sev="MEDIUM"] { border-left-color: var(--amber); }
.finding[data-sev="LOW"] { border-left-color: var(--cyan); }
.finding[data-sev="INFO"] { border-left-color: var(--slate); }
.finding[data-positive="1"] { border-left-color: var(--emerald); }

.finding__head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  text-align: left;
}
.finding__title { font-size: 14px; font-weight: 540; letter-spacing: -.01em; flex: 1 1 auto; min-width: 0; }
.finding__chev { color: var(--ink-4); transition: transform var(--speed) var(--ease); flex: none; }
.finding[data-open="true"] .finding__chev { transform: rotate(180deg); }

.finding__body { display: none; padding: 0 16px 16px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.finding[data-open="true"] .finding__body { display: block; }

.finding__block { margin-bottom: 14px; }
.finding__block:last-child { margin-bottom: 0; }
.finding__block h5 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 5px;
  font-weight: 500;
}
.finding__block p { font-size: 13.5px; color: var(--ink-2); }

/* ---------------------------------------------------------- 15. Kod bloğu */
.code {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  overflow-x: auto;
  color: var(--ink-2);
  position: relative;
  white-space: pre-wrap;
  word-break: break-all;
}
.code--inline { display: inline-block; padding: 2px 7px; white-space: nowrap; word-break: normal; }
.copy {
  position: absolute; top: 8px; right: 8px;
  padding: 5px 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-3);
  font-size: 11px;
  opacity: 0;
  transition: opacity var(--speed) var(--ease), color var(--speed) var(--ease);
}
.code:hover .copy, .copy:focus { opacity: 1; }
.copy:hover { color: var(--ink); }

/* --------------------------------------------------------- 16. DNS zinciri */
.chain { position: relative; padding-left: 30px; }
.chain::before {
  content: "";
  position: absolute;
  left: 9px; top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--blue), var(--violet), var(--cyan));
  opacity: .45;
}
.hop { position: relative; padding: 0 0 22px; }
.hop:last-child { padding-bottom: 0; }
.hop::before {
  content: "";
  position: absolute;
  left: -25px; top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--blue);
}
.hop[data-level="ANSWER"]::before { border-color: var(--emerald); background: var(--emerald); }
.hop__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hop__level {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-4);
}
.hop__label { font-size: 14px; font-weight: 540; }
.hop__time { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--cyan); }
.hop__detail { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.hop__answers { margin-top: 8px; display: grid; gap: 4px; }

/* ------------------------------------------------------ 17. Yayılım ızgarası */
.nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.node { background: var(--bg-1); padding: 13px 15px; display: flex; gap: 12px; align-items: flex-start; transition: background var(--speed) var(--ease); }
.node:hover { background: var(--bg-2); }
.node__flag {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .04em;
  padding: 3px 6px; border-radius: 4px;
  background: var(--bg-3); color: var(--ink-2); border: 1px solid var(--line);
  flex: none;
}
.node__body { min-width: 0; flex: 1 1 auto; }
.node__name { font-size: 13px; font-weight: 520; display: flex; align-items: center; gap: 7px; }
.node__value { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-top: 3px; overflow-wrap: anywhere; }
.node[data-status="error"] .node__value { color: var(--ink-4); }

/* --------------------------------------------------------- 18. Altyapı haritası */
.infra { display: grid; gap: 14px; }
/* Dar kenar çubuğunda da okunabilmesi için etiket düğümün üstünde durur;
   iki sütunlu düzende değerler aşırı kısalıyordu. */
.infra__row { display: grid; gap: 5px; }
.infra__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-4);
}
.infra__node {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 13px;
  background: var(--bg-2);
  display: flex; align-items: center; gap: 9px;
  position: relative;
  min-width: 0;
}
.infra__node b { font-size: 13px; font-weight: 540; min-width: 0; }
.infra__node span {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  margin-left: auto; flex: none; max-width: 45%;
}
.infra__row + .infra__row .infra__node::before {
  content: "";
  position: absolute;
  left: 22px; top: -15px;
  width: 1px; height: 14px;
  background: var(--line-strong);
}

/* ------------------------------------------------------------ 19. Sekmeler */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 26px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  padding: 11px 15px;
  font-size: 13.5px;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color var(--speed) var(--ease);
  display: inline-flex; align-items: center; gap: 7px;
}
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after {
  content: "";
  position: absolute; left: 10px; right: 10px; bottom: -1px;
  height: 2px; background: var(--blue); border-radius: 2px 2px 0 0;
}
.tab__count {
  font-family: var(--mono); font-size: 10.5px;
  padding: 1px 6px; border-radius: 10px;
  background: var(--bg-3); color: var(--ink-3);
}
.tab-panel[hidden] { display: none; }

/* ---------------------------------------------------------- 20. İlerleme */
.stream { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stream__row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  background: var(--bg-1);
  font-size: 13.5px;
}
.stream__row[data-state="pending"] { color: var(--ink-4); }
.stream__row[data-state="running"] { color: var(--ink); background: var(--bg-2); }
.stream__row[data-state="done"] { color: var(--ink-2); }
.stream__row[data-state="failed"] { color: var(--ink-2); }
.stream__time { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); }

.spinner {
  width: 13px; height: 13px; flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  border-top-color: var(--blue);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* İskelet */
.skeleton {
  border-radius: 5px;
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  height: 12px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton + .skeleton { margin-top: 9px; }
.skeleton--title { height: 18px; width: 44%; }
.skeleton--wide { width: 100%; }
.skeleton--half { width: 58%; }

/* ------------------------------------------------------------ 21. Formlar */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-4); }
.input, .select, .textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--ink);
  font-size: 14px;
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--bg-3);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.textarea { min-height: 110px; resize: vertical; font-family: var(--mono); font-size: 13px; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237d8aa6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 34px;
}
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.checkbox input { margin-top: 3px; accent-color: var(--blue); width: 15px; height: 15px; }

/* ------------------------------------------------------------ 22. Uyarılar */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 13.5px;
  color: var(--ink-2);
}
.alert .icon { flex: none; margin-top: 2px; }
.alert--info { border-color: rgba(75,140,255,.3); background: var(--blue-a); }
.alert--info .icon { color: var(--blue); }
.alert--warn { border-color: rgba(245,181,61,.3); background: var(--amber-a); }
.alert--warn .icon { color: var(--amber); }
.alert--error { border-color: rgba(255,95,109,.32); background: var(--red-a); }
.alert--error .icon { color: var(--red); }
.alert--success { border-color: rgba(61,220,151,.3); background: var(--emerald-a); }
.alert--success .icon { color: var(--emerald); }
.alert b { color: var(--ink); font-weight: 560; }

/* Sağlayıcı yapılandırılmadı kutusu */
.notconf {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  color: var(--ink-3);
  background: repeating-linear-gradient(135deg, transparent, transparent 9px, rgba(255,255,255,.014) 9px, rgba(255,255,255,.014) 18px);
}
.notconf .icon { color: var(--ink-4); margin: 0 auto 10px; }
.notconf b { display: block; color: var(--ink-2); font-size: 14px; margin-bottom: 5px; font-weight: 550; }
.notconf p { font-size: 13px; max-width: 52ch; margin: 0 auto; }

/* -------------------------------------------------------------- 23. Boşluk */
.empty { padding: 40px 20px; text-align: center; color: var(--ink-4); font-size: 13.5px; }
.empty .icon { margin: 0 auto 10px; opacity: .5; }

/* ------------------------------------------------------------- 24. Özellik */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; background: var(--line-soft); border-block: 1px solid var(--line-soft); }
.feature { background: var(--bg-0); padding: 24px 22px; transition: background var(--speed) var(--ease); }
.feature:hover { background: var(--bg-1); }
.feature__n { font-family: var(--mono); font-size: 11px; color: var(--ink-4); letter-spacing: .08em; }
.feature h3 { font-size: 15px; margin: 10px 0 7px; font-weight: 560; }
.feature p { font-size: 13.5px; color: var(--ink-3); line-height: 1.62; }
.feature .icon { color: var(--blue); }

/* -------------------------------------------------------------- 25. Footer */
.footer { border-top: 1px solid var(--line-soft); background: var(--bg-1); margin-top: 80px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 36px;
  padding-block: 52px;
}
@media (max-width: 1000px) { .footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: minmax(0,1fr); } }
.footer h4 {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 14px; font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a { font-size: 13.5px; color: var(--ink-3); transition: color var(--speed) var(--ease); }
.footer a:hover { color: var(--ink); }
.footer__bottom {
  border-top: 1px solid var(--line-soft);
  padding-block: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-4);
}

/* --------------------------------------------------------------- 26. Prose */
.prose { max-width: 74ch; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 14px; color: var(--ink); }
.prose h3 { font-size: 1.1rem; margin: 30px 0 10px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--blue); border-bottom: 1px solid rgba(75,140,255,.3); }
.prose code { background: var(--bg-2); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line-soft); }
.prose blockquote {
  margin: 24px 0; padding: 4px 0 4px 20px;
  border-left: 2px solid var(--blue);
  color: var(--ink-2);
}

/* SSS */
.faq { border-top: 1px solid var(--line-soft); }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__q {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 18px 0; text-align: left;
  font-size: 15px; font-weight: 520; letter-spacing: -.01em;
}
.faq__q .icon { margin-left: auto; color: var(--ink-4); transition: transform var(--speed) var(--ease); }
.faq__item[data-open="true"] .faq__q .icon { transform: rotate(45deg); }
.faq__a { display: none; padding-bottom: 20px; color: var(--ink-3); font-size: 14px; max-width: 72ch; }
.faq__item[data-open="true"] .faq__a { display: block; }

/* ---------------------------------------------------------- 27. Yardımcılar */
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.gap-6 { gap: 6px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.w-full { width: 100%; }

.fade-in { animation: fade .45s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Yazdırma — paylaşılabilir rapor için */
@media print {
  body { background: #fff; color: #111; }
  body::before, .nav, .footer, .no-print { display: none !important; }
  .panel { border-color: #ddd; background: #fff; break-inside: avoid; }
  .finding__body { display: block !important; }
  a { color: #111; }
}
