/* çalışıyormu.com — tasarım sistemi (Nabız Monitörü). Tokenlar DESIGN.md'de belgelenir. */

:root {
    color-scheme: light;
    /* Zemin ve yüzeyler */
    --bg: #f4f4f1;
    --surface: #ffffff;
    --surface-2: #ecece7;
    --line: #e2e2dc;
    --line-strong: #c9c9c1;
    /* Mürekkep */
    --ink: #111214;
    --ink-2: #3b3d42;
    --muted: #686b72;
    --on-ink: #f6f6f3;
    /* Durum */
    --up: #0e7a47;
    --up-line: #17a865;
    --up-soft: #e2f4ea;
    --down: #c8323a;
    --down-line: #e5484d;
    --down-soft: #fbe6e6;
    --partial: #9a6200;
    --partial-line: #f2a516;
    --partial-soft: #fcf0d6;
    --none: #8d9097;
    --none-soft: #ecece7;
    /* Ölçü */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 999px;
    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
    --shadow-1: 0 1px 2px rgb(17 18 20 / .05), 0 2px 8px rgb(17 18 20 / .04);
    --shadow-2: 0 2px 4px rgb(17 18 20 / .06), 0 12px 32px rgb(17 18 20 / .08);
    --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink);
    --font: 'Onest', ui-sans-serif, system-ui, sans-serif;
    --mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', monospace;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --wrap: 1120px;
    --hatch: repeating-linear-gradient(-45deg, transparent 0 6px, rgb(154 98 0 / .16) 6px 8px);
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #0f1012;
        --surface: #17181b;
        --surface-2: #1f2024;
        --line: #2a2b30;
        --line-strong: #3a3c42;
        --ink: #f1f1ee;
        --ink-2: #c9cac6;
        --muted: #9a9ca2;
        --on-ink: #111214;
        --up: #3ed08a;
        --up-line: #2fc27b;
        --up-soft: #12261b;
        --down: #ff6b70;
        --down-line: #ff5c62;
        --down-soft: #2c1517;
        --partial: #ffbf47;
        --partial-line: #f2a516;
        --partial-soft: #2b2110;
        --none: #7b7e85;
        --none-soft: #222327;
        --shadow-1: 0 1px 2px rgb(0 0 0 / .4);
        --shadow-2: 0 2px 4px rgb(0 0 0 / .4), 0 12px 32px rgb(0 0 0 / .35);
        --hatch: repeating-linear-gradient(-45deg, transparent 0 6px, rgb(255 191 71 / .14) 6px 8px);
    }
}

/* Temel */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) transparent; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font: 400 16px/1.55 var(--font); font-feature-settings: 'ss01';
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--on-ink); }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.03em; font-weight: 650; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
code { font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-4); }
@media (min-width: 768px) { .wrap { padding: 0 var(--s-6); } }

/* Üst çubuk */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: var(--s-4); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--up-line); display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; stroke-width: 2.2; }
.brand-mark path { stroke-dasharray: 40; animation: trace 2.4s var(--ease) infinite; }
@keyframes trace { 0% { stroke-dashoffset: 40; } 55%, 100% { stroke-dashoffset: 0; } }
.topbar .search { margin-left: auto; max-width: 360px; flex: 1; }

/* Arama (birincil girdi) */
.search { display: flex; align-items: center; gap: var(--s-2); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); padding: 5px 5px 5px 18px; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent); }
.search .icon { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 16px var(--font); padding: 10px 0; outline: none; }
.search input::placeholder { color: var(--muted); }
.search button { border: 0; border-radius: var(--r-pill); background: var(--ink); color: var(--on-ink); font: 600 15px var(--font); padding: 0 18px; height: 40px; cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), opacity .15s; }
.search button:hover { opacity: .9; }
.search button:active { transform: scale(.97); }
.search--lg { padding: 7px 7px 7px 22px; box-shadow: var(--shadow-2); border-color: transparent; }
.search--lg input { font-size: 19px; padding: 14px 0; }
.search--lg button { height: 52px; padding: 0 26px; font-size: 16px; }
.search--compact { padding: 3px 3px 3px 14px; }
.search--compact input { font-size: 15px; padding: 7px 0; }
.search--compact button { height: 34px; padding: 0 14px; font-size: 14px; }
.field-error { display: flex; align-items: center; gap: 8px; color: var(--down); font-weight: 500; margin-top: var(--s-3); }
.suggest { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); align-items: center; color: var(--muted); font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-pill); padding: 5px 12px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2); transition: border-color .15s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 640px) {
    .topbar .search { display: none; }
    .search--lg { padding-left: 16px; }
    .search--lg input { font-size: 17px; }
    .search--lg button { padding: 0 18px; }
}

/* Butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r-pill); font: 600 15px var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s var(--ease), background .15s, border-color .15s; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink); }
.btn .icon { width: 18px; height: 18px; }

/* Durum dili: renk + simge + (kısmi için) tarama */
.state-icon { display: grid; place-items: center; border-radius: 50%; color: #fff; flex: none; }
.state-icon .icon { stroke-width: 2.6; }
.is-up .state-icon { background: var(--up-line); }
.is-down .state-icon { background: var(--down-line); }
.is-partial .state-icon { background: var(--partial-line); color: #1f1400; }
.is-none .state-icon { background: var(--none); }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-pill); padding: 3px 10px 3px 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.badge.is-up { background: var(--up-soft); color: var(--up); }
.badge.is-down { background: var(--down-soft); color: var(--down); }
.badge.is-partial { background: var(--partial-soft); color: var(--partial); }
.badge.is-none { background: var(--none-soft); color: var(--muted); }

/* Sayfa bölümleri */
main { padding-bottom: var(--s-8); }
.section { margin-top: var(--s-8); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }
.section-head h2 { font-size: 22px; }
.section-head p, .section-head span { color: var(--muted); font-size: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }

/* Ana sayfa giriş */
.intro { padding: var(--s-7) 0 0; max-width: 760px; }
.intro h1 { font-size: clamp(38px, 7.2vw, 72px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.intro h1 em { font-style: normal; color: var(--muted); }
.intro .lede { color: var(--ink-2); font-size: clamp(17px, 2vw, 19px); max-width: 560px; margin: var(--s-5) 0 var(--s-6); }
.intro .search { max-width: 640px; }
.how { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-6); color: var(--muted); font-size: 14px; }
.how span { display: inline-flex; align-items: center; gap: 8px; }
.how .icon { width: 16px; height: 16px; color: var(--ink-2); }

/* Site hücreleri */
.cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-2); }
.cell { position: relative; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: var(--s-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; text-decoration: none; transition: border-color .15s, transform .2s var(--ease), box-shadow .2s; }
.cell:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.cell img { width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); }
.cell-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-meta { font-size: 13px; color: var(--muted); line-height: 1.35; }
.cell .state-icon { width: 22px; height: 22px; }
.cell .state-icon .icon { width: 13px; height: 13px; }
.cell.is-partial { background-image: var(--hatch); }
.cell.is-down { border-color: color-mix(in srgb, var(--down-line) 45%, var(--line)); }
@media (max-width: 640px) { .cells { grid-template-columns: 1fr 1fr; } .cell { grid-template-columns: 20px 1fr auto; gap: 8px; padding: 12px 10px; } .cell img { width: 20px; height: 20px; border-radius: 6px; } }

