/* =============================================
   [vr] ŞİFRE OLUŞTURUCU — Bento Design
   Veriyum Teknoloji A.Ş.
   ============================================= */

/* =============================================
   RESET & BASE
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color .35s ease, color .35s ease;
  font-family: "Geist", "SF Pro Text", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input[type="checkbox"] { cursor: pointer; accent-color: var(--accent); }

.container {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================
   DESIGN TOKENS
   ============================================= */

:root {
  --paper: oklch(18% 0.008 75);
  --ink: oklch(88% 0.008 75);
  --ink-dim: oklch(55% 0.008 75);
  --accent: oklch(62% 0.16 30);
  --accent-subtle: oklch(62% 0.16 30 / 0.1);
  --surface: oklch(21% 0.008 75);
  --surface-raised: oklch(24% 0.008 75);
  --border: oklch(28% 0.008 75);
  --shadow: oklch(0% 0 0 / 0.2);
  --shadow-hover: oklch(0% 0 0 / 0.3);
  --strength-weak: oklch(55% 0.16 30);
  --strength-fair: oklch(58% 0.14 55);
  --strength-good: oklch(52% 0.12 130);
  --strength-strong: var(--accent);
}

/* =============================================
   LAYOUT
   ============================================= */

header {
  width: 100%;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: .5rem; }
.logo a { display: flex; align-items: center; }
.logo a img { display: block; height: 28px; width: auto; }
.logo span { font-size: .95rem; font-weight: 500; color: var(--ink); white-space: nowrap; }

.lang-group {
  display: flex;
  gap: 2px;
  background: var(--surface);
  padding: .25rem .35rem;
  border-radius: 2rem;
  border: 1px solid var(--border);
}

.lang-btn {
  border-radius: 2rem;
  font-size: .7rem;
  padding: .2rem .45rem;
  color: var(--ink-dim);
  font-weight: 600;
  letter-spacing: .03em;
  transition: all .2s ease;
}
.lang-btn.active { background: var(--ink); color: var(--paper); }

main { flex: 1; padding: 2rem 0 4rem; }

/* =============================================
   HERO
   ============================================= */

.hero { padding: 3rem 0 2rem; text-align: center; }

.hero h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
  background: linear-gradient(135deg, var(--ink), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  margin: 0 auto;
  font-size: .95rem;
  line-height: 1.6;
  max-width: 34em;
}

/* =============================================
   GENERATOR PANEL
   ============================================= */

.generator-panel {
  margin-bottom: 3rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 12px var(--shadow);
}

.password-display {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  overflow: hidden;
  background: var(--paper);
}

.password-display input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 0;
  font-family: "Geist", sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  outline: none;
  min-width: 0;
}

.password-display button {
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: .8rem;
  background: var(--accent);
  color: white;
  transition: all .2s ease;
  white-space: nowrap;
}
.password-display button:hover { opacity: .88; }

/* =============================================
   STRENGTH METER
   ============================================= */

.strength-meter { margin-bottom: 1.5rem; }

.strength-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.strength-bar-bg {
  height: 4px;
  border-radius: 1px;
  overflow: hidden;
  background: var(--border);
}

#strength-bar {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width .3s ease, background-color .3s ease;
}

#strength-bar.weak { background: var(--strength-weak); }
#strength-bar.fair { background: var(--strength-fair); }
#strength-bar.good { background: var(--strength-good); }
#strength-bar.strong { background: var(--strength-strong); }

/* =============================================
   OPTIONS
   ============================================= */

.options-group { margin-bottom: 1.25rem; }

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}
.option-row:last-child { border-bottom: 0; }

.option-row label { font-size: .875rem; }

.length-control {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.length-control input[type="range"] {
  width: 120px;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}
.length-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: white;
  border: 2px solid var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 4px var(--shadow);
}
.length-control input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: white;
  border: 2px solid var(--accent);
  border-radius: 50%;
  cursor: pointer;
}

#length-value {
  min-width: 2rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
}

#generate-btn {
  width: 100%;
  padding: .9rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  background: var(--ink);
  color: var(--paper);
  border-radius: .75rem;
  box-shadow: 0 2px 8px var(--shadow-btn);
  transition: all .2s ease;
}
#generate-btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow-hover);
}

/* =============================================
   INFO SECTION
   ============================================= */

.info-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 6px var(--shadow);
  transition: box-shadow .2s ease;
}
.info-card:hover { box-shadow: 0 3px 12px var(--shadow-hover); }

.info-card h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: .75rem;
  letter-spacing: -.02em;
  color: var(--ink);
}

.info-card p { font-size: .9rem; line-height: 1.65; color: var(--ink-dim); }

.info-card ul { margin-top: 1rem; }

.info-card ul li {
  font-size: .875rem;
  line-height: 1.6;
  padding-left: 1.25rem;
  position: relative;
  color: var(--ink-dim);
}

.info-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* =============================================
   FAQ
   ============================================= */

.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  padding: 1rem 0;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.1rem;
  font-weight: 400;
  transition: transform .25s ease;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  font-size: .875rem;
  line-height: 1.65;
  color: var(--ink-dim);
  transition: max-height .35s ease, padding .35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1rem;
}

/* =============================================
   FOOTER
   ============================================= */

footer {
  padding: 2.5rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--ink-dim);
}

footer p { font-size: .8rem; margin-bottom: .25rem; }

footer .footer-company { font-weight: 700; font-size: .85rem; }

footer a { text-decoration: underline; text-underline-offset: 2px; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 640px) {
  .container { padding: 0 1rem; }

  .hero { padding: 2rem 0 1.5rem; }
  .hero h1 { font-size: 1.6rem; }

  .header-controls { gap: .3rem; }

  .password-display { flex-direction: column; gap: 0; }
  .password-display button { width: 100%; }

  .option-row { flex-wrap: wrap; gap: .25rem; }
  .option-row label { font-size: .8rem; }

  .length-control input[type="range"] { width: 80px; }

  .generator-panel { padding: 1rem; }
}
