/* ==========================================================================
   ana.css — Tasarım Sistemi & Global Stiller
   Awwwards seviyesinde: Sessiz lüks + klinik temizlik
   ========================================================================== */

/* --------------------------------------------------------------------------
   Özel CSS Değişkenleri (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  --renk-arkaplan:   #FAFAF7;
  --renk-yuzey:      #FFFFFF;
  --renk-metin:      #0F0F0F;
  --renk-soluk:      #6B6B68;
  --renk-vurgu:      #D4548C;
  --renk-vurgu-alt:  #C9A96E;
  --renk-basari:     #6B8E6B;
  --renk-hata:       #D4634A;
  --renk-sinir:      #EAEAE6;

  --yuzey-golgesi:   0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --kart-golgesi:    0 2px 8px rgba(0,0,0,0.04), 0 16px 40px rgba(0,0,0,0.07);

  --yari-cerceve:    12px;
  --yari-buton:      8px;
  --yari-pil:        999px;

  --font-display:   'Fraunces', Georgia, serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', 'Courier New', monospace;

  --gecis:          0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --gecis-yay:      0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--renk-metin);
  background: var(--renk-arkaplan);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* --------------------------------------------------------------------------
   Tipografi
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.mono { font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   Butonlar
   -------------------------------------------------------------------------- */
.btn-birincil {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--renk-vurgu);
  color: #fff;
  border-radius: var(--yari-buton);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--gecis);
  white-space: nowrap;
}

.btn-birincil:hover {
  background: #bf3d79;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 84, 140, 0.3);
}

.btn-birincil:active { transform: translateY(0); }

.btn-ikincil {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--renk-yuzey);
  color: var(--renk-metin);
  border: 1.5px solid var(--renk-sinir);
  border-radius: var(--yari-buton);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--gecis);
  white-space: nowrap;
}

.btn-ikincil:hover {
  border-color: var(--renk-metin);
  background: var(--renk-yuzey);
}

.btn-hata {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--renk-hata);
  color: #fff;
  border-radius: var(--yari-buton);
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--gecis);
}

.btn-hata:hover { background: #be5239; }

.btn-buyuk { padding: 16px 36px; font-size: 1rem; border-radius: 10px; }
.btn-kucuk { padding: 8px 16px; font-size: 0.8125rem; }
.btn-tam   { width: 100%; justify-content: center; }

/* --------------------------------------------------------------------------
   Form Elemanları
   -------------------------------------------------------------------------- */
.form-grup {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-etiket {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--renk-metin);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-girdi {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--renk-sinir);
  border-radius: var(--yari-buton);
  font-size: 0.9375rem;
  color: var(--renk-metin);
  background: var(--renk-yuzey);
  transition: border-color var(--gecis), box-shadow var(--gecis);
  outline: none;
}

.form-girdi:focus {
  border-color: var(--renk-vurgu);
  box-shadow: 0 0 0 3px rgba(212, 84, 140, 0.1);
}

.form-girdi::placeholder { color: #ADADAA; }
.form-select { appearance: none; cursor: pointer; }
.form-yardim { font-size: 0.8125rem; color: var(--renk-soluk); margin-bottom: 8px; }
.form-kucuk-metin { font-size: 0.8rem; color: var(--renk-soluk); text-align: center; margin-top: 12px; }
.form-kucuk-metin a { text-decoration: underline; }
.opsiyonel { font-size: 0.8rem; color: var(--renk-soluk); font-weight: 400; }

/* --------------------------------------------------------------------------
   Toggle Switch
   -------------------------------------------------------------------------- */
.toggle-sarici {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-sarici input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-kaydiraci {
  position: absolute;
  inset: 0;
  background: var(--renk-sinir);
  border-radius: var(--yari-pil);
  cursor: pointer;
  transition: background var(--gecis);
}

.toggle-kaydiraci::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  transition: transform var(--gecis-yay);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.toggle-sarici input:checked + .toggle-kaydiraci {
  background: var(--renk-vurgu);
}

.toggle-sarici input:checked + .toggle-kaydiraci::before {
  transform: translateX(20px);
}

.toggle-etiket, .toggle-satir {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Kart / Yüzey
   -------------------------------------------------------------------------- */
.kart {
  background: var(--renk-yuzey);
  border-radius: var(--yari-cerceve);
  border: 1px solid var(--renk-sinir);
  box-shadow: var(--yuzey-golgesi);
  padding: 24px;
}

/* --------------------------------------------------------------------------
   Uyarı Kutuları
   -------------------------------------------------------------------------- */
.uyari {
  padding: 12px 16px;
  border-radius: var(--yari-buton);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.uyari-hata {
  background: rgba(212, 99, 74, 0.08);
  color: var(--renk-hata);
  border: 1px solid rgba(212, 99, 74, 0.2);
}

.uyari-basari {
  background: rgba(107, 142, 107, 0.08);
  color: var(--renk-basari);
  border: 1px solid rgba(107, 142, 107, 0.2);
}

/* --------------------------------------------------------------------------
   Rozet & Durum
   -------------------------------------------------------------------------- */
.durum-rozet {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--yari-pil);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.durum-yayinda { background: rgba(107,142,107,0.12); color: var(--renk-basari); }
.durum-taslak  { background: rgba(107,107,104,0.1);  color: var(--renk-soluk); }

/* --------------------------------------------------------------------------
   Boş Durum
   -------------------------------------------------------------------------- */
.bos-durum {
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.bos-durum-merkez {
  align-items: center;
  text-align: center;
  max-width: 400px;
  margin: 40px auto;
}

.bos-durum h2 {
  font-size: 1.2rem;
  font-weight: 600;
}

.bos-durum p {
  color: var(--renk-soluk);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Toast Bildirim
   -------------------------------------------------------------------------- */
.toast-bildirim {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: var(--yari-buton);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  box-shadow: var(--kart-golgesi);
  max-width: 340px;
}

.toast-basari { background: var(--renk-basari); color: #fff; }
.toast-hata   { background: var(--renk-hata);   color: #fff; }
.toast-bilgi  { background: var(--renk-metin);  color: #fff; }

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal-arkaplan {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-kutu {
  background: var(--renk-yuzey);
  border-radius: 18px;
  padding: 40px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.18);
  text-align: center;
}

.modal-kapat {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--renk-soluk);
  transition: var(--gecis);
}

.modal-kapat:hover {
  background: var(--renk-sinir);
  color: var(--renk-metin);
}

.modal-ikon { margin-bottom: 16px; }
.modal-baslik { font-size: 1.4rem; margin-bottom: 12px; }
.modal-aciklama { color: var(--renk-soluk); margin-bottom: 28px; line-height: 1.6; }
.modal-butonlar { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Yardımcılar
   -------------------------------------------------------------------------- */
.metin-soluk     { color: var(--renk-soluk); }
.kucuk-metin     { font-size: 0.875rem; }
.soluk-metin     { color: var(--renk-soluk); font-style: italic; }
.icerik-blur     { filter: blur(5px); user-select: none; }
.kilit-ikon      { flex-shrink: 0; }

/* NPS renkleri */
.nps-iyi   { color: var(--renk-basari); }
.nps-orta  { color: var(--renk-vurgu-alt); }
.nps-kotu  { color: var(--renk-hata); }
