/* PassGen – ortak site stilleri (docs/) */

/* ---------- Tasarım token'ları ---------- */
:root {
  --bg: #0b0f17;
  --surface: #111827;
  --raised: #1f2937;
  --border: #2a3342;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --dim: #6b7280;
  --accent: #10b981;
  --accent-dim: rgba(16,185,129,0.12);
  --accent-glow: rgba(16,185,129,0.25);
  --amber: #f59e0b;
  --red: #ef4444;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1080px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Sıfırlama / taban ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: radial-gradient(circle at 80% -10%, rgba(16,185,129,0.08), transparent 45%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
.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;
}
.skip {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: #042f1a;
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 700; z-index: 100;
}
.skip:focus { left: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* ---------- Dil değiştirici ---------- */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--raised); color: var(--muted); border: 1px solid var(--border);
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 7px 10px; border-radius: var(--radius-sm); cursor: pointer;
}
.lang-toggle:hover { color: var(--text); border-color: var(--accent); }

/* ---------- Üst menü ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,23,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; color: #fff; }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 18px; list-style: none; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 14px; border-radius: var(--radius-sm);
  padding: 11px 18px; cursor: pointer; border: 1px solid transparent; transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #042f1a; box-shadow: 0 8px 22px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(16,185,129,0.4); }
.btn-secondary { background: var(--raised); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: #374151; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 13px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 72px 0 40px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px;
  background: var(--accent-dim); border: 1px solid rgba(16,185,129,0.35); color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 900; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 40%, #a7f3d0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 17px; color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Canlı demo ---------- */
.section { padding: 56px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; margin-bottom: 8px; }
.sec-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.demo-card {
  max-width: 620px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: 0 24px 50px rgba(0,0,0,0.45);
}
.gen-output {
  display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px; min-height: 54px;
}
.gen-pwd {
  flex: 1; font-family: var(--mono); font-size: 18px; letter-spacing: .5px; color: #d2f4e8;
  word-break: break-all; user-select: all;
}
.gen-actions { display: flex; gap: 2px; }
.gen-actions button {
  background: none; border: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 6px; display: flex;
}
.gen-actions button:hover { color: var(--accent); background: var(--accent-dim); }
.gen-actions svg { width: 18px; height: 18px; }
.gen-strength { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.gen-bar { flex: 1; height: 6px; background: var(--raised); border-radius: 999px; overflow: hidden; }
.gen-bar span { display: block; height: 100%; width: 0; background: var(--red); border-radius: 999px; transition: width .3s, background .3s; }
.gen-strength .val { font-size: 12px; font-weight: 600; color: var(--muted); min-width: 84px; text-align: right; }
.gen-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--dim); }
.gen-label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin: 18px 0 8px; }
.gen-label b { color: var(--accent); font-size: 16px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 999px; background: var(--raised); outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: none; border-radius: 50%; background: var(--accent); }
.gen-presets { display: flex; gap: 6px; margin-top: 10px; }
.gen-presets button, .chip {
  background: var(--raised); border: 1px solid var(--border); color: var(--muted);
  font: inherit; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; cursor: pointer;
}
.gen-presets button:hover, .chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.gen-chars { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.gen-chars label {
  display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border);
  padding: 9px 12px; border-radius: var(--radius-sm); font-size: 13px; color: var(--muted); cursor: pointer;
}
.gen-chars label:hover { border-color: var(--accent); color: var(--text); }
.gen-chars input { accent-color: var(--accent); width: 15px; height: 15px; }
.gen-exclude { margin-top: 18px; }
.gen-exclude .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
input[type="text"], input[type="search"] {
  width: 100%; background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-family: var(--mono); font-size: 13px; padding: 9px 12px; outline: none;
}
input[type="text"]:focus { border-color: var(--accent); }
.gen-cta { margin-top: 20px; }

