/* Eda Nail Bar — ortak tasarım sistemi (logo renklerinden) */
:root {
  --bg: #faf3ee;
  --bg-alt: #f3e6df;
  --surface: #fffcfa;
  --ink: #3b2529;
  --muted: #74575c;
  --line: rgba(59, 37, 41, 0.13);
  --line-strong: rgba(59, 37, 41, 0.26);
  --action: #a6435d;
  --action-hover: #8c354d;
  --action-ink: #ffffff;
  --rose-soft: #f5dfe3;
  --rose-line: #e7bcc5;
  --gold: #b07a5e;
  --ok: #2c6449;
  --ok-bg: #ddeee3;
  --warn: #835410;
  --warn-bg: #f8e9cc;
  --danger: #a03535;
  --danger-bg: #f7dfdc;

  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-ui: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-btn: 999px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 0; font-variant-numeric: lining-nums; }
b, strong, .num { font-variant-numeric: lining-nums tabular-nums; }
p { margin: 0; }
a { color: var(--action); }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: var(--r-btn);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease), color .18s;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.btn--primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn--ghost { border-color: transparent; background: transparent; }
.btn--ghost:hover { background: var(--bg-alt); border-color: transparent; }
.btn--danger { color: var(--danger); }
.btn--danger:hover { border-color: var(--danger); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }

.link { color: var(--action); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s var(--ease); }
.link:hover { background-size: 100% 1px; }

/* ---------- Fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 500; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 84px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgba(166, 67, 93, .14); }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233b2529' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field__error { color: var(--danger); font-size: 13px; }

/* ---------- Pills / badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; background: var(--bg-alt); color: var(--ink); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.st-talep { background: var(--warn-bg); color: var(--warn); }
.st-gelecek { background: var(--rose-soft); color: var(--action-hover); }
.st-geldi { background: var(--ok-bg); color: var(--ok); }
.st-gelmedi { background: #ece3e0; color: #5d4a4d; }
.st-iptal { background: #eeeaea; color: #6c6264; }
.pay-odendi { background: var(--ok-bg); color: var(--ok); }
.pay-kismi { background: var(--warn-bg); color: var(--warn); }
.pay-odenmedi { background: var(--danger-bg); color: var(--danger); }

/* ---------- Toast ---------- */
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; pointer-events: none; width: min(92vw, 420px); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r-md); font-size: 15px; box-shadow: 0 10px 30px rgba(59,37,41,.25); animation: toast-in .25s var(--ease); }
.toast--error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Logo in a soft ring, used for headers */
.logo-mark { border-radius: 50%; background: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
