/* ==========================================================================
   DeniaV web temasi
   Renkler DeniaV-multicharacter (web/style.css) ve dv-tema.css'ten:
   koyu, hafif saydam yuzey, yuvarlak kose, sac teli kenar. Vurgu = logo
   rengi (#ec1a8c pembeden turuncuya).
   ========================================================================== */
:root {
  --brand: #ec1a8c;
  --pink: #ff3d8b;
  --orange: #ff9a3c;
  --grad: linear-gradient(100deg, #ec1a8c 0%, #ff4f7a 55%, #ff9a3c 100%);
  --brand-soft: rgba(236, 26, 140, 0.14);

  --bg: #08080c;
  --card: rgba(14, 14, 20, 0.82);
  --card-2: rgba(22, 22, 30, 0.9);
  --sunken: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --text: #f4f2f7;
  --text-2: #cbd3df;
  --muted: rgba(244, 242, 247, 0.58);
  --faint: rgba(244, 242, 247, 0.36);

  --red: #ff4d5e;
  --green: #3ddc97;
  --amber: #ffb547;
  --blue: #6aa4ff;

  --r: 16px;
  --r-sm: 10px;
  --r-xs: 7px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 26px 60px rgba(0, 0, 0, 0.55);
  --font: 'Segoe UI', Inter, system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
svg.i { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
::selection { background: rgba(236, 26, 140, 0.45); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--pink), var(--orange)); border-radius: 99px; }
::-webkit-scrollbar-button { display: none; }

/* ── ic sayfa zemini ─────────────────────────────────────────────────── */
.backdrop {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(236, 26, 140, 0.16), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(255, 154, 60, 0.08), transparent 70%),
    linear-gradient(rgba(8, 8, 12, 0.9), rgba(8, 8, 12, 0.96)),
    url('/img/bg.webp') center / cover no-repeat;
}

/* ── ust cubuk ───────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  height: 64px; padding: 0 24px;
  background: rgba(8, 8, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 -1px 0 var(--line);
}
.topbar.clear { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; box-shadow: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.22em; font-size: 12px; }
.brand img { height: 34px; width: auto; }
.brand span b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topnav { display: flex; gap: 4px; margin: 0 auto; padding: 4px; border-radius: 99px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { position: relative; padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color 0.15s, background 0.15s; }
.topnav a:hover { color: var(--text); }
.topnav a.on { background: var(--brand-soft); color: #fff; box-shadow: inset 0 0 0 1px rgba(236, 26, 140, 0.4); }
.topnav .badge { margin-left: 6px; }
.top-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.topnav + .top-right { margin-left: 0; }

.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--text-2); background: rgba(8, 8, 12, 0.55); box-shadow: inset 0 0 0 1px var(--line); }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status-pill.on i { background: var(--green); box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18); }

.user-chip { position: relative; }
.user-chip > button { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 99px; background: rgba(8, 8, 12, 0.55); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; }
.user-chip > button:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--sunken); flex: none; }
.avatar.lg { width: 44px; height: 44px; }
.avatar.xl { width: 64px; height: 64px; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px; border-radius: var(--r-sm); background: var(--card-2); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-xs); font-size: 14px; color: var(--text-2); text-align: left; }
.menu a:hover, .menu button:hover { background: var(--sunken); color: #fff; }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 4px 6px; }

/* ── dugmeler ─────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 99px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: transform 0.15s, box-shadow 0.15s, background 0.15s, opacity 0.15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(236, 26, 140, 0.35); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 30px rgba(236, 26, 140, 0.5); }
.btn-light { background: #fff; color: #14141c; }
.btn-light:hover { background: #f0edf5; }
.btn-ghost { background: var(--sunken); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(255, 255, 255, 0.08); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #6b77f5; }
.btn-green { background: rgba(61, 220, 151, 0.14); color: var(--green); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.35); }
.btn-green:hover:not(:disabled) { background: rgba(61, 220, 151, 0.22); }
.btn-red { background: rgba(255, 77, 94, 0.12); color: var(--red); box-shadow: inset 0 0 0 1px rgba(255, 77, 94, 0.35); }
.btn-red:hover:not(:disabled) { background: rgba(255, 77, 94, 0.2); }
.btn-amber { background: rgba(255, 181, 71, 0.12); color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.35); }
.btn-amber:hover:not(:disabled) { background: rgba(255, 181, 71, 0.2); }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 16px; }
.btn-icon { width: 36px; padding: 0; }

/* ── yuzeyler ─────────────────────────────────────────────────────────── */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.pad { padding: 24px; }
.sunken { background: var(--sunken); border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); }

