/* ============================================================
   DomainRadar — ön yüz stilleri (mobil öncelikli, RTL uyumlu)
   Tema değişkenleri (--primary vb.) sayfa başında PHP'den gelir.
   ============================================================ */
:root {
    --font: "Plus Jakarta Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --gutter: clamp(16px, 4vw, 32px);
    --radius: 20px;
    --line: rgba(var(--ink-rgb), .1);
    --muted: rgba(var(--ink-rgb), .64);
    --shadow-sm: 0 1px 2px rgba(var(--ink-rgb), .05), 0 6px 18px rgba(var(--ink-rgb), .05);
    --shadow-md: 0 18px 48px rgba(var(--ink-rgb), .14);
    --ok: #13a35a; --warn: #d98a0b; --bad: #d6401f;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0; position: relative; overflow-x: clip;
    font-family: var(--font); font-size: 16px; line-height: 1.6;
    color: var(--ink); background: var(--bg);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 680px; z-index: -1; pointer-events: none;
    background:
        radial-gradient(60% 60% at 50% 0%, rgba(var(--primary-rgb), .30), transparent 72%),
        radial-gradient(38% 42% at 92% 18%, rgba(var(--primary-rgb), .16), transparent 70%),
        radial-gradient(34% 40% at 6% 30%, rgba(var(--primary-rgb), .12), transparent 70%);
}
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--primary-ink); }
img, svg { max-width: 100%; }
.ico { flex: none; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
:focus-visible { outline: 3px solid rgba(var(--primary-rgb), .65); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .0); border-bottom: 1px solid transparent;
    transition: background .25s, border-color .25s, backdrop-filter .25s;
}
.site-header.is-scrolled, .show-hsearch .site-header { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr minmax(0, 480px) 1fr; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; justify-self: start; }
.brand-img { display: block; height: 34px; width: auto; }
.brand--sm { font-size: 1.1rem; }
.header-search { opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s, visibility .25s; }
.show-hsearch .header-search { opacity: 1; visibility: visible; transform: none; }

/* Dil menüsü */
.lang { position: relative; justify-self: end; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-weight: 600; font-size: .9rem; color: var(--ink); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.lang-btn:hover { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .2); }
.lang-btn[aria-expanded="true"] .ico:last-child { transform: rotate(180deg); }
.lang-code { display: none; }
.show-hsearch .lang-name { display: none; } .show-hsearch .lang-code { display: inline; }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 180px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md); z-index: 60; }
.lang-menu[hidden] { display: none; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--primary-soft); }
.lang-menu [aria-selected="true"] a { font-weight: 700; color: var(--primary-ink); }

/* ---------- Arama kutusu ---------- */
.search { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--primary-line); border-radius: 999px; padding: 6px; padding-inline-start: 26px; box-shadow: 0 10px 34px rgba(var(--primary-rgb), .22), var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 5px rgba(var(--primary-rgb), .30), 0 10px 34px rgba(var(--primary-rgb), .22); }
.search-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.125rem; font-weight: 500; color: var(--ink); padding: 12px 8px 12px 0; padding-inline: 0 8px; }
.search-input::placeholder { color: rgba(var(--ink-rgb), .42); font-weight: 400; }
.search-btn { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; cursor: pointer; transition: transform .15s, background .2s; }
.search-btn:hover { background: var(--primary-strong); transform: scale(1.05); }
.search-btn:active { transform: scale(.97); }
[dir="rtl"] .search-btn .ico { transform: scaleX(-1); }
.search--compact { padding: 3px; padding-inline-start: 18px; box-shadow: var(--shadow-sm); }
.search--compact .search-input { font-size: .95rem; padding-block: 8px; }
.search--compact .search-btn { width: 38px; height: 38px; }
.search--compact .search-btn .ico { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 9vw, 96px) 0 clamp(36px, 6vw, 64px); text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.7rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; max-width: 18em; margin-inline: auto; }
.lead { margin: 22px auto 0; max-width: 46rem; font-size: clamp(1rem, 2.2vw, 1.18rem); color: var(--muted); }
.hero-search { max-width: 760px; margin: 38px auto 0; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.chip { background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; color: var(--muted); }
.chip strong { color: var(--ink); font-weight: 700; }
.ipline { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.ipline strong { color: var(--ink); font-family: var(--mono); font-weight: 500; letter-spacing: -.01em; }
.result-top { padding: 22px 0 6px; text-align: center; }
.result-top .hero-search { margin-top: 12px; }

/* ---------- Bölümler ---------- */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 44px; display: grid; gap: 14px; }
.section-head h2, .faq h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.035em; }
.section-head p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-line); }
.feat-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); margin-bottom: 20px; }
.feat h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.feat p { color: var(--muted); font-size: .96rem; }

