/* ============================================
   ŞifreUret.io — Şifre Oluşturucu Sitesi
   AdSense Uyumlu, Temiz & Profesyonel
   ============================================ */

:root {
  --bg:        #0f1117;
  --bg2:       #181c27;
  --bg3:       #1e2235;
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.14);
  --text:      #e8eaf2;
  --text2:     #9aa0b8;
  --text3:     #5c6280;
  --accent:    #6366f1;
  --accent2:   #818cf8;
  --green:     #10b981;
  --radius:    14px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── HEADER ─── */
.header {
  background: rgba(15,17,23,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.logo-accent { color: var(--accent2); }
.nav { display: flex; gap: 24px; }
.nav-link {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

/* ─── AD PLACEHOLDERS ─── */
.ad-placeholder {
  background: var(--bg2);
  border: 1px dashed var(--border2);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 0.82rem;
  text-align: center;
  position: relative;
  padding: 12px;
}
.ad-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg3);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  color: var(--text3);
}
.ad-top  { margin: 0; padding: 18px 20px; min-height: 80px; border-radius: 0; }
.ad-mid  { min-height: 80px; margin: 20px auto; }
.ad-bottom { min-height: 80px; margin: 20px auto 0; }
.ad-sidebar { min-height: 250px; width: 100%; }

/* ─── HERO ─── */
.hero {
  position: relative;
  text-align: center;
  padding: 60px 0 40px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
}
.g1 { width: 500px; height: 500px; background: var(--accent); top: -200px; left: -100px; }
.g2 { width: 400px; height: 400px; background: #06b6d4;      bottom: -150px; right: -80px; }

.hero-badge {
  display: inline-block;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--accent2);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.2;
}
.hero-sub {
  color: var(--text2);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── TOOL SECTION ─── */
.tool-section { padding: 30px 0 50px; }
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 768px) {
  .tool-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ─── MAIN CARD ─── */
.main-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

/* ─── TABS ─── */
.tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.tab {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border2);
  background: none;
  color: var(--text2);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.tab:hover { color: var(--text); border-color: var(--border2); }
.tab.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ─── OUTPUT ─── */
.output-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.output-box {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  word-break: break-all;
  min-height: 54px;
  display: flex;
  align-items: center;
  letter-spacing: 0.03em;
}
.output-actions { display: flex; flex-direction: column; gap: 8px; }

.icon-btn {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.15s, border-color 0.15s;
  color: var(--text2);
}
.icon-btn:hover { background: var(--border); border-color: var(--border2); color: var(--text); }
.icon-btn.small { width: 34px; height: 34px; font-size: 0.95rem; }

/* ─── STRENGTH ─── */
.strength-bar-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.strength-bar {
  flex: 1;
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  border-radius: 3px;
  width: 0%;
  transition: width 0.4s ease, background 0.4s ease;
}
.strength-label { font-size: 0.82rem; font-weight: 600; min-width: 90px; text-align: right; }

/* ─── DIVIDER ─── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ─── SLIDER ─── */
.slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.slider-label { font-size: 0.88rem; color: var(--text2); white-space: nowrap; }
.slider-row input[type=range] {
  flex: 1;
  accent-color: var(--accent);
  cursor: pointer;
}
.slider-val { font-size: 0.9rem; font-weight: 600; color: var(--text); min-width: 28px; text-align: right; }

/* ─── OPTIONS ─── */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.opt-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.opt-check:hover { border-color: var(--accent); background: rgba(99,102,241,0.06); }
.opt-check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.opt-name { display: block; font-size: 0.88rem; font-weight: 500; color: var(--text); }
.opt-example { display: block; font-size: 0.75rem; color: var(--text2); font-family: monospace; }

/* ─── GENERATE BUTTON ─── */
.btn-generate {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  margin-bottom: 20px;
}
.btn-generate:hover { opacity: 0.9; }
.btn-generate:active { transform: scale(0.99); }

/* ─── STATS ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 500px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.stat-num { display: block; font-size: 1.1rem; font-weight: 700; color: var(--accent2); }
.stat-lbl { display: block; font-size: 0.72rem; color: var(--text2); margin-top: 2px; }

/* ─── MULTI LIST ─── */
.multi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.opt-label-inline {
  font-size: 0.88rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.opt-label-inline select {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 6px 10px;
  font-size: 0.88rem;
  cursor: pointer;
}
.multi-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.multi-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.multi-pw { flex: 1; font-family: monospace; font-size: 0.9rem; color: var(--text); word-break: break-all; }

/* ─── SIDEBAR ─── */
.sidebar { display: flex; flex-direction: column; gap: 16px; }

/* ─── HOW SECTION ─── */
.how-section { padding: 60px 0; background: var(--bg2); }
.section-title {
  text-align: center;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 40px;
}
.how-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.how-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  max-width: 260px;
  flex: 1;
  min-width: 200px;
  text-align: center;
}
.how-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 14px;
}
.how-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.how-card p  { color: var(--text2); font-size: 0.88rem; line-height: 1.6; }
.how-arrow { font-size: 1.4rem; color: var(--accent2); align-self: center; margin-top: -10px; }
@media (max-width: 600px) { .how-arrow { transform: rotate(90deg); flex-basis: 100%; text-align: center; } }

/* ─── FEATURES ─── */
.features-section { padding: 60px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p  { color: var(--text2); font-size: 0.88rem; line-height: 1.6; }

/* ─── ARTICLE SECTION ─── */
.article-section { padding: 60px 0; background: var(--bg2); }
.article-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 768px) { .article-inner { grid-template-columns: 1fr; } .article-ad { display: none; } }
.article-content h2 { font-size: 1.3rem; font-weight: 600; margin: 28px 0 12px; color: var(--text); }
.article-content h2:first-child { margin-top: 0; }
.article-content p  { color: var(--text2); font-size: 0.93rem; line-height: 1.8; margin-bottom: 14px; }
.article-content ul { color: var(--text2); font-size: 0.93rem; line-height: 1.8; padding-left: 20px; }
.article-content ul li { margin-bottom: 6px; }
.article-content strong { color: var(--text); font-weight: 600; }

/* ─── FAQ ─── */
.faq-section { padding: 60px 0; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--bg3); }
.faq-icon { font-size: 1.3rem; color: var(--accent2); flex-shrink: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: var(--text2);
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 0 20px;
}
.faq-item.open .faq-a { padding-bottom: 18px; }

/* ─── FOOTER ─── */
.footer { background: #0a0b10; border-top: 1px solid var(--border); padding: 40px 0; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-logo { font-size: 1.2rem; font-weight: 700; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text2); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text3); font-size: 0.8rem; }
.footer-note { color: var(--text3); font-size: 0.75rem; }

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e2235;
  border: 1px solid var(--accent);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 50px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 999;
  white-space: nowrap;
}
.toast.show { opacity: 1; }
