/* KadroBak — mobil öncelikli tasarım */
:root {
  color-scheme: light;
  --brand: #0b3d91; --brand-600: #0a3480; --brand-50: #eef3fc; --brand-100: #dbe6f8;
  --accent: #ffb020; --accent-50: #fff6e5;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --line-2: #eef2f7;
  --bg: #f5f7fb; --surface: #fff; --surface-2: #f8fafc;
  --ok: #047857; --ok-50: #ecfdf5; --bad: #b91c1c; --bad-50: #fef2f2; --warn-50: #fffbeb;
  --green: #059669; --orange: #ea580c; --purple: #7c3aed; --blue: #2563eb;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 4px 14px rgba(15,23,42,.05);
  --shadow-lg: 0 10px 30px rgba(15,23,42,.12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --gutter: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
img, svg { display: block; max-width: 100%; }
svg.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; display: inline-block; vertical-align: -3px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); } .small { font-size: 13px; }
.link { color: var(--brand); font-weight: 600; }
.link:hover { text-decoration: underline; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }

/* ---------- Düğmeler ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: #cbd5e1; }
.btn-outline.saved, .btn-outline.on { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.btn-ghost { color: var(--muted); padding: 0 10px; }
.btn-ghost:hover { color: var(--ink); }
.btn-lg { min-height: 50px; font-size: 16px; }
.btn-icon { padding: 0; width: 48px; }

/* ---------- Üst bant / header ---------- */
.announce { background: var(--ink); color: #e2e8f0; font-size: 13px; text-align: center; padding: 8px 16px; }
.site-header { background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header-inner { height: 60px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo-text { font-size: 20px; font-weight: 600; letter-spacing: -.4px; color: var(--ink); }
.logo-text b { font-weight: 800; color: var(--brand); }
.nav { display: none; gap: 4px; margin-left: 8px; }
.nav a { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current=page] { color: var(--brand); background: var(--brand-50); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-2); cursor: pointer; list-style: none; }
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { background: var(--line-2); }
.icon-btn svg.i { width: 20px; height: 20px; vertical-align: 0; }
.saved-count { position: absolute; top: 6px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.saved-count[hidden] { display: none; }
.menu { position: relative; }
.menu-panel { position: absolute; right: 0; top: 50px; width: min(280px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; display: flex; flex-direction: column; }
.menu-panel a { padding: 12px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.menu-panel a:hover { background: var(--brand-50); color: var(--brand); }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 300px at 80% -50%, #1d5bc7 0%, transparent 60%), linear-gradient(160deg, #0b3d91 0%, #0a2f6e 100%); color: #fff; padding: 28px 0 56px; }
.hero-title { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -1px; }
.hero-title span { color: var(--accent); }
.hero-sub { margin-top: 10px; font-size: 16px; color: #d6e2f7; max-width: 640px; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: 13.5px; color: #c7d6f2; }
.hero-stats li { display: inline-flex; align-items: center; gap: 6px; }
.hero-stats li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-stats b { color: #fff; font-size: 15px; }
.hero + .page { margin-top: -36px; }

/* ---------- Sayfa düzeni ---------- */
.page { padding-top: 16px; padding-bottom: 32px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.layout-side { display: flex; flex-direction: column; gap: 14px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span:last-child { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.page-head { margin: 4px 0 20px; }
.page-head h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.5px; }
.lead { font-size: 16.5px; color: var(--ink-2); margin-top: 8px; max-width: 760px; }

/* ---------- Eşleştirici ---------- */
.matcher { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.matcher-summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; user-select: none; }
.matcher-summary::-webkit-details-marker { display: none; }
.matcher-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-50); color: #b26b00; display: grid; place-items: center; flex-shrink: 0; }
.matcher-icon svg.i { width: 20px; height: 20px; vertical-align: 0; }
.matcher-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 15px; }
.matcher-text b { font-weight: 800; }
.matcher-text small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matcher-chev { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-right: 4px; transition: transform .2s; }
.matcher[open] .matcher-chev { transform: rotate(-135deg); }
.matcher-body { padding: 16px; border-top: 1px solid var(--line-2); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); min-width: 0; }
.field > span small { font-weight: 500; color: var(--muted); }
.field svg.i { display: none; }
.field input, .field select, .field textarea, .score-row select, .score-row input, .adv-panel select {
  width: 100%; min-height: 46px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 16px; font-weight: 500; color: var(--ink); outline: none; appearance: none; -webkit-appearance: none; }
.field textarea { resize: vertical; min-height: 90px; }
.field select, .score-row select, .adv-panel select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 34px; }
.field input:focus, .field select:focus, .field textarea:focus, .score-row select:focus, .score-row input:focus, .adv-panel select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.kurum-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.kurum-field legend { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.check-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.check-chip { position: relative; display: inline-flex; align-items: center; cursor: pointer; user-select: none; }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.check-chip span::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 2px solid #cbd5e1; flex-shrink: 0; }
.check-chip input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.check-chip input:checked + span::before { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.check-chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
#extra-scores { display: flex; flex-direction: column; gap: 8px; }
#extra-scores:empty { display: none; }
.score-row { display: grid; grid-template-columns: 1fr 1fr 44px; gap: 8px; }
.score-row select[name=ek_sinav] { grid-column: 1 / -1; }
.score-row select[name=ek_tur][hidden] + input { grid-column: 1 / 3; }
.row-del { width: 44px; min-height: 46px; border-radius: var(--radius-sm); font-size: 22px; color: var(--muted); border: 1px solid var(--line); }
.row-del:hover { color: var(--bad); border-color: #fecaca; }
.btn-add { align-self: flex-start; min-height: 42px; border: 1px dashed #cbd5e1; color: var(--brand); font-size: 14px; font-weight: 700; padding: 0 14px; border-radius: var(--radius-sm); }
.btn-add:hover { border-color: var(--brand); background: var(--brand-50); }
.matcher-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.matcher-actions .btn-primary { flex: 1 1 100%; }
.form-error { color: var(--bad); font-size: 13.5px; margin-top: 10px; font-weight: 600; }

/* ---------- Araç çubuğu ve filtreler ---------- */
.filters { margin-bottom: 14px; }
.toolbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.search-box { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; min-height: 48px; color: var(--muted); box-shadow: var(--shadow); }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.search-box input { border: 0; outline: none; background: transparent; width: 100%; font-size: 16px; min-height: 46px; color: var(--ink); }
.seg { display: flex; background: #e6ebf3; padding: 3px; border-radius: 12px; gap: 2px; min-width: 0; }
.seg-opt { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; min-height: 40px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; user-select: none; position: relative; white-space: nowrap; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--brand); }
.seg-opt.disabled { opacity: .55; cursor: not-allowed; }
.seg-count { background: rgba(15,23,42,.07); border-radius: 99px; padding: 0 7px; font-size: 12px; line-height: 20px; }
.seg-opt:has(input:checked) .seg-count { background: var(--brand); color: #fff; }
.sortbar { display: flex; flex: 1 1 100%; background: #e6ebf3; padding: 3px; border-radius: 11px; gap: 2px; }
.sort-opt { flex: 1; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; user-select: none; white-space: nowrap; }
.sort-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sort-opt svg.i { width: 14px; height: 14px; vertical-align: 0; }
.sort-opt:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.sort-opt:has(input:focus-visible) { outline: 2px solid var(--brand); }
.sort-opt .long { display: none; }
@media (min-width: 640px) {
  .sortbar { flex: 0 0 auto; margin-left: auto; }
  .sort-opt { flex: 0 0 auto; }
  .sort-opt .long { display: inline; } .sort-opt .short { display: none; }
}
.adv-toggle { min-height: 46px; padding: 0 14px; }
.adv-count { background: var(--brand); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; line-height: 20px; }
.adv-panel { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; align-items: end; box-shadow: var(--shadow); }
.adv-panel[hidden] { display: none; }
.adv-panel label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.adv-panel label.check { flex-direction: row; align-items: center; gap: 10px; min-height: 46px; font-weight: 600; }
.adv-panel label.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.adv-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.adv-close { display: none; }

/* Mobil: filtreler alttan açılan sayfa */
@media (max-width: 767px) {
  .adv-panel { position: fixed; inset: auto 0 0 0; z-index: 300; margin: 0; max-height: 82vh; overflow-y: auto; border-radius: 20px 20px 0 0; grid-template-columns: 1fr 1fr; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(15,23,42,.25); }
  .adv-panel::before { content: "Filtreler"; grid-column: 1 / -1; font-size: 18px; font-weight: 800; }
  .adv-panel label.check { grid-column: 1 / -1; }
  .adv-foot { position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom)); background: var(--surface); padding: 12px 0 4px; border-top: 1px solid var(--line-2); }
  .adv-close { display: inline-flex; flex: 1; }
  body.sheet-open { overflow: hidden; }
  body.sheet-open::after { content: ""; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 250; }
  .adv-toggle span:not(.adv-count) { display: none; }
}

/* ---------- Sonuçlar ve kartlar ---------- */
.results-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin: 4px 0 12px; }
.results-title { font-size: 20px; line-height: 1.25; letter-spacing: -.3px; font-weight: 800; }
.count-badge { flex-shrink: 0; background: var(--surface); border: 1px solid var(--line); padding: 3px 10px; border-radius: 99px; font-size: 13px; color: var(--muted); font-weight: 700; }
.page-intro { color: var(--muted); font-size: 14px; margin: -4px 0 12px; }
.job-list { display: flex; flex-direction: column; gap: 10px; }
.htmx-request .job-list, .htmx-request.job-list { opacity: .5; transition: opacity .2s; }

.card { position: relative; background: var(--card-bg, #f3eeff); border: 1px solid rgba(15,23,42,.05); border-radius: 16px; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -6px rgba(15,23,42,.14); border-color: rgba(15,23,42,.1); }
.card-green { --card-bg: #d9f5e5; --c: var(--green); }
.card-orange { --card-bg: #ffe8db; --c: var(--orange); }
.card-purple { --card-bg: #ece4ff; --c: var(--purple); }
.card-blue { --card-bg: #dfeafe; --c: var(--blue); }
.card-teal { --card-bg: #d3f2ee; --c: #0d9488; }
.card.is-expired { opacity: .7; }
.card-left { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(15,23,42,.07); }
.card-left .deadline { margin-left: auto; }
.card-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.inst-badge { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 11px; letter-spacing: -.2px; flex-shrink: 0; overflow: hidden; box-shadow: 0 2px 5px rgba(15,23,42,.15); }
.inst-sm { width: 30px; height: 30px; border-radius: 8px; font-size: 8.5px; }
.inst-green { background: var(--green); } .inst-orange { background: var(--orange); } .inst-purple { background: var(--purple); } .inst-blue { background: var(--blue); }
.inst-teal { background: #0d9488; }
.inst-badge.inst-long { font-size: 8.5px; letter-spacing: -.3px; }
.inst-sm.inst-long { font-size: 6.5px; }
.inst-logo { background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.inst-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.inst-name { font-size: 12px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-title { font-size: 16.5px; line-height: 1.35; font-weight: 800; letter-spacing: -.2px; }
.card-title a:hover { color: var(--brand); text-decoration: underline; }
.card-summary { font-size: 13.5px; color: #334155; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-city { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink); background: #fff; border: 1px solid rgba(15,23,42,.1); border-radius: 6px; padding: 2px 8px 2px 6px; }
.card-city svg.i { width: 13px; height: 13px; vertical-align: 0; color: var(--c, var(--brand)); }
.card-city b { font-weight: 800; }
.card-city span { color: var(--muted); font-weight: 700; font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: rgba(255,255,255,.85); color: var(--ink-2); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; box-shadow: 0 1px 1px rgba(15,23,42,.04); }
.badge-wrap { position: relative; display: flex; justify-content: center; flex-shrink: 0; }
.new-mark { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); background: #10b981; color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; line-height: 1; padding: 3px 5px; border-radius: 5px; border: 2px solid var(--card-bg, #fff); white-space: nowrap; }
.tag-urgent { background: #fff; color: var(--bad); }
.card-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.deadline { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: #fff; border-radius: var(--radius-sm); padding: 6px 10px; line-height: 1.25; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.deadline span { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.deadline b { font-size: 13.5px; white-space: nowrap; }
.deadline.urgent b { color: var(--bad); }
.deadline.expired b { color: var(--muted); text-decoration: line-through; }
.fit-item { align-self: center; justify-self: start; }
.deadline { display: flex; flex-direction: column; justify-content: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 10px; min-width: 112px; line-height: 1.25; }
.deadline span { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.deadline b { font-size: 14px; white-space: nowrap; }
.deadline.urgent { background: var(--bad-50); border-color: #fecaca; } .deadline.urgent b { color: var(--bad); }
.deadline.expired b { color: var(--muted); text-decoration: line-through; }
.card .fit-item { background: rgba(255,255,255,.85); align-self: flex-start; }
.fit-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 8px; width: fit-content; }
.fit-success { color: var(--ok); background: var(--ok-50); } .fit-danger { color: var(--bad); background: var(--bad-50); } .fit-neutral { color: var(--ink-2); background: var(--line-2); }

.exams { display: flex; flex-direction: column; gap: 3px; width: 100%; max-width: 230px; }
.exam { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 26px; padding: 0 9px; border-radius: 7px; background: rgba(255,255,255,.9); border: 1px solid rgba(15,23,42,.07); font-size: 12.5px; white-space: nowrap; color: var(--ink); }
.exam b { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.exam span { font-weight: 700; }
.exam svg.i { width: 12px; height: 12px; vertical-align: 0; }
.exam-success { background: var(--ok-50); border-color: #a7f3d0; color: var(--ok); }
.exam-danger { background: var(--bad-50); border-color: #fecaca; color: var(--bad); }
.exam-free { background: transparent; border-style: dashed; color: #94a3b8; }
.exam-free b, .exam-free span { font-weight: 600; }
.partial-mark { color: #b45309; font-size: 13px; font-weight: 900; margin-left: 1px; line-height: 0; }
.exam-partial { border-style: dashed; }
.exam-note { font-size: 11.5px; font-weight: 600; color: #92400e; line-height: 1.3; margin-top: 1px; }
.exam-note sup { color: #b45309; font-weight: 900; }
.fact .exams { margin-top: 4px; }
.headcount { display: flex; flex-direction: column; align-items: center; line-height: 1.05; text-align: center; }
.headcount b { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.headcount span { font-size: 10.5px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .3px; margin-top: 2px; }
.headcount.unknown b { color: #94a3b8; font-size: 18px; }
.card-left .headcount { flex-direction: row; align-items: baseline; gap: 5px; }
@media (min-width: 640px) { .card-left .headcount { flex-direction: column; align-items: center; gap: 0; } }
.empty { background: var(--surface); border: 1px dashed #cbd5e1; border-radius: var(--radius); padding: 32px 20px; text-align: center; color: var(--muted); font-size: 15px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 20px 0; }
.pager a, .pager span { background: var(--surface); border: 1px solid var(--line); min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager span { color: var(--muted); }

/* ---------- Yan kutular ---------- */
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.side-box h2 { font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.side-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.side-list a { font-size: 14px; font-weight: 600; line-height: 1.4; display: block; }
.side-list a:hover { color: var(--brand); }
.side-list small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.cta-box { background: linear-gradient(150deg, var(--brand), #0a2f6e); color: #fff; border: 0; }
.cta-box p { font-size: 14px; color: #d6e2f7; margin-bottom: 12px; }
.cta-box .btn { width: 100%; background: var(--accent); color: var(--ink); }

/* ---------- SEO blok ---------- */
.seo-block { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.seo-block h2 { font-size: 18px; margin-bottom: 8px; }
.seo-block p { color: var(--ink-2); font-size: 15px; }
.seo-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.seo-links a { font-size: 13.5px; font-weight: 600; background: var(--brand-50); color: var(--brand); padding: 7px 11px; border-radius: 8px; }
.seo-links a:hover { background: var(--brand-100); }

/* ---------- İlan detayı ---------- */
.detail-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.detail-header { padding: 18px 16px; border-bottom: 1px solid var(--line-2); }
.detail-inst { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
a.detail-inst:hover { color: var(--brand); }
.detail-title { font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -.4px; margin-bottom: 10px; }
.preview-title { font-size: 20px; padding-right: 36px; }
.tldr { margin-top: 12px; background: var(--brand-50); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14.5px; color: var(--ink-2); }
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-tag { background: var(--line-2); font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.modal-tag.urgent { background: var(--bad-50); color: var(--bad); }
.detail-body { padding: 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.fact { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fact:last-child { grid-column: 1 / -1; }
.fact-label { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.fact-label svg.i { width: 13px; height: 13px; vertical-align: 0; }
.fact b { font-size: 15.5px; }
.fact small { font-size: 12.5px; color: var(--muted); }
.fact.urgent { border-color: #fecaca; background: var(--bad-50); } .fact.urgent b { color: var(--bad); }
.ai-analysis-box { background: var(--accent-50); border: 1px solid #fde6b5; border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 18px; }
.ai-analysis-box h4 { display: flex; align-items: center; gap: 6px; font-size: 14.5px; margin-bottom: 8px; color: #8a5300; }
.ai-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ai-list li { font-size: 14px; display: flex; align-items: flex-start; gap: 6px; }
.ai-list li svg { margin-top: 3px; }
.ai-empty { font-size: 14px; color: var(--ink-2); }
.modal-section { margin-bottom: 20px; }
.modal-section p, .modal-section li { font-size: 15px; color: var(--ink-2); }
.sec-title { font-size: 17px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; letter-spacing: -.2px; }
.sec-title small { font-size: 13px; font-weight: 600; color: var(--muted); }
.apply-box { border: 2px solid var(--brand-100); background: #f7faff; border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.apply-box .sec-title { color: var(--brand); }
.channel { display: inline-block; background: var(--brand-100); color: var(--brand); font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 99px; margin-bottom: 10px; }
.steps { counter-reset: st; list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 4px 0 14px; }
.steps li { counter-increment: st; position: relative; padding-left: 36px; font-size: 15px; color: var(--ink); }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.dates { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 14px; }
.dates li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); }
.dates li b { color: var(--ink); font-size: 14px; }
.docs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 14px; }
.docs summary { cursor: pointer; font-weight: 800; font-size: 14.5px; }
.docs .checklist { margin-top: 10px; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.checklist li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.apply-actions { display: flex; flex-direction: column; gap: 10px; }
.table-scroll { border: 0; }
.pos-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pos-table thead { display: none; }
.pos-table, .pos-table tbody, .pos-table tr, .pos-table td { display: block; width: 100%; }
.pos-table tr { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px; background: var(--surface); }
.pos-table td { border: 0; padding: 4px 0; }
.pos-table td[data-label]:not([data-label=Kadro])::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.pos-table td b { font-size: 15px; }
.pos-table small { display: flex; align-items: center; gap: 4px; color: var(--muted); margin-top: 2px; }
.pos-table ul.mini { list-style: disc; padding-left: 18px; margin-top: 4px; color: var(--muted); font-size: 13px; }
.chip { display: inline-block; background: var(--line-2); border-radius: 6px; padding: 3px 8px; margin: 0 4px 4px 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chip.exam { background: var(--brand-50); color: var(--brand); display: block; width: fit-content; }
.chip.free { background: var(--ok-50); color: var(--ok); }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--surface); }
.faq details + details { margin-top: 8px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.faq details p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.detail-footer { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.detail-footer.sticky { position: sticky; bottom: -16px; background: var(--surface); padding: 12px 0; border-top: 1px solid var(--line); }
.disclaimer { font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.note { background: var(--line-2); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 12px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.note-warn { background: var(--warn-50); border: 1px solid #fde68a; color: #78350f; font-weight: 500; }
.note-warn ul { margin: 6px 0 6px 18px; } .note-warn .q-kritik { color: var(--bad); font-weight: 600; }
.note-warn a { font-weight: 700; color: #92400e; }
.similar { margin-top: 24px; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15,23,42,.08); }
.sticky-cta .btn:not(.btn-icon) { flex: 1; }
body:has(.sticky-cta) .site-footer { padding-bottom: 76px; }

/* ---------- Önizleme penceresi ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(4px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.active { display: flex; }
.modal-content { background: var(--surface); width: 100%; max-width: 760px; border-radius: 20px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg); }
.close-btn { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; }

/* ---------- Rehber ---------- */
.guide-group { margin-bottom: 28px; }
.guide-group > h2 { font-size: 18px; margin-bottom: 12px; }
.guide-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s; }
.guide-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow-lg); }
.guide-card h3 { font-size: 17px; line-height: 1.35; }
.guide-card:hover h3 { color: var(--brand); }
.guide-card p { font-size: 14.5px; color: var(--ink-2); }
.guide-meta { font-size: 12.5px; color: var(--muted); margin-top: auto; }
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; box-shadow: var(--shadow); }
.article.narrow { max-width: 820px; margin: 0 auto; }
.article-head h1 { font-size: 27px; line-height: 1.22; letter-spacing: -.5px; }
.kicker { display: inline-block; font-size: 12px; font-weight: 800; color: var(--brand); background: var(--brand-50); padding: 3px 9px; border-radius: 99px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .4px; }
.article-meta { font-size: 13px; color: var(--muted); margin-top: 10px; }
.toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 18px 0; font-size: 14.5px; }
.toc ol { margin: 8px 0 0 20px; display: flex; flex-direction: column; gap: 4px; }
.toc a { color: var(--brand); font-weight: 600; }
.prose { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); margin-top: 18px; }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: 21px; line-height: 1.3; color: var(--ink); margin-top: 30px; letter-spacing: -.3px; }
.prose h3 { font-size: 18px; color: var(--ink); margin-top: 22px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose td, .prose th { min-width: 120px; }
.prose td:first-child, .prose th:first-child { min-width: 110px; font-weight: 600; }
@media (min-width: 768px) { .prose table { display: table; } .prose td, .prose th { min-width: 0; } }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--ink); }
.article .faq { margin-top: 30px; }
.article .faq h2, .sources h2 { font-size: 21px; margin-bottom: 12px; }
.sources { margin-top: 28px; }
.sources ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.sources a { color: var(--brand); font-weight: 600; }
.cta-inline { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; min-height: 52px; border-radius: var(--radius-sm); background: var(--brand); color: #fff; font-weight: 800; font-size: 16px; padding: 0 16px; text-align: center; }
.cta-inline:hover { background: var(--brand-600); }

/* ---------- Footer ---------- */
.site-footer { background: #0b1b3a; color: #b6c3dc; margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 32px; padding-bottom: 24px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text b { color: var(--accent); }
.footer-brand p { font-size: 14px; margin-top: 12px; max-width: 420px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.site-footer nav h2 { color: #fff; font-size: 14px; margin-bottom: 4px; }
.site-footer nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; padding-bottom: 20px; font-size: 13px; }

/* =================== Tablet ve üstü =================== */
@media (min-width: 640px) {
  .hero-title { font-size: 44px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .span-2 { grid-column: 1 / -1; }
  .matcher-actions .btn-primary { flex: 0 0 auto; }
  .card { grid-template-columns: 100px minmax(0, 1fr) 168px; gap: 16px; padding: 16px 18px; align-items: stretch; }
  .card-left { flex-direction: column; justify-content: center; gap: 10px; padding: 0 14px 0 0; border-bottom: 0; border-right: 1px solid rgba(15,23,42,.07); }
  .card-left .deadline { margin-left: 0; width: 100%; padding: 6px 4px; }
  .card-main { justify-content: center; }
  .card-side { justify-content: center; border-left: 1px solid rgba(15,23,42,.07); padding-left: 16px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .fact:last-child { grid-column: auto; }
  .dates { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .apply-actions { flex-direction: row; flex-wrap: wrap; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .detail-header, .detail-body { padding: 22px 24px; }
  .article { padding: 28px 32px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .pos-table { font-size: 13.5px; }
}
@media (min-width: 768px) {
  .toolbar { grid-template-columns: minmax(0, 1fr) auto auto; }
  .search-box { grid-column: auto; }
  .seg-opt { flex: 0 0 auto; padding: 0 14px; }
  .sticky-cta { display: none; }
  body:has(.sticky-cta) .site-footer { padding-bottom: 0; }
  .table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
  .pos-table { display: table; }
  .pos-table thead { display: table-header-group; }
  .pos-table tbody { display: table-row-group; }
  .pos-table tr { display: table-row; border: 0; padding: 0; margin: 0; }
  .pos-table td { display: table-cell; width: auto; padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
  .pos-table td::before { display: none !important; }
  .pos-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; color: var(--muted); letter-spacing: .4px; padding: 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
  .pos-table th.num, .pos-table td.num { text-align: center; }
  .detail-title { font-size: 26px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 24px; }
  .header-inner { height: 66px; }
  .nav { display: flex; }
  .menu { display: none; }
  .hero { padding: 44px 0 72px; }
  .hero-title { font-size: 54px; }
  .hero-sub { font-size: 18px; }
  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .layout-side { position: sticky; top: 86px; }
  .form-grid { grid-template-columns: 2fr 1fr 1fr; }
  .form-grid .span-2 { grid-column: span 3; }
  .form-grid .field:nth-child(4), .form-grid .field:nth-child(5) { grid-column: span 1; }
  .card { grid-template-columns: 108px minmax(0, 1fr) 176px; }
  .guide-grid { grid-template-columns: 1fr 1fr 1fr; }
  .layout .guide-grid { grid-template-columns: 1fr 1fr; }
  .article-head h1 { font-size: 34px; }
  .results-title { font-size: 22px; }
}

/* =================== Mobil kart (kompakt) =================== */
@media (max-width: 639px) {
  .job-list { gap: 10px; }
  .card { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "badge inst deadline" "count title title" "count summary summary" "count tags tags" "side side side"; gap: 6px 10px; padding: 12px; border-radius: 14px; }
  .card:hover { transform: none; }
  .card-left, .card-main { display: contents; }
  .card-left .badge-wrap { grid-area: badge; align-self: center; }
  .card-left .inst-badge { width: 40px; height: 40px; font-size: 10px; align-self: center; }
  .inst-name { grid-area: inst; align-self: center; font-size: 11.5px; line-height: 1.25; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .card-left .deadline { grid-area: deadline; margin: 0; align-self: center; padding: 4px 8px; min-width: 0; }
  .deadline span { font-size: 9px; }
  .deadline b { font-size: 13px; }
  .card-left .headcount { grid-area: count; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; padding-top: 7px; }
  .headcount b { font-size: 19px; }
  .headcount span { font-size: 8.5px; letter-spacing: 0; text-align: center; }
  .headcount.unknown span { display: none; }
  .card-title { grid-area: title; font-size: 15.5px; line-height: 1.3; }
  .card-summary { grid-area: summary; display: block; font-size: 12.5px; line-height: 1.4; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; }
  .tags { grid-area: tags; gap: 5px; flex-wrap: nowrap; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
  .tags > * { flex-shrink: 0; white-space: nowrap; }
  .tag, .card-city { font-size: 11.5px; padding: 2px 7px; }
  .card-side { grid-area: side; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(15,23,42,.07); padding-top: 8px; margin-top: 2px; }
  .card .fit-item { font-size: 12px; padding: 3px 8px; }
  .card .exams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; max-width: none; }
  .card .exam { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; height: auto; min-height: 38px; padding: 4px 8px; line-height: 1.2; }
  .card .exam b { font-size: 11px; }
  .card .exam span { font-size: 12.5px; }
  .card .exam-free b, .card .exam-free span { font-size: 11px; }
  .card .exam-note { grid-column: 1 / -1; font-size: 11px; margin: 0; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .sticky-cta, .layout-side, .filters, .matcher { display: none !important; } }
