/* ==========================================================
   Konsent — Kurumsal Tasarım Sistemi
   ========================================================== */
:root {
  --ink:        #0B1120;
  --ink-2:      #111A2E;
  --ink-3:      #1B2740;
  --primary:    #2D5BFF;
  --primary-600:#1E44D8;
  --primary-50: #EDF2FF;
  --accent:     #00C2A8;
  --accent-50:  #E3FAF6;
  --amber:      #FFB020;
  --amber-50:   #FFF6E5;
  --danger:     #E5484D;
  --danger-50:  #FDECEC;
  --success:    #12A150;
  --success-50: #E7F7EE;

  --bg:         #F5F7FC;
  --card:       #FFFFFF;
  --line:       #E4E9F2;
  --line-soft:  #EFF2F8;
  --text:       #0B1120;
  --muted:      #64748B;
  --muted-2:    #94A3B8;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --sh-sm: 0 1px 2px rgba(11,17,32,.06), 0 1px 3px rgba(11,17,32,.05);
  --sh:    0 4px 12px -2px rgba(11,17,32,.08), 0 2px 6px -2px rgba(11,17,32,.05);
  --sh-lg: 0 24px 48px -12px rgba(11,17,32,.16), 0 8px 20px -8px rgba(11,17,32,.08);
  --sh-xl: 0 40px 80px -20px rgba(11,17,32,.28);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --nav-h: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: -.022em; line-height: 1.18; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.034em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -.028em; }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code, pre { font-family: var(--mono); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.container-sm { width: min(780px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .94rem; line-height: 1; cursor: pointer;
  padding: 13px 22px; border-radius: var(--r); border: 1px solid transparent;
  transition: background .16s, color .16s, border-color .16s, transform .1s, box-shadow .16s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(45,91,255,.6); }
.btn-primary:hover { background: var(--primary-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: #fff; border-color: #cfd8e8; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f1f4fa; }
.btn-outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.24); }
.btn-outline-light:hover { background: rgba(255,255,255,.16); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.07); }
.btn-sm { padding: 9px 15px; font-size: .84rem; border-radius: var(--r-sm); }
.btn-xs { padding: 6px 11px; font-size: .78rem; border-radius: 7px; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Rozetler ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 650;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .01em;
}
.badge-primary { background: var(--primary-50); color: var(--primary-600); }
.badge-accent  { background: var(--accent-50); color: #05887a; }
.badge-amber   { background: var(--amber-50); color: #A96A00; }
.badge-danger  { background: var(--danger-50); color: #B4292E; }
.badge-success { background: var(--success-50); color: #0B7A3D; }
.badge-muted   { background: #EFF2F8; color: var(--muted); }

/* ---------- Kartlar ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.card-pad { padding: 22px; }

/* ---------- Form ---------- */
.field { margin-bottom: 16px; }
.label { display: block; font-size: .82rem; font-weight: 650; color: var(--ink-3); margin-bottom: 6px; }
.hint  { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: .92rem; color: var(--text); background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,91,255,.13);
}
.input::placeholder { color: var(--muted-2); }
.textarea { resize: vertical; min-height: 96px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.input-sm { padding: 8px 10px; font-size: .85rem; }

.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #CBD5E1; border-radius: 999px; cursor: pointer; transition: background .18s; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .18s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:disabled + span { opacity: .5; cursor: not-allowed; }

.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: .86rem; color: var(--ink-3); cursor: pointer; }
.checkbox input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--primary); cursor: pointer; flex: none; }

/* ---------- Uyarılar ---------- */
.alert { padding: 12px 15px; border-radius: var(--r); font-size: .87rem; margin-bottom: 14px; border: 1px solid transparent; display: flex; gap: 10px; align-items: flex-start; }
.alert-error   { background: var(--danger-50); color: #99282C; border-color: #F6CFD0; }
.alert-success { background: var(--success-50); color: #0B7A3D; border-color: #C4EAD4; }
.alert-info    { background: var(--primary-50); color: var(--primary-600); border-color: #D3DFFF; }
.alert-warn    { background: var(--amber-50); color: #8F5900; border-color: #FBE2B4; }

/* ---------- Tablolar ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.table th {
  text-align: left; font-weight: 650; color: var(--muted); font-size: .76rem;
  text-transform: uppercase; letter-spacing: .045em; padding: 11px 14px;
  border-bottom: 1px solid var(--line); background: #FAFBFE; white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:hover { background: #FAFBFE; }
.table tbody tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }

/* ---------- Yardımcılar ---------- */
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.tiny  { font-size: .74rem; }
.bold  { font-weight: 650; }
.mono  { font-family: var(--mono); font-size: .84em; }
.center { text-align: center; }
.right { text-align: right; }
.row { display: flex; gap: 12px; align-items: center; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 34px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }
.spin { animation: ksspin 1s linear infinite; }
@keyframes ksspin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .g2, .g4 { grid-template-columns: 1fr; }
}
