/*!
 * PlusLayer Looking Glass — styles.css
 * Mobil öncelikli; gündüz/gece/otomatik tema; harici kaynak yok.
 *
 * PlusLayer — Sami Serdar NAYMANLI
 */

/* ---------- Fontlar (kendi sunucumuzdan, Latin + Türkçe) ---------- */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/open-sans-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/open-sans-latin-ext-300-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/raleway-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/raleway-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ubuntu-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ubuntu-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ubuntu-mono-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ubuntu-mono-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tasarım değişkenleri: gündüz ---------- */
:root {
  --brand: #036B91;
  --brand-strong: #025677;
  --on-brand: #FFFFFF;
  --brand-soft: #E3F1F7;
  --brand-gray: #505050;
  --logo-gray: #505050;
  --logo-blue: #036B91;

  --bg: #F5F8FA;
  --surface: #FFFFFF;
  --surface-2: #EEF3F6;
  --text: #1F2A30;
  --text-muted: #5B6770;
  --border: #DDE5EA;
  --focus: #0A8BBE;

  --ok: #12703A;
  --ok-soft: #E3F5EA;
  --warn: #9A4708;
  --warn-soft: #FDF0DC;
  --bad: #C62828;
  --bad-soft: #FBE6E6;

  --term-bg: #0B1419;
  --term-text: #D7E3EA;
  --term-muted: #7F919C;
  --term-accent: #5CC2E8;

  --map-land: #D5E2EA;
  --map-route: #036B91;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 33, 43, .06), 0 6px 20px rgba(16, 33, 43, .06);

  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Raleway", "Open Sans", system-ui, sans-serif;
  --font-mono: "Ubuntu Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1180px;
  --gap: clamp(16px, 3vw, 24px);
  color-scheme: light;
}

