:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --border: #e3e6eb;
  --text: #0f172a;
  --muted: #5b6474;
  --faint: #8a93a3;
  --accent: #2457d6;
  --accent-soft: #e8eefc;
  --good: #11803f;
  --good-soft: #e5f5eb;
  --warn: #a15c00;
  --warn-soft: #fdf1dc;
  --bad: #c0262d;
  --bad-soft: #fde8e8;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
  --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120; --surface: #111a2e; --surface-2: #17213a; --border: #243049;
    --text: #e6ebf4; --muted: #9aa6bb; --faint: #6c7890;
    --accent: #7aa2ff; --accent-soft: #1c2b52;
    --good: #4ade80; --good-soft: #10301f; --warn: #fbbf24; --warn-soft: #3a2a0a;
    --bad: #f87171; --bad-soft: #3b1518; --code-bg: #070c18; --code-text: #d5deec;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120; --surface: #111a2e; --surface-2: #17213a; --border: #243049;
  --text: #e6ebf4; --muted: #9aa6bb; --faint: #6c7890;
  --accent: #7aa2ff; --accent-soft: #1c2b52;
  --good: #4ade80; --good-soft: #10301f; --warn: #fbbf24; --warn-soft: #3a2a0a;
  --bad: #f87171; --bad-soft: #3b1518; --code-bg: #070c18; --code-text: #d5deec;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, .mono { font-family: var(--mono); font-size: .9em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 20px; padding-bottom: 40px; }

/* üst çubuk */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.topbar-in { display: flex; align-items: center; gap: 14px; height: 58px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { color: var(--accent); }
.search { display: flex; flex: 1; min-width: 0; }
.search input {
  flex: 1; min-width: 0; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  border-radius: 10px 0 0 10px; padding: 9px 12px; font: inherit; outline: none;
}
.search input:focus { border-color: var(--accent); background: var(--surface); }
.search button {
  border: 0; background: var(--accent); color: #fff; border-radius: 0 10px 10px 0; padding: 0 14px;
  cursor: pointer; font: inherit; font-weight: 600; display: flex; align-items: center;
}
:root[data-theme="dark"] .search button { color: #0b1120; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .search button { color: #0b1120; } }
.search-top { max-width: 520px; margin-left: auto; }
.is-home .search-top { visibility: hidden; }
.theme-btn { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 10px; width: 38px; height: 38px; cursor: pointer; display: grid; place-items: center; flex: none; }
.theme-btn:hover { color: var(--text); }

/* ana sayfa */
.hero { text-align: center; padding: 56px 0 28px; }
.hero h1 { font-size: clamp(28px, 5vw, 42px); margin: 0 0 10px; letter-spacing: -.02em; }
.lead { color: var(--muted); max-width: 620px; margin: 0 auto 26px; font-size: 16px; }
.search-hero { max-width: 640px; margin: 0 auto; }
.search-hero input { padding: 15px 18px; font-size: 17px; border-radius: 12px 0 0 12px; background: var(--surface); box-shadow: var(--shadow); }
.search-hero button { padding: 0 24px; font-size: 16px; border-radius: 0 12px 12px 0; }
.hint { color: var(--faint); font-size: 13px; margin-top: 14px; }
.hint code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--muted); }
.examples, .recent { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; font-size: 14px; align-items: center; }
.examples span, .recent span { color: var(--faint); }
.examples a, .recent a { background: var(--surface); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.examples a:hover, .recent a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 30px; }
.features div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.features h3 { margin: 0 0 6px; font-size: 15px; }
.features p { margin: 0; color: var(--muted); font-size: 14px; }

