/* ALPATEZ Mission Control — koyu tema bileşenleri */
:root {
  --bg: #07090e;
  --surface: #0d1118;
  --surface-2: #121823;
  --surface-3: #18202d;
  --line: rgba(148, 163, 184, .10);
  --line-2: rgba(148, 163, 184, .18);
  --text: #e6eaf2;
  --muted: #8b95a7;
  --dim: #5b6576;
  --flame: #ff6a2b;
  --flame-2: #ffb020;
  --ion: #22d3ee;
}

html { color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-feature-settings: "zero"; }

::selection { background: rgba(255, 106, 43, .35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #1f2836; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* Kart */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.card-hover { transition: border-color .15s, transform .15s, background .15s; }
.card-hover:hover { border-color: var(--line-2); background-color: var(--surface-2); }
.card-title {
  font-size: 13px; font-weight: 500; color: var(--muted);
  display: flex; align-items: center; gap: .5rem;
}
.card-title svg { display: none; }
.divide > * + * { border-top: 1px solid var(--line); }

/* Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  transition: all .15s; white-space: nowrap; cursor: pointer;
}
.btn:hover { background: var(--surface-3); border-color: rgba(148,163,184,.28); }
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--flame); border-color: var(--flame); color: #fff;
}
.btn-primary:hover { background: #ff7d45; border-color: #ff7d45; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-danger { color: #fda4af; border-color: rgba(244, 63, 94, .3); background: rgba(244, 63, 94, .08); }
.btn-danger:hover { background: rgba(244, 63, 94, .16); border-color: rgba(244, 63, 94, .5); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn-icon { width: 38px; padding: 0; }

/* Form alanları */
.field {
  width: 100%; background: #0a0e15; border: 1px solid var(--line-2); border-radius: 10px;
  padding: 9px 12px; font-size: 14px; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.field::placeholder { color: var(--dim); }
.field:focus { outline: none; border-color: var(--flame); box-shadow: 0 0 0 3px rgba(255, 106, 43, .18); }
select.field { appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238b95a7' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
select.field.multi { background-image: none; padding: 6px; }
select.field option { background: var(--surface-2); padding: 4px 6px; }
input[type="date"].field::-webkit-calendar-picker-indicator { filter: invert(.7); cursor: pointer; }
input[type="color"].field { height: 42px; padding: 4px; }
input[type="file"].field { padding: 7px; }
input[type="file"].field::file-selector-button {
  background: var(--surface-3); color: var(--text); border: 1px solid var(--line-2);
  border-radius: 7px; padding: 5px 12px; margin-right: 12px; cursor: pointer;
}
.check { width: 18px; height: 18px; accent-color: var(--flame); cursor: pointer; }
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px;
  max-height: 260px; overflow: auto; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; background: #0a0e15; }
.check-list > div, .check-list li { list-style: none; }
.check-list label { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 8px; border-radius: 8px; cursor: pointer; color: var(--text); }
.check-list label:hover { background: var(--surface-2); }
.check-list input { accent-color: var(--flame); width: 16px; height: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: #c3cad6; margin-bottom: 6px; }
.form-help { font-size: 12px; color: var(--dim); margin-top: 4px; }
.form-error { font-size: 12px; color: #fb7185; margin-top: 4px; }

/* Rozetler */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; white-space: nowrap; border: 1px solid transparent;
}
.badge svg { width: 12px; height: 12px; }
.dot { width: 7px; height: 7px; border-radius: 99px; display: inline-block; flex-shrink: 0; }

/* Navigasyon */
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px;
  color: var(--muted); font-size: 14px; font-weight: 500; transition: all .12s; position: relative;
}
.nav-link svg { width: 18px; height: 18px; }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-link.active { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active svg { color: var(--flame); }
.nav-count { margin-left: auto; font-size: 11px; font-weight: 600; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 99px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: var(--text); }

.nav-section { padding: 0 12px; margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dim); }
.countdown-chip { display: block; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,106,43,.22);
  background: linear-gradient(135deg, rgba(255,106,43,.10), rgba(255,106,43,.02)); transition: border-color .15s; }
.countdown-chip:hover { border-color: rgba(255,106,43,.45); }

/* Sayfa başlığı */
.page-title { font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -.015em; }
.page-sub { font-size: .875rem; color: var(--muted); margin-top: 2px; max-width: 46rem; }
.stat { padding: 18px 20px; background: var(--surface); }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-value { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 1.5rem; font-weight: 600; margin-top: 4px; }

/* İlerleme */
.progress { height: 6px; border-radius: 99px; background: rgba(148,163,184,.12); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px;
  background: var(--flame); transition: width .6s cubic-bezier(.2,.8,.2,1); }

/* Kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.kanban-col { background: rgba(13,17,24,.6); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; min-height: 300px; }
.kanban-list { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.task-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: grab;
  transition: border-color .12s, box-shadow .12s, transform .12s; }
.task-card:hover { border-color: var(--line-2); box-shadow: 0 8px 24px -12px rgba(0,0,0,.8); }
.task-card:active { cursor: grabbing; }
.sortable-ghost { opacity: .35; border: 1px dashed var(--flame) !important; }
.sortable-drag { transform: rotate(2deg); box-shadow: 0 20px 40px -10px rgba(0,0,0,.8); }

/* Tablo */
.table { width: 100%; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; font-weight: 500;
  color: var(--dim); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: rgba(255,255,255,.02); }
.table tbody tr:last-child td { border-bottom: 0; }

/* Prose (açıklamalar) */
.prose-dark { color: #c7cedb; font-size: 14.5px; line-height: 1.7; white-space: pre-wrap; word-wrap: break-word; }

/* Animasyonlar */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .35s cubic-bezier(.2,.8,.2,1) both; }
.rise-1 { animation-delay: .05s; }
.rise-2 { animation-delay: .1s; }
.rise-3 { animation-delay: .15s; }

@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(255,106,43,.5) } 100% { box-shadow: 0 0 0 8px rgba(255,106,43,0) } }
.pulse { animation: pulse-ring 1.6s ease-out infinite; }

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

.toast { animation: rise .3s both; }
[x-cloak] { display: none !important; }

.grid-bg {
  background-image: linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