/* Satır listeleri */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
.rows { overflow: hidden; }
.row { display: flex; align-items: center; gap: var(--s-3); padding: 13px var(--s-4); text-decoration: none; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.row .state-icon { width: 20px; height: 20px; }
.row .state-icon .icon { width: 12px; height: 12px; }
.row-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-when { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.empty { display: flex; align-items: center; gap: var(--s-3); color: var(--muted); padding: var(--s-5) var(--s-4); }
.empty .icon { color: var(--up); }

/* Karar bloğu (site sayfası) */
.verdict { position: relative; margin-top: var(--s-5); border-radius: var(--r-xl); padding: var(--s-6); overflow: hidden; }
.verdict.is-up { background: var(--up-soft); }
.verdict.is-down { background: var(--down-soft); }
.verdict.is-partial { background-color: var(--partial-soft); background-image: var(--hatch); }
.verdict.is-none { background: var(--none-soft); }
.verdict-top { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.verdict .state-icon { width: 48px; height: 48px; }
.verdict .state-icon .icon { width: 26px; height: 26px; }
.verdict-fav { width: 28px; height: 28px; border-radius: 8px; background: var(--surface); padding: 4px; }
.verdict-top .stamp { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.verdict-top .stamp .icon { width: 15px; height: 15px; }
.verdict h1 { font-size: clamp(40px, 6.4vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; overflow-wrap: anywhere; }
.verdict.is-up h1 .v { color: var(--up); }
.verdict.is-down h1 .v { color: var(--down); }
.verdict.is-partial h1 .v { color: var(--partial); }
.verdict .reason { font-size: clamp(16px, 1.8vw, 18px); color: var(--ink-2); max-width: 62ch; margin-top: var(--s-4); }
.verdict-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.verdict-foot .stamp { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.verdict-foot .stamp .icon { width: 15px; height: 15px; }
@media (max-width: 640px) {
    .verdict { padding: var(--s-5); border-radius: var(--r-lg); margin-top: var(--s-3); }
    .verdict-foot .btn { flex: 1; }
}

/* Vital kartları: konum başına nabız */
.vitals { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-3); margin-top: var(--s-3); }
.vital { padding: var(--s-5); display: grid; gap: var(--s-2); }
.vital-head { display: flex; align-items: center; gap: var(--s-2); font-weight: 600; }
.vital-head .icon { width: 18px; height: 18px; color: var(--muted); }
.vital-head .badge { margin-left: auto; }
.vital-value { display: flex; align-items: baseline; gap: 6px; margin-top: var(--s-2); }
.vital-value .num { font-size: 44px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.vital-value .unit { color: var(--muted); font: 500 15px var(--mono); }
.vital-sub { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.vital-sub b { color: var(--ink-2); font-weight: 500; }
.trace { width: 100%; height: 56px; display: block; margin-top: var(--s-2); overflow: visible; }
.trace .area { opacity: .12; }
.trace .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trace .miss { stroke-width: 0; }
.is-up .trace .line, .is-up .trace .area { stroke: var(--up-line); fill: var(--up-line); }
.is-down .trace .line, .is-down .trace .area { stroke: var(--down-line); fill: var(--down-line); }
.is-none .trace .line, .is-none .trace .area { stroke: var(--none); fill: var(--none); }
.trace .line { fill: none !important; }
.trace .miss { fill: var(--down-line); }

/* Geçmiş şeridi: her tur bir hücre, çöküşler kalıcı damga */
.strip { display: flex; gap: 2px; height: 28px; margin-top: var(--s-3); }
.strip { align-items: flex-end; }
.strip i { flex: 1; height: 100%; border-radius: 3px; background: var(--up-line); min-width: 2px; }
/* Renk dışı ayrım: erişilemeyen tur kısa çentik, ölçümsüz tur zemin çizgisi */
.strip i.d { height: 45%; background: var(--down-line); border-radius: 3px 3px 1px 1px; }
.strip i.n { height: 3px; background: var(--line-strong); }
.strip-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 13px; color: var(--muted); margin-top: var(--s-4); }
.strip-head:first-child { margin-top: 0; }
.strip-head span:first-child { font-size: 14px; font-weight: 600; color: var(--ink); }
.strip-head b { color: var(--ink-2); font-weight: 500; }
.strip-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: var(--s-3); font-size: 12px; color: var(--muted); }
.strip-key span { display: inline-flex; align-items: flex-end; gap: 6px; }
.strip-key i { width: 8px; height: 14px; border-radius: 2px; background: var(--up-line); }
.strip-key i.d { height: 7px; background: var(--down-line); }
.strip-key i.n { height: 3px; background: var(--line-strong); }
.strip-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Grafik ve yardım */
.chart-panel { padding: var(--s-5); }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-bottom: var(--s-3); font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.help { padding: var(--s-5); }
.help ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: var(--s-3); }
.help li { counter-increment: s; line-height: 1.5; display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); align-items: start; }
.help li::before { content: counter(s); font: 600 13px var(--mono); width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.note { color: var(--muted); font-size: 14px; margin-top: var(--s-3); }

/* Reklam alanı: karar bloğunun altına, içerik arasına yerleşir */
.slot-ad { height: 120px; margin-top: var(--s-7); border-radius: var(--r-md); overflow: hidden; display: grid; place-items: center; background: var(--surface-2); }
@media (max-width: 640px) { .slot-ad { height: 100px; } }

/* Alt bilgi */
.footer { border-top: 1px solid var(--line); padding: var(--s-6) 0 var(--s-7); color: var(--muted); font-size: 14px; }
.footer .wrap { display: grid; gap: var(--s-3); }
.footer p { max-width: 70ch; }
.footer .brand { font-size: 15px; color: var(--ink); }
.footer .brand-mark { width: 24px; height: 24px; border-radius: 7px; }
.footer .brand-mark svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
.cell-body { min-width: 0; }
.cell-name, .cell-meta { display: block; }
.search input:focus-visible { box-shadow: none; }
.help code { white-space: nowrap; }
.duo > *, .vitals > * { min-width: 0; }
.help li { grid-template-columns: 28px minmax(0, 1fr); }
.btn { white-space: nowrap; }
.topbar-find { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; place-items: center; border: 1.5px solid var(--line-strong); background: var(--surface); }
.topbar-find .icon { width: 20px; height: 20px; }
@media (max-width: 640px) {
    .topbar-find { display: grid; }
    .verdict-foot .btn { flex: 1 1 150px; padding: 0 14px; }
}

/* Ters (koyu) kart: öne çıkan tek blok; ileride takip listesi de bunu kullanır */
.panel--ink { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: var(--shadow-2); }
.panel--ink .row { border-top-color: color-mix(in srgb, var(--on-ink) 12%, transparent); }
.panel--ink .row:hover { background: color-mix(in srgb, var(--on-ink) 6%, transparent); }
.panel--ink .row-when, .panel--ink .note, .panel--ink .empty { color: color-mix(in srgb, var(--on-ink) 66%, var(--ink)); }
.panel--ink .empty .icon { color: var(--up-line); }
.panel--ink .search { border-color: transparent; }
.panel--ink .search button { background: var(--up-line); color: #06170e; }
.feature { padding: var(--s-6); align-self: start; }
.feature h2 { font-size: 22px; }
.feature .note { margin: var(--s-2) 0 var(--s-5); }

/* Alarm yüzeyi: erişilemeyen konum kartı bütünüyle alarma geçer */
.vital.is-down { border-color: var(--down-line); background: linear-gradient(var(--down-soft), var(--surface) 70%); }
.vital.is-down .vital-value .num { color: var(--down); }

/* Tek hareket anı: nabız izleri sayfa açılışında soldan çizilir */
.trace { animation: draw 1.2s var(--ease) both; }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (max-width: 640px) {
    .vitals { grid-template-columns: 1fr 1fr; gap: var(--s-2); }
    .vital { padding: var(--s-4) 14px; gap: 4px; }
    .vital-head { flex-wrap: wrap; font-size: 15px; }
    .vital-head .badge { margin-left: 0; width: 100%; justify-content: center; }
    .vital-head > .icon { display: none; }
    .vital-value { margin-top: 2px; }
    .vital-value .num { font-size: 38px; }
    .vital-sub { font-size: 12px; }
    .trace { height: 40px; }
    .feature { padding: var(--s-5); }
}
.search input { text-overflow: ellipsis; }
/* Mobil hücre: durum simgesi favicon köşesine rozet olur, ad tam genişliği alır */
@media (max-width: 640px) {
    .cell { grid-template-columns: 22px 1fr; column-gap: 16px; align-items: start; padding: 12px; }
    .cell-name { white-space: normal; line-height: 1.25; }
    .cell img { width: 22px; height: 22px; margin-top: 1px; }
    .cell .state-icon { position: absolute; left: 25px; top: 25px; width: 16px; height: 16px; box-shadow: 0 0 0 2px var(--surface); }
    .cell .state-icon .icon { width: 10px; height: 10px; stroke-width: 3; }
}
/* Koyu modda yeşil diskte beyaz simge 3:1'in altında kalır; simge koyulaşır */
@media (prefers-color-scheme: dark) { .is-up .state-icon, .is-down .state-icon { color: #111214; } }

/* Çerez bandı: altta sabit, 16px boşluk */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: var(--s-3) max(var(--s-5), calc((100vw - 1056px) / 2)); border-radius: 0; border-width: 1px 0 0; box-shadow: var(--shadow-2); display: flex; align-items: center; gap: var(--s-3) var(--s-5); }
/* Bant açıkken sayfa sonu bandın altında kalmasın */
body:has(.consent:not([hidden])) { padding-bottom: 96px; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1; font-size: 14px; line-height: 1.4; color: var(--ink); }
.consent-actions { display: flex; gap: var(--s-2); }
.consent-actions .btn { flex: 1; white-space: nowrap; }
@media (max-width: 640px) { .consent { padding: var(--s-2) var(--s-4); gap: var(--s-2); } .consent p { font-size: 13px; } .consent-actions .btn { min-height: 44px; padding: 0 12px; } }
.footer-link { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; padding: 0; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; }
.footer-link:hover { text-decoration: underline; color: var(--ink); }

.footer-link { text-decoration: none; }

/* Üst çubuk yardım düğmesi: arama yoksa sağa yaslanır */
.topbar-help { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: border-color .15s; }
.topbar-help:hover { border-color: var(--ink); }
.topbar-help .icon { width: 18px; height: 18px; }
.topbar .brand + .topbar-help { margin-left: auto; }
@media (max-width: 640px) {
    .topbar-help { width: 44px; height: 44px; padding: 0; justify-content: center; }
    .topbar-help span { display: none; }
    .topbar-help .icon { width: 20px; height: 20px; }
    .topbar-find { margin-left: auto; }
    .topbar-find + .topbar-help { margin-left: 0; }
}

/* Atla bağlantısı: yalnız klavye odağında görünür */
.skip-link { position: absolute; left: var(--s-4); top: -60px; z-index: 20; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: var(--s-3); }
main:focus { outline: none; box-shadow: none; }

/* Yardım sayfası: rehberli onarım, basamaklar zorluğa göre */
.help-page { max-width: 760px; margin: 0 auto; padding-bottom: var(--s-7); }
.help-head { padding-top: var(--s-6); }
.help-head h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; }
.help-head .lede { color: var(--ink-2); font-size: clamp(16px, 1.8vw, 18px); margin-top: var(--s-3); }

.help-context { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-5); padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); }
.help-context.is-up { background: var(--up-soft); }
.help-context.is-down { background: var(--down-soft); }
.help-context.is-partial { background-color: var(--partial-soft); background-image: var(--hatch); }
.help-context.is-none { background: var(--surface); border: 1px solid var(--line); grid-template-columns: 1fr; }
.help-context .state-icon { width: 36px; height: 36px; }
.help-context .state-icon .icon { width: 20px; height: 20px; }
.help-context-body { min-width: 0; display: grid; gap: var(--s-2); }
.help-context-title { color: var(--ink-2); }
.help-context-title strong { color: var(--ink); overflow-wrap: anywhere; }
.help-context-locs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.help-context-locs .num { font-weight: 500; }
.help-context-when { font-size: 13px; color: var(--ink-2); }
.help-context .search { width: 100%; max-width: 480px; }
@media (max-width: 640px) {
    .help-context { grid-template-columns: auto 1fr; padding: var(--s-4); }
    .help-back { grid-column: 1 / -1; }
}

.help-toc { display: flex; gap: var(--s-2); margin-top: var(--s-5); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.help-toc::-webkit-scrollbar { display: none; }
.help-toc .chip { min-height: 44px; padding: 0 16px; white-space: nowrap; flex: none; }
.help-toc .chip .num { font-size: 12px; color: var(--muted); }

.help-step { margin-top: var(--s-7); scroll-margin-top: 80px; }
.help-step-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); margin-bottom: var(--s-3); }
.help-step-head h2 { font-size: 22px; }
.help-step-head h2:focus { outline: none; box-shadow: none; }
.help-step-meta { width: 100%; padding-left: 44px; margin-top: -2px; font-size: 13px; color: var(--muted); }
.help-step-head:not(:has(.step-no)) .help-step-meta { padding-left: 0; }
.step-no { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-size: 14px; font-weight: 600; flex: none; }

.checklist-panel { padding: var(--s-4) var(--s-5) var(--s-5); }
.checklist-title { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin: var(--s-3) 0 var(--s-2); }
.checklist-title:first-child { margin-top: 0; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; }
.checklist label { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; padding: 10px 0; cursor: pointer; }
.checklist input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }

.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-3) var(--s-5); font-weight: 600; border-radius: var(--r-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary > .icon, .help-end-diag summary > .icon { margin-left: auto; color: var(--muted); transition: transform .2s var(--ease); }
.faq details[open] > summary > .icon, .help-end-diag[open] > summary > .icon { transform: rotate(180deg); }
.faq summary:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.faq summary code { font-size: .82em; }
@media (hover: hover) { .faq summary:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); } }
.faq-a { padding: 0 var(--s-5) var(--s-5); color: var(--ink-2); }
.faq-a p, .faq-a ul, .faq-a ol { margin: 0 0 var(--s-3); }
.faq-a > :last-child { margin-bottom: 0; }
.faq-a ul, .faq-a ol { padding-left: 1.3em; display: grid; gap: var(--s-2); }
.faq-a a { color: var(--ink); }
kbd { font: 500 .85em var(--mono); background: var(--surface); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 0 5px; white-space: nowrap; }