/* sonuç başlığı */
.rhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.rhead h1 { margin: 0; font-size: clamp(22px, 4vw, 30px); letter-spacing: -.01em; word-break: break-all; }
.rhead .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 9px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: thin; }
.tabs a { white-space: nowrap; font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.tabs a:hover { color: var(--accent); text-decoration: none; }

/* durum özet bandı */
.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat .k { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.stat .v { font-size: 17px; font-weight: 650; margin-top: 2px; word-break: break-word; }
.stat .d { font-size: 13px; color: var(--muted); }
.bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: var(--good); border-radius: 99px; }
.bar.warn > i { background: var(--warn); }
.bar.bad > i { background: var(--bad); }

/* kartlar */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid > .full { grid-column: 1 / -1; }
@media (max-width: 860px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; scroll-margin-top: 72px; }
.card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.card > header h2 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card > header .meta { font-size: 12px; color: var(--faint); }
.card .body { padding: 14px 16px; }
.card .body + .body { border-top: 1px solid var(--border); }
.card h3 { font-size: 13px; color: var(--muted); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .04em; }

.kv { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 7px 14px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
@media (max-width: 520px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kv dd { margin-bottom: 8px; } }

table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid var(--border); }
table.t td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; word-break: break-word; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.type { font-weight: 700; font-family: var(--mono); font-size: 12px; white-space: nowrap; width: 70px; }
table.t td.ttl { color: var(--faint); white-space: nowrap; width: 70px; text-align: right; font-size: 12px; }
table.t td.data { font-family: var(--mono); font-size: 12.5px; }
.tscroll { overflow-x: auto; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.chip.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.info { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.status-list li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; flex-wrap: wrap; }
.status-list li .x { color: var(--muted); font-size: 13px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.list .mono { word-break: break-all; }

.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 8px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.check:last-child { border-bottom: 0; }
.check .ic { font-weight: 800; text-align: center; }
.check .ic.good { color: var(--good); } .check .ic.warn { color: var(--warn); } .check .ic.bad { color: var(--bad); }
.check .ttl { font-weight: 600; }
.check .desc { grid-column: 2; color: var(--muted); font-size: 13px; }
.check code.rec { grid-column: 2; display: block; background: var(--surface-2); border-radius: 8px; padding: 6px 8px; font-size: 12px; word-break: break-all; white-space: pre-wrap; }

.alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 0 0 12px; }
.alert-bad { background: var(--bad-soft); color: var(--bad); }
.alert-good { background: var(--good-soft); color: var(--good); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-info { background: var(--accent-soft); color: var(--accent); }
.hero .alert { max-width: 640px; margin: 14px auto 0; }
.avail { text-align: center; padding: 28px 16px; }
.avail .big { font-size: 22px; font-weight: 700; color: var(--good); }
.avail p { color: var(--muted); margin: 6px 0 0; }

.muted { color: var(--muted); } .faint { color: var(--faint); font-size: 13px; }
.empty { color: var(--faint); font-size: 14px; font-style: italic; }
.note { font-size: 12.5px; color: var(--faint); margin-top: 10px; }

/* ham veri */
.raw-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.raw-tabs button { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 8px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.raw-tabs button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
:root[data-theme="dark"] .raw-tabs button.on { color: #0b1120; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .raw-tabs button.on { color: #0b1120; } }
.raw { position: relative; }
.raw pre { margin: 0; background: var(--code-bg); color: var(--code-text); border-radius: 10px; padding: 14px; overflow: auto; max-height: 560px; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.raw .copy { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.1); color: #e2e8f0; border: 1px solid rgba(255,255,255,.2); }
.raw .copy:hover { color: #fff; border-color: #fff; }

details.more { margin-top: 10px; }
details.more summary { cursor: pointer; color: var(--accent); font-size: 13px; }
details.more[open] summary { margin-bottom: 8px; }

/* yükleniyor */
.loading { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 14px; padding: 6px 0; }
.spin { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sk { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: sh 1.4s ease infinite; margin: 8px 0; }
@keyframes sh { to { background-position: -200% 0; } }
.skeleton-head { height: 40px; width: 40%; border-radius: 10px; background: var(--surface-2); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 8px 16px; border-radius: 10px; font-size: 14px; z-index: 50; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }

.foot { border-top: 1px solid var(--border); padding: 18px 0; font-size: 13px; color: var(--faint); }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .topbar-in { gap: 8px; }
  .brand span { display: none; }
  .hero { padding-top: 32px; }
  .search-hero input { font-size: 16px; padding: 13px 14px; }
  .search-hero button { padding: 0 16px; }
}