/* ---------- Gece ---------- */
[data-theme="dark"] {
  --brand: #3AA6D0;
  --brand-strong: #63BCDF;
  --on-brand: #04141B;
  --brand-soft: #10303D;
  --brand-gray: #9AA8B0;
  --logo-gray: #C9D3D9;
  --logo-blue: #3AA6D0;
  --bg: #0B1419;
  --surface: #121E25;
  --surface-2: #17262F;
  --text: #E6EEF2;
  --text-muted: #9AA8B0;
  --border: #22323B;
  --focus: #63BCDF;
  --ok: #4ADE80;
  --ok-soft: #10301D;
  --warn: #FBBF24;
  --warn-soft: #352707;
  --bad: #F87171;
  --bad-soft: #3A1517;
  --term-bg: #070D11;
  --map-land: #1E2F38;
  --map-route: #3AA6D0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --brand: #3AA6D0;
    --brand-strong: #63BCDF;
    --on-brand: #04141B;
    --brand-soft: #10303D;
    --brand-gray: #9AA8B0;
    --logo-gray: #C9D3D9;
    --logo-blue: #3AA6D0;
    --bg: #0B1419;
    --surface: #121E25;
    --surface-2: #17262F;
    --text: #E6EEF2;
    --text-muted: #9AA8B0;
    --border: #22323B;
    --focus: #63BCDF;
    --ok: #4ADE80;
    --ok-soft: #10301D;
    --warn: #FBBF24;
    --warn-soft: #352707;
    --bad: #F87171;
    --bad-soft: #3A1517;
    --term-bg: #070D11;
    --map-land: #1E2F38;
    --map-route: #3AA6D0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--font-mono); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gap); }
.container--narrow { max-width: 860px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 16px; background: var(--brand); color: var(--on-brand); border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: var(--on-brand); }

.icon { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.icon--xs { width: 13px; height: 13px; opacity: .7; }

/* ---------- Üst bölüm ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.brand__logo { height: 30px; width: auto; display: block; }
.brand__divider { width: 1px; height: 22px; background: var(--border); }
.brand__product { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--text-muted); white-space: nowrap; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }

/* Logo renkleri: gri kısımlar gece modunda açılır */
.brand__logo [fill="#505050" i], .brand__logo [fill="#505050"] { fill: var(--logo-gray); }
.brand__logo [stroke="#505050" i] { stroke: var(--logo-gray); }
.brand__logo [style*="505050"] { fill: var(--logo-gray) !important; }
.brand__logo [fill="#036B91" i] { fill: var(--logo-blue); }
.brand__logo [style*="036B91" i] { fill: var(--logo-blue) !important; }

.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font: 600 12px/1 var(--font-body); letter-spacing: .02em; }
.badge--as { background: var(--brand-soft); color: var(--brand); }

.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.lang-switch__item { min-width: 40px; min-height: 32px; display: grid; place-items: center; padding: 0 10px; border-radius: 999px; text-decoration: none; font: 600 13px/1 var(--font-body); color: var(--text-muted); }
.lang-switch__item.is-active { background: var(--brand); color: var(--on-brand); }
.lang-switch__item:not(.is-active):hover { color: var(--text); }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn--sm { width: 34px; height: 34px; border-radius: var(--radius-sm); }
.theme-toggle .icon { display: none; }
.theme-toggle[data-current="light"] .theme-toggle__light,
.theme-toggle[data-current="dark"] .theme-toggle__dark,
.theme-toggle[data-current="auto"] .theme-toggle__auto { display: block; }

@media (max-width: 520px) {
  .badge--as, .brand__divider { display: none; }
  .brand__product { font-size: 14px; }
  .brand__logo { height: 26px; }
  .lang-switch__item { min-width: 36px; padding: 0 8px; }
}
@media (max-width: 340px) { .brand__product { display: none; } }

/* ---------- Giriş ---------- */
.hero { padding: clamp(28px, 6vw, 56px) 0 clamp(20px, 4vw, 32px); background:
  radial-gradient(900px 300px at 85% -10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
  radial-gradient(600px 240px at -10% 0%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 70%); }
.hero--center { text-align: center; padding: 80px 0; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font: 600 13px/1.4 var(--font-body); color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.hero__title { font-size: clamp(28px, 5.2vw, 46px); margin: 0 0 12px; letter-spacing: -.01em; }
.hero__lead { max-width: 760px; font-size: clamp(15px, 2.2vw, 18px); color: var(--text-muted); margin: 0 0 20px; }
.hero--center .hero__lead { margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; max-width: 100%; min-width: 0; padding: 6px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.chip__label { margin: 0; font: 600 11px/1 var(--font-body); letter-spacing: .08em; color: var(--text-muted); white-space: nowrap; }
.chip__value { margin: 0; min-width: 0; font: 600 15px/1.3 var(--font-body); color: var(--text); overflow-wrap: anywhere; }
.chip--mono .chip__value, .chip__value--ip { font-family: var(--font-mono); font-weight: 700; }
.chip__value--net { font-weight: 400; font-size: 14px; color: var(--text-muted); }
.chip__value--net:empty { display: none; }
.chip__value--muted { font-weight: 400; color: var(--text-muted); }
.chip__action { margin: 0 -6px 0 0; }
.chip__copy { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--text-muted); cursor: pointer; }
.chip__copy:hover, .chip__copy:focus-visible { color: var(--brand); border-color: var(--brand); }
.chip__copy .icon { width: 15px; height: 15px; }
.chip--visitor { border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.chip__latency { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding-left: 12px; border-left: 1px solid var(--border); font: 700 14px/1 var(--font-mono); color: var(--text-muted); white-space: nowrap; cursor: help; }
.latency-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.chip__latency--good { color: var(--ok); }
.chip__latency--fair { color: var(--warn); }
.chip__latency--poor { color: var(--bad); }
@media (max-width: 560px) {
  .chip { flex: 1 1 auto; }
  .chip--visitor { flex-basis: 100%; flex-wrap: wrap; row-gap: 4px; }
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__actions--center { justify-content: center; }

/* ---------- Düğmeler ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-sm); font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--danger { background: var(--bad); color: #fff; }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Kart ve bölümler ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.section { padding: clamp(36px, 7vw, 64px) 0; }
.section--alt { background: var(--surface-2); }
.section-title { font-size: clamp(22px, 3.6vw, 30px); }
.section-title--sm { font-size: 18px; margin: 0; }
.section-lead { color: var(--text-muted); max-width: 760px; margin-bottom: 24px; }
.grid { display: grid; gap: var(--gap); }
.grid > * { min-width: 0; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Sekmeler ---------- */
.tool { padding-bottom: 8px; }
.tabs { margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scroll-padding-inline: 0; overscroll-behavior-x: contain; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__list { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; width: max-content; }
.tabs__item { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font: 600 14px/1 var(--font-body); white-space: nowrap; scroll-snap-align: start; }
.tabs__item:hover { border-color: var(--brand); color: var(--brand); }
.tabs__item.is-active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.tabs__item--external { border-style: dashed; }

/* ---------- Sorgu formu ---------- */
.tool__card { padding: clamp(16px, 3vw, 24px); }
.tool__lead { color: var(--text-muted); margin-bottom: 16px; }
.query__row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field--grow { flex: 1 1 280px; }
.field--port { flex: 0 0 110px; }
.field--type { flex: 0 0 130px; }
.field__label { display: block; margin: 0 0 6px; padding: 0; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.field__input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: 400 16px/1 var(--font-mono); appearance: none; }
select.field__input { font-family: var(--font-body); background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.field__input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.field__input.is-invalid { border-color: var(--bad); }
.segment { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); }
.segment__item { position: relative; }
.segment__item input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segment__item span { display: grid; place-items: center; min-width: 56px; min-height: 40px; padding: 0 12px; border-radius: 6px; font: 600 14px/1 var(--font-body); color: var(--text-muted); }
.segment__item input:checked + span { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.segment__item input:focus-visible + span { outline: 3px solid var(--focus); }
.segment__item.is-disabled span { opacity: .4; }
.segment__item.is-disabled input { cursor: not-allowed; }
.query__submit { display: flex; gap: 8px; flex: 1 1 auto; }
.query__submit .btn { flex: 1 1 auto; min-height: 48px; }
@media (min-width: 900px) { .query__submit { flex: 0 0 auto; } .query__submit .btn { min-width: 140px; } }
.query__notice { margin: 14px 0 0; font-size: 13px; color: var(--text-muted); display: flex; gap: 6px; align-items: flex-start; }
.query__notice .icon { margin-top: 2px; }
.alert { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; margin: 12px 0 0; }
.alert--warn { background: var(--warn-soft); color: var(--warn); }
.alert--bad { background: var(--bad-soft); color: var(--bad); }

/* ---------- Sonuç ---------- */
.result { margin-top: 16px; }
.result__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.result__actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 560px) {
  .result__actions { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .result__actions .btn span { display: none; }
}
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font: 600 13px/1.2 var(--font-body); background: var(--surface-2); color: var(--text-muted); }
.pill--muted { background: var(--surface-2); color: var(--text-muted); }
.pill--run { background: var(--brand-soft); color: var(--brand); }
.pill--run::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1s ease-in-out infinite; }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--bad { background: var(--bad-soft); color: var(--bad); }
@keyframes pulse { 50% { opacity: .3; } }

.result__body { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.result__view { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.result__view > * { min-width: 0; }
.empty { display: grid; place-items: center; text-align: center; padding: 36px 16px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface); }
.empty__icon { width: 34px; height: 34px; color: var(--brand); margin-bottom: 8px; }
.empty__title { font-weight: 600; margin: 0 0 4px; }
.empty__text { margin: 0; color: var(--text-muted); font-size: 14px; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.panel__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 600 13px/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; margin: 0; }
.kv > div { min-width: 0; }
.kv + .kv { margin-top: 12px; }
.kv dt { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.kv dd { margin: 2px 0 0; font-family: var(--font-mono); font-size: 15px; overflow-wrap: anywhere; }

.aspath { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.aspath__as { display: inline-flex; flex-direction: column; padding: 5px 10px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font: 600 13px/1.2 var(--font-mono); }
.aspath__as small { font: 400 11px/1.3 var(--font-body); color: var(--text-muted); max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aspath__as--self { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.aspath__as--origin { border-color: var(--brand); }
.aspath__arrow { color: var(--text-muted); }

.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font: 600 12px/1.4 var(--font-body); background: var(--surface-2); color: var(--text-muted); white-space: nowrap; }
.tag--ok { background: var(--ok-soft); color: var(--ok); }
.tag--warn { background: var(--warn-soft); color: var(--warn); }
.tag--bad { background: var(--bad-soft); color: var(--bad); }
.tag--brand { background: var(--brand); color: var(--on-brand); }

.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.metric { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.metric__label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.metric__value { font: 700 clamp(22px, 4vw, 28px)/1.2 var(--font-head); margin-top: 4px; }
.metric__value small { font: 400 14px/1 var(--font-body); color: var(--text-muted); margin-left: 3px; }
.metric--ok .metric__value { color: var(--ok); }
.metric--warn .metric__value { color: var(--warn); }
.metric--bad .metric__value { color: var(--bad); }

/* Tablolar: masaüstünde tablo, mobilde kart */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.table--scroll { min-width: 640px; }
.table--scroll.table--mtr { min-width: 820px; }
.table--scroll td, .table--scroll th { white-space: nowrap; }
.table--scroll .sub { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 720px) { .table--scroll { font-size: 13px; } .table--scroll td, .table--scroll th { padding: 8px 8px; } }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 600 12px/1.3 var(--font-body); color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td.num { font-family: var(--font-mono); text-align: right; white-space: nowrap; }
.table th.num { text-align: right; }
.table .mono { font-family: var(--font-mono); overflow-wrap: anywhere; }
.table .sub { display: block; font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.table tr.is-dest td { background: color-mix(in srgb, var(--brand) 6%, transparent); }
@media (max-width: 720px) {
  /* DNS kayıtları: Ad ve Değer tam satır, TTL ile Tür yan yana */
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack td { display: block; width: 100%; }
  .table--stack tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .table--stack tr:last-child { border-bottom: 0; }
  .table--stack td { border: 0; padding: 0; text-align: left !important; min-width: 0; }
  .table--stack td.span { grid-column: 1 / -1; }
  .table--stack td::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 11px/1.3 var(--font-body); color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
}

/* Harita */
.map { position: relative; background: var(--surface-2); border-radius: var(--radius-sm); overflow: hidden; }
.map__svg { display: block; width: 100%; height: auto; }
.map__land { fill: var(--map-land); }
.map__line { fill: none; stroke: var(--map-route); stroke-width: 1.6; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; opacity: .85; }
.map__dot { fill: var(--map-route); stroke: var(--surface); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.map__dot--origin { fill: var(--ok); }
.map__dot--dest { fill: var(--bad); }
.map__label { font-family: var(--font-body); font-weight: 600; fill: var(--text); paint-order: stroke; stroke: var(--surface-2); }
.map__note { margin: 8px 0 0; font-size: 12px; color: var(--text-muted); }

/* BGP rotaları */
.route { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.route + .route { margin-top: 10px; }
.route--primary { border-color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); }
.route__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.route__prefix { font: 700 16px/1.2 var(--font-mono); }

/* Recursive DNS sonucu */
.verdict { display: flex; gap: 14px; align-items: flex-start; }
.verdict__badge { flex: none; padding: 10px 14px; border-radius: var(--radius-sm); font: 700 18px/1 var(--font-head); letter-spacing: .04em; }
.verdict--open .verdict__badge { background: var(--bad-soft); color: var(--bad); }
.verdict--closed .verdict__badge { background: var(--ok-soft); color: var(--ok); }
.verdict--none .verdict__badge { background: var(--surface-2); color: var(--text-muted); }
.verdict p { margin: 0; }

/* Ham çıktı (terminal) */
.terminal { border-radius: var(--radius); overflow: hidden; background: var(--term-bg); border: 1px solid #1c2b33; }
.terminal > summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; list-style: none; font: 600 13px/1 var(--font-body); color: var(--term-muted); text-transform: uppercase; letter-spacing: .05em; }
.terminal > summary::-webkit-details-marker { display: none; }
.terminal > summary .faq__chevron { margin-left: auto; transition: transform .2s; }
.terminal[open] > summary .faq__chevron { transform: rotate(180deg); }
.terminal__out { margin: 0; padding: 4px 14px 14px; max-height: 460px; overflow: auto; color: var(--term-text); font: 400 14px/1.5 var(--font-mono); white-space: pre; tab-size: 8; }
.terminal__out .hl { color: var(--term-accent); }
@media (max-width: 560px) { .terminal__out { font-size: 12.5px; } }

/* Karşılaştırma */
.compare { margin-top: 18px; padding: 16px; border: 1px solid var(--brand); border-radius: var(--radius); background: var(--surface); }
.compare__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.compare__grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .compare__grid { grid-template-columns: 1fr 1fr; } }
.compare__col { min-width: 0; display: grid; gap: 10px; align-content: start; }
.compare__col .terminal__out { max-height: 320px; }
.compare__hint { color: var(--text-muted); font-size: 14px; border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 18px; margin: 0; }
.compare__label { font: 600 12px/1 var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }

/* ---------- Prefixler ---------- */
.prefix { padding: 16px 18px; }
.prefix__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.prefix__name { margin: 0; font: 700 18px/1.2 var(--font-mono); overflow-wrap: anywhere; }
.meter { height: 6px; margin-top: 14px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter__bar { display: block; height: 100%; width: 0; background: var(--ok); border-radius: inherit; transition: width .6s ease; }

/* ---------- Servisler ---------- */
.service { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.service p { margin: 0; color: var(--text-muted); font-size: 15px; }
.service__title { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0; }
.service__title .icon { color: var(--brand); width: 20px; height: 20px; }
.service__meta { font-size: 13px !important; }
.service .btn { align-self: flex-start; margin-top: auto; }
.codeline { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: var(--radius-sm); background: var(--term-bg); color: var(--term-text); min-width: 0; }
.codeline code { flex: 1; min-width: 0; font-size: 13.5px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.codeline .icon-btn { background: transparent; border-color: #2a3b45; color: var(--term-muted); flex: none; }
.codeline .icon-btn:hover { color: var(--term-accent); border-color: var(--term-accent); }
.codeline--block { margin-bottom: 8px; }

/* ---------- Rehber ---------- */
.guide { display: grid; gap: 14px; }
@media (min-width: 900px) { .guide { grid-template-columns: 1fr 1fr; } }
.guide__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.guide__title { font-size: 19px; }
.guide__title a { color: var(--text); text-decoration: none; }
.guide__title a:hover { color: var(--brand); }
.guide__item p { color: var(--text-muted); font-size: 15px; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.guide__item p:last-child { margin-bottom: 0; }

/* ---------- SSS ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; min-height: 44px; cursor: pointer; list-style: none; font-weight: 600; }
.faq__q::-webkit-details-marker { display: none; }
.faq__chevron { transition: transform .2s; color: var(--text-muted); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__a { padding: 0 18px 16px; color: var(--text-muted); }
.faq__a p { margin: 0; }

/* ---------- Alt bölüm ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 28px 0 20px; font-size: 14px; }
.footer-menu ul { display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 0 0 24px; padding: 0 0 18px; list-style: none; border-bottom: 1px solid var(--border); }
.footer-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 600; }
.footer-menu a:hover { background: var(--surface-2); color: var(--brand); }
.footer-cols { display: grid; gap: 22px; margin-bottom: 22px; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.footer-col ul a { display: inline-block; padding: 6px 0; color: var(--text-muted); text-decoration: none; }
.footer-col ul a:hover { color: var(--brand); }
.footer-col__title { font: 700 13px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--text); margin: 0 0 8px; }
.footer-col__text { color: var(--text-muted); margin: 10px 0 0; max-width: 360px; }
.brand--footer .brand__logo { height: 28px; }
.footer-notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--text); margin-bottom: 18px; }
.footer-notice .icon { color: var(--warn); margin-top: 2px; }
.footer-notice p { margin: 0; overflow-wrap: anywhere; }
.footer-notice a { font-weight: 600; white-space: nowrap; }
.footer-bottom { display: grid; gap: 4px; color: var(--text-muted); font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-bottom__attr { font-size: 12px; }

/* ---------- Bildirim ---------- */
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Yazdırma / PDF ---------- */
/* ---------- API parametre tablosu ---------- */
.params { margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.params__head { display: none; }
.params__row { --c: #2B8FC4; position: relative; display: grid; gap: 10px; padding: 14px 16px 14px 20px; border-top: 1px solid var(--border); }
.params__row:first-of-type { border-top: 0; }
.params__row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.params__row:hover { background: color-mix(in srgb, var(--c) 5%, transparent); }
.params__row--blue { --c: #2B8FC4; }
.params__row--green { --c: #1F9D6B; }
.params__row--violet { --c: #7C5CD6; }
.params__row--orange { --c: #E0782B; }
.params__row--pink { --c: #D2479A; }
.params__row--amber { --c: #B08404; }
.params__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.param { padding: 4px 10px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, transparent); color: color-mix(in srgb, var(--c) 60%, var(--text)); font: 700 14px/1.2 var(--font-mono); }
.param-flag { padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px; font: 600 11px/1.2 var(--font-body); color: var(--text-muted); white-space: nowrap; }
.param-flag--req { border-color: transparent; background: color-mix(in srgb, var(--c) 72%, #000); color: #fff; }
.params__values { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; min-width: 0; }
.value { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font: 600 13px/1.3 var(--font-mono); }
.value--default { border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.value--default::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.value--any { font-family: var(--font-body); font-weight: 400; font-style: italic; color: var(--text-muted); background: transparent; border-style: dashed; }
.params__desc { color: var(--text); font-size: 15px; line-height: 1.55; }
.params__legend { display: flex; align-items: center; gap: 6px; margin: 10px 2px 0; font-size: 13px; color: var(--text-muted); }
.params__legend::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
@media (min-width: 820px) {
  .params__head, .params__row { grid-template-columns: 210px minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .params__head { display: grid; padding: 10px 16px 10px 20px; background: var(--surface-2); border-bottom: 1px solid var(--border); font: 600 12px/1.3 var(--font-body); color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
  .params__head + .params__row { border-top: 0; }
}
.footer-bottom__attr a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 2px; }
.footer-bottom__attr a:hover { color: var(--brand); }

/* ---------- Görsel site haritası ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 14px; color: var(--text-muted); }
.crumbs a { color: var(--brand); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.smap__title { font-size: clamp(28px, 5.2vw, 42px); margin: 0 0 10px; }
.smap__root { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--border)); border-radius: var(--radius); background: linear-gradient(135deg, var(--brand-soft), var(--surface)); }
.smap__root-node { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1.2 var(--font-mono); color: var(--brand); }
.smap__root-node .icon { width: 22px; height: 22px; }
.smap__root-meta { display: inline-flex; gap: 8px; }
.smap__root-meta span { padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font: 600 13px/1.2 var(--font-body); color: var(--text-muted); }
.smap__grid { position: relative; margin-top: 26px; columns: 1; column-gap: 16px; }
.smap__grid > .smap-group { break-inside: avoid; margin-bottom: 16px; }
.smap__grid::before { content: ""; position: absolute; left: 28px; top: -26px; height: 26px; border-left: 2px dashed color-mix(in srgb, var(--brand) 45%, transparent); }
@media (min-width: 720px) {
  .smap__grid { columns: 2; }
  .smap-group--tools .smap-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1060px) {
  .smap__grid { columns: 3; }
  .smap-group--tools .smap-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.smap-group { --c: var(--brand); min-width: 0; border: 1px solid var(--border); border-top: 3px solid var(--c); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.smap-group--tools { --c: #2B8FC4; column-span: all; }
.smap-group--pages { --c: #036B91; }
[data-theme="dark"] .smap-group--pages { --c: #3AA6D0; }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .smap-group--pages { --c: #3AA6D0; } }
.smap-group--services { --c: #1F9D6B; }
.smap-group--company { --c: #D2479A; }
.smap-group--network { --c: #7C5CD6; }
.smap-group--files { --c: #E0782B; }
.smap-group__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--c) 6%, transparent); }
.smap-group__head h2 { flex: 1; margin: 0; font-size: 17px; }
.smap-group__icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.smap-group__count { min-width: 28px; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 72%, #000); color: #fff; font: 700 12px/1.2 var(--font-body); text-align: center; }
.smap-list { margin: 0; padding: 6px; list-style: none; }
.smap-item { display: flex; gap: 12px; padding: 10px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; transition: background .15s; }
.smap-item:hover, .smap-item:focus-visible { background: color-mix(in srgb, var(--c) 8%, transparent); }
.smap-item__icon { position: relative; display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--c) 35%, var(--border)); color: var(--c); }
.smap-item__icon .icon { width: 15px; height: 15px; }
.smap-item__body { display: grid; gap: 2px; min-width: 0; }
.smap-item__title { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.smap-item__desc { font-size: 14px; line-height: 1.45; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.smap-item__url { font: 400 12.5px/1.3 var(--font-mono); color: color-mix(in srgb, var(--c) 70%, var(--text)); overflow-wrap: anywhere; }

@media print {
  :root, [data-theme] { --bg: #fff; --surface: #fff; --surface-2: #f3f5f7; --text: #000; --text-muted: #444; --border: #ccc; --term-bg: #fff; --term-text: #000; --term-muted: #444; }
  .site-header, .hero__actions, .tabs, .tool__card, .result__actions, .section, .site-footer .footer-menu, .footer-cols, .skip-link, .compare__head .btn, .toast { display: none !important; }
  .hero { padding: 0 0 12px; background: none; }
  .hero__lead { display: none; }
  .terminal { border: 1px solid #ccc; }
  .terminal__out { max-height: none; overflow: visible; white-space: pre-wrap; }
  .terminal:not([open]) .terminal__out { display: block; }
  .card, .panel, .metric { box-shadow: none; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