/* Komut satırı: bölünmez, kaydırılır, kopyalanır */
.cmd { display: flex; align-items: stretch; margin: var(--s-2) 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); overflow: hidden; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: pre-wrap; overflow-wrap: normal; word-break: normal; padding: 11px 12px; background: none; border-radius: 0; font-size: 14px; scrollbar-width: thin; }
.cmd-copy { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 13px var(--font); cursor: pointer; }
.cmd-copy .icon { width: 16px; height: 16px; }
@media (hover: hover) { .cmd-copy:hover { background: var(--surface-2); } }
.cmd-copy:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); border-radius: 0; }
li .cmd { margin-bottom: 0; }

.caution { display: flex; gap: var(--s-2); align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); font-size: 14px; font-weight: 500; }
.caution .icon { width: 18px; height: 18px; margin-top: 1px; flex: none; }

.help-next { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-4); }
.help-next-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: none; }
.help-next-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
@media (hover: hover) { .help-next-link:hover .icon { transform: translateX(3px); } }

.help-end { margin-top: var(--s-7); padding: var(--s-6); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.help-end code { background: color-mix(in srgb, var(--on-ink) 14%, transparent); color: var(--on-ink); }
.help-end h2 { font-size: 22px; }
.help-end-list { margin: 0; padding-left: 1.3em; display: grid; gap: var(--s-2); color: color-mix(in srgb, var(--on-ink) 82%, var(--ink)); }
.help-end-diag { border-top: 1px solid color-mix(in srgb, var(--on-ink) 14%, transparent); padding-top: var(--s-2); }
.help-end-diag summary { list-style: none; display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; }
.help-end-diag summary::-webkit-details-marker { display: none; }
.help-end-diag .faq-a { padding: var(--s-2) 0 0; color: color-mix(in srgb, var(--on-ink) 82%, var(--ink)); }
.help-end-diag .cmd { border-color: color-mix(in srgb, var(--on-ink) 18%, transparent); background: color-mix(in srgb, var(--on-ink) 8%, var(--ink)); }
.help-end-diag .cmd code { color: var(--on-ink); }
.help-end-diag .cmd-copy { background: transparent; color: var(--on-ink); border-left-color: color-mix(in srgb, var(--on-ink) 18%, transparent); }
.help-end-btn { justify-self: start; background: var(--up-line); color: #06170e; }
@media (max-width: 640px) {
    .help-end { padding: var(--s-5); }
    .help-end-btn { justify-self: stretch; }
    .checklist-panel { padding: var(--s-3) var(--s-4) var(--s-4); }
    .faq summary { padding: var(--s-3) var(--s-4); }
    .faq-a { padding: 0 var(--s-4) var(--s-4); }
}
.help-context .badge { background: var(--surface); }

/* Kararlı yardım başlığı: ?site= varsa sayfanın başlığı kararın kendisi */
.help-verdict { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-3); align-items: center; margin-top: var(--s-5); padding: var(--s-5); border-radius: var(--r-xl); }
.help-verdict.is-up { background: var(--up-soft); }
.help-verdict.is-down { background: var(--down-soft); }
.help-verdict.is-partial { background-color: var(--partial-soft); background-image: var(--hatch); }
.help-verdict .state-icon { width: 40px; height: 40px; }
.help-verdict .state-icon .icon { width: 22px; height: 22px; }
.help-verdict h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; overflow-wrap: anywhere; }
.help-verdict.is-up .v { color: var(--up); }
.help-verdict.is-down .v { color: var(--down); }
.help-verdict.is-partial .v { color: var(--partial); }
.help-verdict-sub, .help-verdict .help-context-locs, .help-back { grid-column: 1 / -1; }
.help-verdict-sub { color: var(--ink-2); }
.help-verdict .badge { background: var(--surface); }
.help-back { justify-self: start; }
@media (max-width: 640px) {
    .help-verdict { padding: var(--s-4); border-radius: var(--r-lg); }
    .help-verdict .state-icon { width: 32px; height: 32px; align-self: start; margin-top: 2px; }
    .help-back { justify-self: stretch; }
}

