/* =========================================================================
   KeyMint — Koray Öner · şifre araçları · style.css (self-contained)
   ========================================================================= */
:root {
  color-scheme: light dark;
  --brand: #0e7c66; --brand-strong: #0a5f4e; --brand-contrast: #fff;
  --bg: #f7f5f0; --surface: #fff; --surface-2: #f0ece4; --border: #e2ddd2;
  --text: #17201d; --text-muted: #56605c; --focus: #0e7c66;
  --ok: #2e8b57; --warn: #d99a00; --bad: #d24141;
  --radius-sm: 8px; --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,20,.06), 0 8px 24px rgba(16,24,20,.08);
  --step--1: clamp(.82rem,.78rem + .2vw,.9rem);
  --step-0: clamp(1rem,.95rem + .25vw,1.08rem);
  --step-1: clamp(1.2rem,1.1rem + .5vw,1.4rem);
  --step-2: clamp(1.5rem,1.3rem + 1vw,2rem);
  --step-3: clamp(2rem,1.6rem + 2vw,3rem);
  --step-4: clamp(2.5rem,1.9rem + 3vw,4rem);
  --wrap: 900px;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg:#0b0d10; --surface:#14181d; --surface-2:#1b2027; --border:#2a313a;
    --text:#eef1f4; --text-muted:#a4adb6; --brand:#2bb596; --brand-strong:#1f9c80; --focus:#4fd3b4;
    --shadow:0 1px 2px rgba(0,0,0,.4),0 10px 30px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --bg:#0b0d10; --surface:#14181d; --surface-2:#1b2027; --border:#2a313a;
  --text:#eef1f4; --text-muted:#a4adb6; --brand:#2bb596; --brand-strong:#1f9c80; --focus:#4fd3b4;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 10px 30px rgba(0,0,0,.5);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--step-0); line-height: 1.65; -webkit-font-smoothing: antialiased;
}
h1,h2,h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: var(--step-4); } h2 { font-size: var(--step-3); } h3 { font-size: var(--step-1); }
p { margin: 0 0 1rem; }
a { color: var(--brand-strong); text-underline-offset: 2px; }
a:hover { color: var(--brand); }
code { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); border-radius: 6px; padding: .1em .4em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: .75rem; top: -3rem; background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 100; transition: top .15s; }
.skip-link:focus { top: .75rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.btn { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-weight: 600; cursor: pointer; padding: .7rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid transparent; text-decoration: none; transition: background .15s, border-color .15s, transform .12s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-contrast); }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-strong); }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(12px); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: .7rem 0; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-weight: 700; }
.brand-mark { display: grid; place-items: center; inline-size: 30px; block-size: 30px; border-radius: 8px; background: var(--brand); color: #fff; font-size: .95rem; }
.brand-name { font-size: 1.1rem; letter-spacing: -.02em; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: var(--step--1); }
.site-nav a:hover { color: var(--text); }
.theme-toggle { display: inline-flex; align-items: center; gap: .45rem; background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: .45rem .8rem; cursor: pointer; font: inherit; font-size: var(--step--1); }
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle-icon { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ffd479, var(--brand)); }

.breadcrumb { padding-top: 1.25rem; font-size: var(--step--1); color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }

section { padding: clamp(2.5rem,1.5rem + 4vw,4rem) 0; }
.hero { padding: clamp(2.5rem,2rem + 5vw,4.5rem) 0 clamp(1.5rem,1rem + 3vw,3rem); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: var(--step--1); font-weight: 700; color: var(--brand-strong); margin-bottom: 1rem; }
.tool-logo { display: block; width: clamp(52px, 8vw, 64px); height: auto; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 1rem; }
.lede { font-size: var(--step-1); color: var(--text-muted); max-width: 60ch; }

.tool { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.25rem,1rem + 2vw,2rem); box-shadow: var(--shadow); }
.pw-output { display: flex; gap: .6rem; margin-bottom: 1rem; }
.pw-output input {
  flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.15rem;
  padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); letter-spacing: .03em;
}
.pw-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }

.meter { height: 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; margin: .25rem 0 .5rem; }
.meter-bar { height: 100%; width: 0; transition: width .2s ease, background .2s ease; }
.strength-label { font-weight: 700; font-size: var(--step--1); }
.s-bad { color: var(--bad); } .s-warn { color: var(--warn); } .s-ok { color: var(--ok); } .s-strong { color: var(--brand-strong); }
.bar-bad { background: var(--bad); } .bar-warn { background: var(--warn); } .bar-ok { background: var(--ok); } .bar-strong { background: var(--brand); }

.options { display: grid; gap: 1rem; margin-top: 1.5rem; }
.option-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.option-row label { font-weight: 600; }
input[type="range"] { accent-color: var(--brand); width: 100%; }
.checks { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; cursor: pointer; }
.check input { accent-color: var(--brand); width: 18px; height: 18px; }
.count-badge { font-family: ui-monospace, monospace; font-weight: 700; color: var(--brand-strong); }

.pw-check-input {
  width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.1rem;
  padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
}
.result { display: block; font-size: var(--step-2); font-weight: 800; letter-spacing: -.02em; color: var(--brand-strong); min-height: 1.4em; }
:root[data-theme="dark"] .result { color: var(--brand); }
.result .muted-note { display: block; font-size: var(--step--1); font-weight: 500; color: var(--text-muted); margin-top: .35rem; }
.feedback { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .4rem; }
.feedback li { font-size: var(--step--1); color: var(--text-muted); padding-left: 1.4rem; position: relative; }
.feedback li::before { content: "•"; position: absolute; left: .3rem; color: var(--brand); }

.status { margin-top: 1rem; min-height: 1.4em; color: var(--text-muted); font-size: var(--step--1); }

.prose { max-width: 68ch; margin-inline: auto; }
.prose ul { padding-left: 1.25rem; } .prose li { margin-bottom: .4rem; }
.byline { margin-bottom: 2rem; }
.disclaimer { border-left: 3px solid var(--brand); padding: .75rem 1rem; background: var(--surface-2); border-radius: var(--radius-sm); }
.related { border-top: 1px solid var(--border); background: var(--surface-2); }

.faq-list { display: grid; gap: .75rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .25rem 1rem; }
.faq summary { cursor: pointer; font-weight: 600; padding: .75rem 0; }
.faq summary::marker { color: var(--brand); }
.faq details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: .5rem; }

.tool-grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.tool-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.tool-card h3 { margin-bottom: .4rem; } .tool-card h3 a { text-decoration: none; }
.logo-badge { display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); font-size: .8em; vertical-align: middle; margin-right: .35em; }

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: 2rem; }
.muted { color: var(--text-muted); font-size: var(--step--1); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition-duration: .001ms !important; } }
@media (max-width: 600px) { .site-nav { display: none; } .theme-toggle-label { display: none; } }
@media print { .site-header,.theme-toggle,.pw-actions { display: none !important; } body { background: #fff; color: #000; } }
