/* ---------- Tema değişkenleri (siyah / beyaz) ---------- */
:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #efefec;
  --text: #0b0b0b;
  --muted: #6e6e6a;
  --line: #e3e3df;
  --line-strong: #cfcfca;
  --invert: #0b0b0b;
  --invert-text: #f6f6f4;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --text: #f3f3f1;
  --muted: #8b8b86;
  --line: #222222;
  --line-strong: #333333;
  --invert: #f3f3f1;
  --invert-text: #0a0a0a;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--invert); color: var(--invert-text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }

.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
.muted { color: var(--muted); }
.ph, .ph-duotone, .ph-bold, .ph-fill { line-height: 1; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; font-weight: 500; font-size: 14px; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn i { font-size: 18px; }
.btn:hover { border-color: var(--text); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--invert); color: var(--invert-text); border-color: var(--invert); }
.btn-primary:hover { opacity: .88; }
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-danger:hover { background: #d32f2f; color: #fff; border-color: #d32f2f; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.icon-btn i { font-size: 19px; }
.icon-btn:hover { border-color: var(--text); }
.icon-btn:active { transform: scale(.94); }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 500; }
.field small { color: var(--muted); font-size: 12px; }
.input, .textarea, .select {
  width: 100%; min-height: 44px; padding: 10px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 8%, transparent); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }

/* ---------- Tema butonu ikon geçişi ---------- */
.theme-toggle .ph-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ph-sun { display: inline-block; }
:root[data-theme="dark"] .theme-toggle .ph-moon { display: none; }

/* ---------- Toast ---------- */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  background: var(--invert); color: var(--invert-text); border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow); max-width: 100%;
  animation: toastIn .35s var(--ease);
}
.toast i { font-size: 18px; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