/* ---------- Arayüz mockup'ı ---------- */
.mockup-wrap { display: flex; justify-content: center; }
.mockup {
  width: 340px; background: #0d1117; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px; box-shadow: 0 30px 60px rgba(0,0,0,0.55); font-size: 12px;
}
.mockup-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mockup-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.mockup-brand svg { width: 20px; height: 20px; color: var(--accent); }
.mockup-tabs { display: flex; gap: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 3px; margin-bottom: 12px; }
.mockup-tabs span { flex: 1; text-align: center; padding: 6px; border-radius: 5px; color: var(--dim); font-weight: 600; font-size: 11px; }
.mockup-tabs span.on { background: var(--raised); color: var(--accent); }
.mockup-pwd { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; }
.mockup-pwd .p { flex: 1; font-family: var(--mono); font-size: 12px; color: #d2f4e8; word-break: break-all; }
.mockup-bar { height: 3px; background: var(--raised); border-radius: 999px; margin-top: 9px; overflow: hidden; }
.mockup-bar span { display: block; height: 100%; width: 88%; background: var(--accent); }
.mockup-row { display: flex; justify-content: space-between; font-size: 10px; color: var(--dim); margin-top: 6px; }
.mockup-settings { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-top: 12px; }
.mockup-settings .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; display: flex; justify-content: space-between; margin-bottom: 7px; }
.mockup-settings .lbl b { color: var(--accent); }
.mockup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 9px; }
.mockup-grid span { background: var(--bg); border: 1px solid var(--border); border-radius: 5px; padding: 6px 8px; font-size: 10px; color: var(--muted); }
.mockup-btn { width: 100%; margin-top: 12px; background: var(--accent); color: #042f1a; text-align: center; font-weight: 700; padding: 9px; border-radius: 8px; font-size: 12px; }

/* ---------- Özellik kartları ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.card p { font-size: 14px; color: var(--muted); }
.card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-dim); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card .ico svg { width: 22px; height: 22px; }

/* ---------- Karşılaştırma tablosu ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
thead th { background: var(--surface); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tbody tr:last-child td { border-bottom: none; }
td.yes { color: var(--accent); font-weight: 700; }
td.no { color: var(--dim); }
.col-pg { color: var(--text); font-weight: 700; }

/* ---------- SSS ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 18px 16px; color: var(--muted); font-size: 14px; }

/* ---------- Ekosistem kartları ---------- */
.eco-grid { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.eco-grid--single { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
.eco-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.eco-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.eco-card p { color: var(--muted); font-size: 14px; margin-bottom: 4px; }

/* ---------- Alt bilgi ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 40px 0 30px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; }
.footer-brand svg { width: 22px; height: 22px; color: var(--accent); }
.footer-links { display: flex; gap: 18px; list-style: none; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--dim); }

/* ---------- Metin sayfaları (pro/support/privacy) ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 56px 0; }
.page-head { text-align: center; margin-bottom: 40px; }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; margin-bottom: 10px; }
.page-head p { color: var(--muted); }
.prose h2 { font-size: 16px; font-weight: 700; margin: 28px 0 10px; padding-left: 12px; border-left: 3px solid var(--accent); }
.prose p, .prose li { color: var(--muted); font-size: 14.5px; margin-bottom: 8px; }
.prose ul { padding-left: 22px; margin-bottom: 10px; }
.feature-list { list-style: none; display: grid; gap: 12px; margin: 8px 0 4px; }
.feature-list li { display: flex; gap: 12px; color: var(--muted); font-size: 14.5px; }
.feature-list .tick { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-dim); border: 1px solid rgba(16,185,129,0.4); color: var(--accent); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.support-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 18px; }
.support-card h3 { font-size: 18px; margin-bottom: 8px; }
.crypto-box { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; flex-wrap: wrap; }
.crypto-box code { font-family: var(--mono); font-size: 12px; color: var(--amber); word-break: break-all; flex: 1; }
.toast-note { color: var(--accent); font-size: 12px; font-weight: 600; margin-top: 8px; height: 16px; }

/* ---------- Bildirim ---------- */
#pg-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  background: var(--surface); color: var(--accent); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
  padding: 12px 18px; font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none;
}
#pg-toast.show { opacity: 1; transform: translateY(0); }

/* ---------- Duyarlı ---------- */@media (max-width: 820px) {
  .eco-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 28px; }
  .gen-chars { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* ---------- Açık tema ---------- */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fa; --surface: #ffffff; --raised: #eef1f4; --border: #d7dde3;
    --text: #1b2430; --muted: #55606d; --dim: #7a8592;
    --accent-dim: rgba(16,185,129,0.14);
  }
  body { background: radial-gradient(circle at 80% -10%, rgba(16,185,129,0.10), transparent 45%), var(--bg); }
  .site-header { background: rgba(246,248,250,0.85); }
  .hero h1 { background: linear-gradient(135deg, #0f1720 40%, #0d7a5a 100%); -webkit-background-clip: text; background-clip: text; }
  .brand, .footer-brand { color: #0f1720; }
  .btn-primary { color: #042f1a; }
  .mockup { background: #ffffff; }
  .mockup-pwd .p, .gen-pwd { color: #0b5e45; }
  .card .ico, .feature-list .tick { color: #0b7a59; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