/* Kısmi/kapalı durumda adımlar katlı */
.help-anyway { margin-top: var(--s-6); }
.help-anyway > summary { list-style: none; display: inline-flex; }
.help-anyway > summary::-webkit-details-marker { display: none; }
.help-anyway > summary .icon { transition: transform .2s var(--ease); }
.help-anyway[open] > summary .icon { transform: rotate(180deg); }

.faq summary, .help-end-diag summary, .help-anyway > summary { -webkit-tap-highlight-color: transparent; }
.faq details { scroll-margin-top: 80px; }
.help-next .btn { white-space: normal; text-align: center; }
@media (max-width: 640px) { .help-next .btn { width: 100%; } }

/* Yardım turu 3: sızıntı, yan bölümler, cihaz geçişi */
.help-anyway:not([open]) > :not(summary) { display: none; }
.help-anyway .acik-etiket, .help-anyway[open] .kapali-etiket { display: none; }
.help-anyway[open] .acik-etiket { display: inline; }
.help-context-body { grid-template-columns: minmax(0, 1fr); }
.help-context-body > * { min-width: 0; }
.help-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: var(--s-3); font-size: 14px; color: var(--muted); }
.help-switch a { color: var(--ink); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.help-step--side { padding-top: var(--s-5); border-top: 1px solid var(--line); }
.help-step--side .help-step-head h2 { font-size: 18px; color: var(--ink-2); }
.help-end-text { color: color-mix(in srgb, var(--on-ink) 82%, var(--ink)); }
@media (max-width: 640px) { .help-toc { flex-wrap: wrap; overflow-x: visible; } }

/* Ana sayfa panosu: "Türkiye'de şu an" */
.board-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-4); }
.board-head h2 { font-size: 22px; }
.board-stamp { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.board-stamp .icon { width: 15px; height: 15px; }
.board-stamp .num { color: var(--ink); font-weight: 500; }
.board-problems { margin-bottom: var(--s-4); }
.board-calm { display: flex; gap: var(--s-3); align-items: flex-start; margin: 0 0 var(--s-4); padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); color: var(--ink-2); }
.board-calm.is-up { background: var(--up-soft); }
.board-calm.is-none { background: var(--none-soft); }
.board-calm .state-icon { width: 28px; height: 28px; margin-top: -2px; }
.board-calm .state-icon .icon { width: 16px; height: 16px; }
.board-calm strong { color: var(--ink); }
.board-calm a { color: var(--ink); font-weight: 600; }

