/* dns.verinomi.com — IP Sorgula ile aynı tasarım dili. İki dil aynı sayfada: .l[lang] ile eşleşmeyen gizlenir. */
:root {
  --bg: #f6f8fc; --surface: #ffffff; --surface-2: #f8fafd;
  --text: #0f1b2d; --muted: #56657c; --faint: #8a97ab; --line: #e3e8f1; --line-2: #d6dde9;
  --brand: #1a4f8a; --brand-2: #2596d1; --accent: #16b3a0;
  --chip: #edf3fb; --code: #0f1b2d; --code-text: #d7e3f4; --code-dim: #7d8ea8;
  --ok: #16a34a; --warn: #d97706; --bad: #dc2626; --info: #2563eb;
  --ok-bg: #ecfdf3; --warn-bg: #fff7e6; --bad-bg: #fef2f2; --info-bg: #eff5ff;
  --shadow: 0 1px 2px rgba(15,27,45,.04), 0 12px 32px -16px rgba(15,27,45,.18);
  --hero-a: #e6eefb; --hero-b: #f6f8fc;
}
:root[data-theme="dark"] {
  --bg: #0a1224; --surface: #111c33; --surface-2: #0e182c;
  --text: #e8eef8; --muted: #9fb0c8; --faint: #6f819c; --line: #1e2c47; --line-2: #2a3b5c;
  --brand: #5aa9ea; --brand-2: #7cc5f2; --accent: #2dd4bf;
  --chip: #16233e; --code: #070d1a; --code-text: #d7e3f4; --code-dim: #6f819c;
  --ok: #4ade80; --warn: #fbbf24; --bad: #f87171; --info: #7cb4ff;
  --ok-bg: #0f2a1f; --warn-bg: #2a2110; --bad-bg: #2c1418; --info-bg: #13223f;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 16px 40px -20px rgba(0,0,0,.7);
  --hero-a: #0f2244; --hero-b: #0a1224;
}
.l { display: none; }
html[lang="tr"] .l[lang="tr"], html[lang="en"] .l[lang="en"] { display: inline; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--vt-bar-h, 0px) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
#vt-bar { height: 38px; background: #0f1b2d; }
a { color: var(--brand); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { height: 28px; width: auto; display: block; }
.brand .tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
              border-left: 1px solid var(--line-2); padding-left: 10px; white-space: nowrap; }
.logo-dark { display: none !important; } :root[data-theme="dark"] .logo-dark { display: block !important; } :root[data-theme="dark"] .logo-light { display: none !important; }
.controls { display: flex; gap: 8px; }
.ctl { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer;
       border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 600 13px/1 inherit; }
.ctl:hover { border-color: var(--brand-2); }
.ctl svg { width: 16px; height: 16px; }
.ctl .sun { display: none; } :root[data-theme="dark"] .ctl .sun { display: block; } :root[data-theme="dark"] .ctl .moon { display: none; }

.hero { background: radial-gradient(900px 420px at 10% -20%, var(--hero-a), transparent 60%), var(--hero-b); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 32px; padding-bottom: 28px; }
h1 { font-size: clamp(26px, 4.4vw, 38px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -.01em; }
.lead { color: var(--muted); margin: 0 0 22px; }
.ask { display: flex; gap: 10px; padding: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ask input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--text);
             font: 500 18px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; outline: none; }
.ask input::placeholder { color: var(--faint); }
.ask:focus-within { border-color: var(--brand-2); }
.examples { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 20px; border-radius: 10px; cursor: pointer;
       border: 1px solid var(--brand); background: var(--brand); color: #fff; font: 600 15px/1 inherit; text-decoration: none; white-space: nowrap; }
:root[data-theme="dark"] .btn:not(.ghost) { color: #06101f; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { height: 36px; padding: 0 14px; border-radius: 999px; background: transparent; color: var(--brand); border-color: var(--line-2); font-size: 14px; }

section { padding: 28px 0 4px; }
section[hidden] { display: none; }
h2 { font-size: 20px; margin: 0 0 12px; }
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 6px; font-size: 15px; }
.card p { margin: 0; }
.muted { color: var(--muted); font-size: 14px; }

/* özet */
.summary { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.summary h2 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.sum-line { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
#verdict { font-weight: 700; }
#verdict[data-level="ok"] { color: var(--ok); } #verdict[data-level="warn"] { color: var(--warn); } #verdict[data-level="fail"] { color: var(--bad); }
.sum-counts { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.count { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--chip); color: var(--muted); }
.count.ok { background: var(--ok-bg); color: var(--ok); } .count.warn { background: var(--warn-bg); color: var(--warn); }
.count.fail { background: var(--bad-bg); color: var(--bad); } .count.info { background: var(--info-bg); color: var(--info); }
.sum-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* rapor tablosu (intoDNS düzeni): Kategori | Durum | Denetim | Bilgi */
.tbl { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.rep { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.45; }
.rep th, .rep td { border-bottom: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.rep thead th { background: var(--surface-2); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.rep tbody { border-top: 2px solid var(--line-2); }
.rep th.cat { width: 96px; background: var(--surface-2); font-weight: 700; color: var(--text); border-right: 1px solid var(--line); }
.rep td.s { width: 44px; text-align: center; }
.rep td.name { width: 250px; font-weight: 600; }
.rep td.info p { margin: 0; }
.rep td.info ul { margin: 3px 0 0; padding: 0; list-style: none; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.rep td.info .why { margin: 3px 0 0; color: var(--faint); font-size: 12px; }
.rep tr[data-s="fail"] td { background: var(--bad-bg); }
.rep tr[data-s="warn"] td { background: var(--warn-bg); }
.st { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font: 800 11px/1 inherit; }
.st-ok { background: var(--ok); } .st-warn { background: var(--warn); } .st-fail { background: var(--bad); } .st-info { background: var(--info); font-family: Georgia, serif; font-style: italic; }
:root[data-theme="dark"] .st { color: #06101f; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.legend .st { width: 18px; height: 18px; font-size: 11px; margin-left: 6px; }
.running td { color: var(--muted); font-style: italic; }
@media (max-width: 640px) {
  .rep thead { display: none; }
  .rep, .rep tbody, .rep tr, .rep th, .rep td { display: block; width: auto; }
  .rep th.cat, .rep td.s, .rep td.name { width: auto; }
  .rep th.cat { border-right: 0; }
  .rep tr { display: grid; grid-template-columns: 40px 1fr; }
  .rep tr > th.cat { grid-column: 1 / -1; }
  .rep td.s { grid-row: span 2; padding-right: 0; }
  .rep td.name { border-bottom: 0; padding-bottom: 0; }
}
.error { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); font-weight: 600; }

pre { background: var(--code); color: var(--code-text); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; margin: 0; }
pre .c { color: var(--code-dim); }
#about + section, section > details { margin-top: 0; }
section > details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
section > details summary { cursor: pointer; font-weight: 600; }
section > details p { margin: 8px 0 0; color: var(--muted); }
main { padding-bottom: 40px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg);
         padding: 8px 14px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 10; }
.toast.show { opacity: 1; }
@media (max-width: 520px) { .ask { flex-direction: column; } }