/* ---------- SSS ---------- */
.faq h2 { margin-bottom: 32px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 4px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { color: var(--muted); transition: transform .25s; }
.faq-item[open] summary .ico { transform: rotate(180deg); color: var(--primary-ink); }
.faq-item summary:hover { color: var(--primary-ink); }
.faq-a { padding: 0 4px 24px; color: var(--muted); max-width: 70ch; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Sonuç ---------- */
.result { padding-top: 28px; padding-bottom: 24px; min-height: 420px; }
.result-head { text-align: center; display: grid; justify-items: center; gap: 14px; margin: 20px 0 32px; }
.result-head h2 { font-size: clamp(2rem, 6.5vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; overflow-wrap: anywhere; max-width: 100%; }
.punyline { font-family: var(--mono); font-size: .8rem; color: var(--muted); direction: ltr; }
.head-row { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; background: var(--primary-soft); color: var(--ink); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill--free { background: var(--primary); color: var(--on-primary); }
.pill--warn { background: #fdf0d4; color: #8a5a06; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--primary-soft); color: var(--ink); }
.icon-btn.is-spinning .ico { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; font-size: .84rem; color: var(--muted); }
.meta-line b { font-weight: 600; color: var(--ink); }
.tag-src { padding: 2px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .75rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.stat { background: var(--primary-softer); border: 1px solid var(--primary-line); border-radius: var(--radius); padding: 22px 24px; min-width: 0; }
.stat-label { font-size: .9rem; color: var(--muted); font-weight: 500; }
.stat-value { margin-top: 8px; font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; line-height: 1.25; }
.stat-sub { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.bar { height: 6px; border-radius: 99px; background: rgba(var(--ink-rgb), .09); margin-top: 14px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--ok); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.bar.is-warn > i { background: var(--warn); } .bar.is-bad > i { background: var(--bad); }
.stat-sub.is-warn { color: #9a6208; } .stat-sub.is-bad { color: var(--bad); }

.offer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 22px; padding: 22px 26px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary-soft), var(--primary-softer)); border: 1px solid var(--primary-line); border-inline-start: 5px solid var(--primary); }
.offer h3 { font-size: 1.25rem; font-weight: 700; }
.offer p { color: var(--muted); margin-top: 4px; }
.offer--free { border-color: var(--primary); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 14px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .98rem; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 18px rgba(var(--primary-rgb), .45); }
.btn--primary:hover { background: var(--primary-strong); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--primary-softer); }

.tabs { margin-top: 38px; }
.tablist-wrap { display: flex; justify-content: center; }
.tablist { display: inline-flex; gap: 4px; padding: 6px; background: var(--primary-soft); border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab { border: 0; background: transparent; padding: 11px 24px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .96rem; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.panel { margin-top: 26px; animation: fadeIn .3s ease; }
.panel[hidden] { display: none; }

.sum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; box-shadow: var(--shadow-sm); }
.box h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 16px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); min-width: 0; }
.list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mono { font-family: var(--mono); font-size: .9rem; direction: ltr; text-align: start; overflow-wrap: anywhere; }
[dir="rtl"] .mono { text-align: right; }
.list small { color: var(--muted); font-size: .84rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.kv dt { color: var(--muted); font-size: .92rem; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--primary-softer); color: var(--muted); font-size: .88rem; }

.raw-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.seg { display: inline-flex; padding: 4px; background: var(--primary-soft); border-radius: 999px; }
.seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font: inherit; font-size: .86rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--sm { padding: 8px 16px; font-size: .86rem; border-radius: 12px; }
pre.raw { margin: 0; padding: 22px; border-radius: var(--radius); background: #0f2227; color: #d6f4e8; font: 400 .84rem/1.7 var(--mono); max-height: 580px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; direction: ltr; text-align: left; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table.dns { width: 100%; border-collapse: collapse; min-width: 560px; }
.dns th { text-align: start; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 18px; background: var(--primary-softer); border-bottom: 1px solid var(--line); }
.dns td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .92rem; }
.dns tr:last-child td { border-bottom: 0; }
.dns td.val { font-family: var(--mono); font-size: .86rem; overflow-wrap: anywhere; word-break: break-word; direction: ltr; text-align: left; }
.dns .typ { display: inline-block; min-width: 52px; text-align: center; padding: 2px 10px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; font-size: .78rem; font-family: var(--mono); }

.notice { text-align: center; padding: 40px 24px; border: 1.5px dashed var(--primary-line); border-radius: var(--radius); background: #fff; display: grid; gap: 16px; justify-items: center; }
.notice h3 { font-size: 1.2rem; }
.result-loading { display: grid; gap: 18px; justify-items: center; }
.skeleton { background: linear-gradient(90deg, var(--primary-soft) 25%, var(--primary-softer) 50%, var(--primary-soft) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-title { width: min(360px, 80%); height: 56px; margin-top: 20px; }
.sk-pill { width: 110px; height: 32px; border-radius: 99px; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; width: 100%; margin-top: 14px; }
.sk-card { height: 132px; border-radius: var(--radius); }
.sk-text { color: var(--muted); display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid var(--primary-line); border-top-color: var(--primary-ink); border-radius: 50%; animation: spin .8s linear infinite; }

.ad-slot { margin: 18px auto; text-align: center; max-width: 100%; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 36px 0 90px; background: rgba(255, 255, 255, .55); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: var(--muted); font-size: .88rem; }
.footer-inner p { max-width: 60ch; }

/* ---------- Geri bildirim ---------- */
.fab { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; box-shadow: var(--shadow-md); transition: transform .2s, border-color .2s; }
.fab:hover { transform: translateY(-2px); border-color: var(--primary); }
.fab .ico { color: var(--primary-ink); }
.modal { border: 0; padding: 0; border-radius: 24px; width: min(480px, calc(100vw - 32px)); box-shadow: var(--shadow-md); color: var(--ink); background: #fff; font-family: var(--font); }
.modal::backdrop { background: rgba(var(--ink-rgb), .5); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .22s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close-form { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; margin: 0; }
.fb-form { padding: 30px 28px 26px; display: grid; gap: 16px; }
.fb-form h3 { font-size: 1.35rem; font-weight: 800; padding-inline-end: 36px; }
.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .3); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.fb-status { min-height: 1.3em; font-size: .9rem; font-weight: 600; }
.fb-status.ok { color: var(--ok); } .fb-status.err { color: var(--bad); }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 80; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Duyarlı ---------- */
@media (max-width: 860px) {
    .header-inner { grid-template-columns: 1fr auto; row-gap: 0; min-height: 64px; }
    .header-search { display: none; grid-column: 1 / -1; padding-bottom: 12px; }
    .show-hsearch .header-search { display: block; }
    .lang-name { display: none; } .lang-code { display: inline; }
}
@media (max-width: 640px) {
    .search { padding-inline-start: 18px; }
    .search-input { font-size: 1rem; }
    .search-btn { width: 46px; height: 46px; }
    .chip { font-size: .82rem; padding: 7px 13px; }
    .offer { flex-direction: column; align-items: stretch; text-align: center; border-inline-start-width: 1px; border-top: 5px solid var(--primary); }
    .offer .btn { width: 100%; }
    .tab { padding: 10px 12px; font-size: .84rem; }
    .tablist { padding: 4px; }
    .card, .box, .stat { padding: 20px; }
    .fab { inset-inline-end: 14px; bottom: 14px; padding: 11px 16px; }
    .modal-actions .btn { flex: 1; }
    .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 10px; }
    .toast { bottom: 76px; max-width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .fab, .search, .chips, .ipline, .site-footer, .ad-slot { display: none !important; } }
