/* ============================================================
   Zephia - ortak site stili (tum sayfalarda kullanilir)
   ============================================================ */
:root{
  --bg:#070f0e; --bg-raised:#0b1515; --stone:#0f1b19; --stone-2:#12201f;
  --line:rgba(190,210,200,0.13);
  --emerald-1:#245044; --emerald-2:#3f9a7f; --emerald-glow:#9fd3c3;
  --parchment:#e6dcba; --parchment-dim:#93a29a;
  --blood:#8a2b2b; --blood-bright:#d4665f;
  --amber:#d3b872; --gold:#d3b872; --cream:#ecdeb4;
  --tile:#162220; --tile-2:#1b2724; --teal:#37846b; --mint:#7cb8a9; --red:#932b2b;
  --font-display:'Philosopher','Marcellus',Georgia,serif;
  --font-ui:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg); color:var(--parchment);
  font-family:var(--font-ui); font-size:15.5px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
  padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
}
h1,h2,h3,.display{font-family:var(--font-display);}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
button,input,select,textarea{font-family:inherit;}
.wrap{max-width:1260px; margin:0 auto; padding:0 24px;}

header{
  position:sticky; top:0; z-index:40;
  background:linear-gradient(180deg, #0a120c, #070f0e 90%);
  border-bottom:1px solid var(--line);
}
.nav{max-width:1260px; margin:0 auto; padding:0 24px; display:flex; align-items:center; height:76px; gap:20px;}
.nav-mark{display:flex; align-items:center; justify-content:center; width:46px; height:46px;}
.nav-mark img{width:100%; height:100%; filter:drop-shadow(0 0 8px rgba(95,174,152,0.35));}
.nav-links{display:flex; align-items:center; justify-content:center; gap:30px; flex:1;}
.nav-links a{font-family:var(--font-display); font-size:0.82rem; letter-spacing:0.08em; font-weight:600; color:var(--parchment-dim);}
.nav-links a:hover, .nav-links a.active{color:var(--emerald-glow);}
.nav-right{display:flex; align-items:center; gap:14px;}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 22px; border-radius:3px; font-size:0.86rem; font-weight:700;
  border:1px solid var(--line); cursor:pointer; white-space:nowrap;
  font-family:var(--font-display); letter-spacing:0.03em; color:var(--parchment); background:none;
}
.btn:hover{border-color:var(--emerald-2); color:var(--emerald-glow);}
.btn-create{
  background:linear-gradient(160deg,var(--emerald-2),var(--emerald-1)); color:#08171a; border-color:transparent;
  box-shadow:0 4px 18px rgba(95,174,152,0.25);
}
.btn-create:hover{filter:brightness(1.08); color:#08171a;}
.btn-danger{border-color:rgba(196,82,79,0.4); color:var(--blood-bright);}
.btn-danger:hover{border-color:var(--blood-bright);}
.btn:disabled{opacity:0.6; cursor:default;}

.box{background:var(--stone); border:1px solid var(--line); border-radius:8px; overflow:hidden;}
.box-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px; padding:16px 22px;
  border-bottom:1px solid var(--line); background:var(--stone-2);
  font-family:var(--font-display); font-weight:600; font-size:0.9rem;
}
.box-head .mark{width:7px; height:7px; border-radius:50%; background:var(--emerald-2); box-shadow:0 0 8px var(--emerald-2);}
.box-body{padding:18px 22px;}