.cell.is-none { opacity: .72; }
.cell.is-none .cell-meta { color: var(--muted); }
.locs { display: flex; gap: 4px; margin-top: 4px; }
.loc { display: inline-flex; align-items: center; gap: 2px; font: 600 12px var(--mono); letter-spacing: .02em; padding: 1px 6px 1px 3px; border-radius: var(--r-pill); }
.loc .icon { width: 12px; height: 12px; stroke-width: 3; }
.loc.is-up { background: var(--up-soft); color: var(--up); }
.loc.is-down { background: var(--down-soft); color: var(--down); }
.loc.is-none { background: var(--none-soft); color: var(--muted); }
.suggest .chip { min-height: 44px; padding: 0 14px; }

/* Bekleme durumu: ölçüm sürerken */
.search.is-loading button { cursor: progress; animation: soluk 1.2s var(--ease) infinite; }
.search.is-loading button:disabled { opacity: 1; }
@keyframes soluk { 50% { opacity: .72; } }
.cell.is-loading, .row.is-loading, .chip.is-loading { cursor: progress; border-color: var(--ink); }
.cell.is-loading .state-icon, .row.is-loading .state-icon { animation: nabiz 1s var(--ease) infinite; }
@keyframes nabiz { 50% { transform: scale(.82); opacity: .6; } }
.panel--ink .row:focus-visible { box-shadow: inset 0 0 0 2px var(--on-ink); }