.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.page { padding: 40px 0 80px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 640px; }
.eyebrow { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; font-size: 11px; font-weight: 800; background: #fff; color: #14141c; }
.badge.brand { background: var(--brand); color: #fff; }

.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--sunken); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.pending, .tag.waiting { color: var(--amber); background: rgba(255, 181, 71, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.3); }
.tag.interview, .tag.answered { color: var(--blue); background: rgba(106, 164, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(106, 164, 255, 0.3); }
.tag.approved { color: var(--green); background: rgba(61, 220, 151, 0.1); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.3); }
.tag.rejected { color: var(--red); background: rgba(255, 77, 94, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 77, 94, 0.3); }
.tag.closed { color: var(--muted); }
.tag.plain::before { display: none; }

/* ── form ─────────────────────────────────────────────────────────────── */
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field > span em { font-style: normal; color: var(--brand); margin-left: 3px; }
.field .hint { display: block; font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.field .err { display: block; font-size: 12.5px; color: var(--red); margin-top: 6px; }
.field.bad .input { box-shadow: inset 0 0 0 1px rgba(255, 77, 94, 0.6); }
.input { width: 100%; min-height: 44px; padding: 11px 14px; border: 0; outline: 0; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.15s, background 0.15s; }
.input::placeholder { color: var(--faint); }
.input:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.input:focus { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(236, 26, 140, 0.65), 0 0 0 4px rgba(236, 26, 140, 0.12); }
textarea.input { resize: vertical; min-height: 110px; line-height: 1.55; }
select.input { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b8b4c4'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 22px; }
select.input option { background: #16161e; }
input[type='date'].input { color-scheme: dark; }
.counter { float: right; font-size: 12px; font-weight: 600; color: var(--faint); }
.counter.low { color: var(--amber); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 99px; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.15s; }
.choice input:checked + span { background: var(--brand-soft); box-shadow: inset 0 0 0 1px rgba(236, 26, 140, 0.6); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-2); cursor: pointer; user-select: none; }
.check input { appearance: none; width: 18px; height: 18px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-content: center; cursor: pointer; }
.check input:checked { background: var(--brand); box-shadow: none; }
.check input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

/* ── bildirim ─────────────────────────────────────────────────────────── */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--card-2); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); font-size: 14px; animation: rise 0.25s ease both; }
.toast::before { content: ''; width: 4px; align-self: stretch; border-radius: 4px; background: var(--brand); flex: none; }
.toast.ok::before { background: var(--green); }
.toast.err::before { background: var(--red); }
.toast b { display: block; margin-bottom: 2px; }
.toast.out { opacity: 0; transform: translateY(6px); transition: all 0.25s; }

/* ── modal ────────────────────────────────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(4, 4, 8, 0.78); animation: fade 0.2s ease both; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; border-radius: 20px; background: rgba(16, 16, 22, 0.94); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); animation: rise 0.28s ease both; }
.modal h2 { font-size: 22px; font-weight: 800; }
.modal .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.modal-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }

.empty { padding: 48px 20px; text-align: center; color: var(--faint); font-size: 14px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.12); border-top-color: var(--brand); animation: spin 0.8s linear infinite; margin: 40px auto; }

.footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 22px 16px; font-size: 12.5px; color: var(--faint); }
.footer a:hover { color: var(--text); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .topbar { padding: 0 16px; gap: 10px; }
  .brand span { display: none; }
  .status-pill .txt { display: none; }
  .user-chip > button .nm { display: none; }
  .user-chip > button { padding: 3px; }
  .page { padding: 26px 0 60px; }
  .page-head h1 { font-size: 25px; }
  .pad { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