.field{margin-bottom:14px;}
.field label{display:block; font-size:0.82rem; color:var(--parchment-dim); margin-bottom:6px;}
.input-wrap{background:var(--bg-raised); border:1px solid var(--line); border-radius:4px; padding:11px 14px;}
.input-wrap:focus-within{border-color:var(--emerald-2);}
.input-wrap.field-error{border-color:var(--blood-bright);}
input[type=text],input[type=email],input[type=password],select,textarea{
  background:none; border:0; outline:0; color:var(--parchment); font-size:0.92rem; width:100%;
}
input::placeholder{color:#5c6459;}

.form-msg{margin:14px 0; padding:12px 16px; border-radius:6px; font-size:0.88rem; font-weight:600; display:none;}
.form-msg.show{display:block;}
.form-msg.error{background:rgba(154,58,58,0.12); border:1px solid rgba(196,82,79,0.4); color:var(--blood-bright);}
.form-msg.success{background:rgba(95,174,152,0.1); border:1px solid rgba(95,174,152,0.4); color:var(--emerald-glow);}

table{width:100%; border-collapse:collapse; font-size:0.9rem;}
th{text-align:left; font-size:0.76rem; letter-spacing:0.06em; color:var(--parchment-dim); padding:12px 16px; border-bottom:1px solid var(--line);}
td{padding:12px 16px; border-bottom:1px solid var(--line);}
tr:last-child td{border-bottom:none;}
tr:hover td{background:rgba(95,174,152,0.03);}

.badge{display:inline-block; font-size:0.72rem; padding:3px 9px; border-radius:3px; font-weight:600;}
.badge-ok{background:rgba(95,174,152,0.12); color:var(--emerald-glow);}
.badge-bad{background:rgba(154,58,58,0.15); color:var(--blood-bright);}

footer{padding:40px 0; border-top:1px solid var(--line); background:var(--bg-raised); margin-top:60px;
  color:var(--parchment-dim); font-size:0.82rem; text-align:center;}

@media (max-width:860px){ .nav-links{display:none;} }

/* ============================================================
   Modern UI layer — animasyonlar, modal, toast, kartlar
   ============================================================ */
:root{
  --ease:cubic-bezier(.22,.8,.3,1);
  --shadow-glow:0 8px 28px rgba(95,174,152,.30);
}

/* ---- Buttons ---- */
.btn{
  position:relative; overflow:hidden;
  transition:transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s, color .22s, background .22s, filter .22s;
}
.btn:hover{transform:translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.38);}
.btn:active{transform:translateY(0) scale(.98); box-shadow:none;}
.btn-create:hover{box-shadow:var(--shadow-glow);}
.btn-ghost{background:rgba(255,255,255,.02);}
.btn-ghost:hover{background:rgba(95,174,152,.07);}
.btn-block{display:flex; width:100%;}
.btn-sm{padding:8px 16px; font-size:.78rem;}
.btn .spinner{
  width:14px; height:14px; border-radius:50%; display:none;
  border:2px solid rgba(6,22,18,.3); border-top-color:#08171a; animation:spin .7s linear infinite;
}
.btn-ghost .spinner, .btn:not(.btn-create) .spinner{border-color:rgba(233,228,216,.25); border-top-color:var(--parchment);}
.btn.loading{pointer-events:none; opacity:.85;}
.btn.loading .spinner{display:inline-block;}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---- Inputs ---- */
.input-wrap{transition:border-color .2s, box-shadow .2s, background .2s;}
.input-wrap:focus-within{border-color:var(--emerald-2); box-shadow:0 0 0 3px rgba(95,174,152,.14); background:#0d1a18;}
.input-wrap.has-action{display:flex; align-items:center; gap:8px;}
.input-action{
  background:none; border:0; cursor:pointer; color:var(--parchment-dim);
  display:flex; align-items:center; padding:2px; transition:color .2s;
}
.input-action:hover{color:var(--emerald-glow);}
.input-action svg{width:18px; height:18px;}

/* ---- Cards ---- */
.box{transition:border-color .25s, box-shadow .25s;}
.stat-card{transition:transform .25s var(--ease), border-color .25s, box-shadow .25s;}
.stat-card:hover{transform:translateY(-3px); border-color:rgba(95,174,152,.32); box-shadow:0 14px 32px rgba(0,0,0,.4);}

/* ---- Entrance animations ---- */
@keyframes fadeUp{from{opacity:0; transform:translateY(16px)} to{opacity:1; transform:none}}
.reveal{animation:fadeUp .65s var(--ease) both;}
.reveal-1{animation-delay:.06s} .reveal-2{animation-delay:.12s} .reveal-3{animation-delay:.18s}
.reveal-4{animation-delay:.24s} .reveal-5{animation-delay:.30s} .reveal-6{animation-delay:.36s}
@media (prefers-reduced-motion:reduce){ .reveal{animation:none;} .btn,.stat-card{transition:none;} }

/* ---- Modal ---- */
.modal-backdrop{
  position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; padding:20px;
  background:rgba(4,10,9,.72); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  opacity:0; visibility:hidden; transition:opacity .25s, visibility .25s;
}
.modal-backdrop.open{opacity:1; visibility:visible;}
.modal{
  width:100%; max-width:440px; overflow:hidden;
  background:linear-gradient(180deg,var(--stone-2),var(--stone));
  border:1px solid var(--line); border-radius:14px;
  box-shadow:0 30px 80px rgba(0,0,0,.65), 0 0 0 1px rgba(95,174,152,.06);
  transform:translateY(20px) scale(.96); transition:transform .32s var(--ease);
}
.modal-backdrop.open .modal{transform:none;}
.modal-head{display:flex; align-items:center; justify-content:space-between; padding:20px 24px; border-bottom:1px solid var(--line);}
.modal-head h3{font-size:1.05rem; letter-spacing:.02em;}
.modal-close{
  width:32px; height:32px; border-radius:8px; border:0; background:none; cursor:pointer;
  color:var(--parchment-dim); display:flex; align-items:center; justify-content:center; transition:background .2s,color .2s;
}
.modal-close:hover{background:rgba(255,255,255,.06); color:var(--parchment);}
.modal-close svg{width:18px; height:18px;}
.modal-body{padding:22px 24px 24px;}
.modal-note{font-size:.84rem; color:var(--parchment-dim); margin-bottom:18px;}

/* ---- Toasts ---- */
.toast-stack{position:fixed; top:20px; right:20px; z-index:200; display:flex; flex-direction:column; gap:10px; pointer-events:none;}
.toast{
  pointer-events:auto; min-width:260px; max-width:380px; display:flex; gap:12px; align-items:flex-start;
  padding:14px 16px; border-radius:10px; font-size:.9rem;
  background:var(--stone-2); border:1px solid var(--line); box-shadow:0 14px 34px rgba(0,0,0,.55);
  opacity:0; transform:translateX(28px); animation:toastIn .38s var(--ease) forwards;
}
.toast svg{width:20px; height:20px; flex-shrink:0; margin-top:1px;}
.toast.success{border-color:rgba(95,174,152,.5);} .toast.success svg{color:var(--emerald-glow);}
.toast.error{border-color:rgba(196,82,79,.55);} .toast.error svg{color:var(--blood-bright);}
.toast.hide{animation:toastOut .3s ease forwards;}
@keyframes toastIn{to{opacity:1; transform:none}}
@keyframes toastOut{to{opacity:0; transform:translateX(28px)}}
@media (max-width:520px){ .toast-stack{left:16px; right:16px; top:12px;} .toast{min-width:0; max-width:none;} }

/* tutarli input yuksekligi (sifre goz butonu olan alanlar dahil) */
.input-wrap input[type=text],.input-wrap input[type=email],.input-wrap input[type=password],.input-wrap input[type=number]{height:24px;}
.input-wrap textarea{display:block; line-height:1.55;}
select{color-scheme:dark;}

/* ---- Rodnia tipografi gecisi: butonlar Inter, birincil buton beyaz yazi ---- */
.btn{font-family:var(--font-ui); font-weight:700; letter-spacing:.06em; font-size:.8rem; text-transform:uppercase; border-radius:3px;}
.btn-create{background:linear-gradient(160deg,#3f9179,#245044); color:#fff; text-shadow:0 1px 0 rgba(0,0,0,.25); box-shadow:0 4px 18px rgba(36,80,68,.45);}
.btn-create:hover{filter:brightness(1.12); color:#fff; box-shadow:0 8px 26px rgba(63,145,121,.4);}
.btn .spinner{border-color:rgba(255,255,255,.3); border-top-color:#fff;}
.btn-ghost .spinner,.btn:not(.btn-create) .spinner{border-color:rgba(236,222,180,.25); border-top-color:#ecdeb4;}
.box-head,.modal-head h3,.panel-card-head{font-family:var(--font-display); font-weight:700; letter-spacing:.04em;}
.badge{font-family:var(--font-ui);}
th{font-family:var(--font-ui);}