.board-calm.is-down { background: var(--down-soft); }
.board-calm.is-partial { background-color: var(--partial-soft); background-image: var(--hatch); }
.board-sub { font-size: 15px; font-weight: 600; color: var(--ink-2); margin: var(--s-6) 0 var(--s-3); letter-spacing: -.01em; }
.board .board-problems { margin-bottom: 0; }
@media (max-width: 640px) {
    .suggest { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--s-4)); padding-right: var(--s-4); }
    .suggest::-webkit-scrollbar { display: none; }
    .suggest > * { flex: none; }
}

/* İletişim formu */
.contact-page { max-width: 640px; margin: 0 auto; padding-bottom: var(--s-7); }
.contact-form { padding: var(--s-6); margin-top: var(--s-5); display: grid; gap: var(--s-5); }
.contact-ok { margin-top: var(--s-5); }
.field { display: grid; gap: var(--s-2); min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 400 16px/1.5 var(--font); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent); border-radius: var(--r-sm); }
.field [aria-invalid="true"] { border-color: var(--down-line); }
.field .field-error { margin-top: 0; font-size: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.contact-form .note { margin: 0; }
.contact-form .btn { justify-self: start; min-height: 48px; padding: 0 24px; }
.tuzak { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
    .contact-form { padding: var(--s-5); }
    .field-row { grid-template-columns: 1fr; }
    .contact-form .btn { justify-self: stretch; }
}

/* Çok yakında: kişisel liste */
.soon { display: grid; gap: var(--s-2); margin-top: var(--s-6); padding: var(--s-5); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.soon-when { margin-left: var(--s-2); font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.soon h2 { font-size: 18px; }
.soon p { color: var(--ink-2); max-width: 62ch; }
.soon a { color: var(--ink); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.help-end-list a { color: var(--on-ink); font-weight: 600; }

/* Ana sayfa panosu: mobilde ilk 8 hücre, kalanı "Tüm siteleri göster" ile */
.cells-more { margin-top: var(--s-3); width: 100%; min-height: 48px; }
@media (max-width: 640px) { .cells.is-kisa .cell.is-fazla { display: none; } }
@media (min-width: 641px) { .cells-more { display: none; } }
