/* Kariyer Araçları – modüle özel stiller. Tüm seçiciler .ka* önekiyle sınırlıdır;
   sitenin ortak stillerini (styles-v10.css) değiştirmez, yalnızca değişkenlerini kullanır. */

.ka-container { width: min(var(--page-width), calc(100% - 5rem)); margin-inline: auto; }
.ka-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ka-view [hidden], .ka-hub[hidden], .ka-view[hidden] { display: none !important; }

/* ---------- giriş ---------- */
.ka-intro { padding-block: clamp(2.2rem, 5vw, 3.6rem) clamp(1.2rem, 2.5vw, 1.8rem); }
.ka-intro h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); letter-spacing: -0.055em; line-height: 1.04; }
.ka-lead { max-width: 46rem; margin-top: 0.9rem; font-size: clamp(1rem, 1.5vw, 1.12rem); }
.ka-privacy {
  display: flex; gap: 0.6rem; align-items: flex-start; max-width: 54rem; margin-top: 1rem;
  padding: 0.75rem 0.95rem; border: 1px solid #d8d2f2; border-radius: 12px; background: #f3f1ff;
  color: #3a3470; font-size: 0.9rem; line-height: 1.5;
}
.ka-privacy svg { flex: none; margin-top: 0.1rem; color: var(--primary); }

/* ---------- araç kartları ---------- */
.ka-hub { padding-bottom: clamp(3rem, 6vw, 5rem); }
.ka-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1rem; margin: 0.6rem 0 0; padding: 0; list-style: none;
}
.ka-card {
  position: relative; display: flex; flex-direction: column; gap: 0.55rem; min-width: 0;
  padding: 1.35rem 1.35rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.ka-card:hover, .ka-card:focus-within { border-color: #c9c2f2; box-shadow: 0 14px 30px -22px rgba(66, 53, 199, 0.55); }
.ka-card h3 { font-size: 1.14rem; letter-spacing: -0.02em; }
.ka-card p { flex: 1; font-size: 0.93rem; line-height: 1.55; }
.ka-card-icon {
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 14px;
  background: linear-gradient(135deg, #eae7ff, #f3e9ff); color: var(--primary);
}
.ka-card-icon svg, .ka-back svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ka-back svg { width: 1.1rem; height: 1.1rem; }
.ka-card-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.6rem;
  margin-top: 0.25rem; padding: 0.45rem 1rem; border-radius: 10px; background: var(--primary);
  color: #fff; font-size: 0.9rem; font-weight: 700; text-decoration: none;
}
.ka-card-link::after { content: "→"; }
.ka-card-link:hover { background: var(--primary-hover); }
/* tüm kart tıklanabilir (bağlantı tek odak noktası olarak kalır) */
.ka-card-link::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }

/* ---------- araç görünümü ---------- */
.ka-view { padding-bottom: clamp(3rem, 6vw, 5rem); }
.ka-back {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.6rem; padding: 0.35rem 0.75rem 0.35rem 0.5rem;
  border: 1px solid #d3cfee; border-radius: 10px; background: var(--white); color: var(--primary);
  font-size: 0.9rem; font-weight: 700; text-decoration: none;
}
.ka-back:hover { background: #f2efff; }
.ka-view-title { margin-top: 1rem; font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -0.045em; }
.ka-view-title:focus { outline: none; }
.ka-view-body { margin-top: 1.1rem; }
.ka-view-body *:focus-visible { outline: 3px solid #6355e4; outline-offset: 2px; }

.ka-panel {
  min-width: 0; padding: clamp(1rem, 2.6vw, 1.6rem); border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white);
}
.ka-panel + .ka-panel, .ka-stack > * + * { margin-top: 1rem; }
.ka-panel h3 { font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.ka-panel h4 { font-size: 1rem; margin: 1rem 0 0.4rem; }
.ka-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.ka-cols > .ka-panel + .ka-panel { margin-top: 0; }
.ka-intro-text { max-width: 50rem; margin-bottom: 1rem; }
.ka-note {
  margin-top: 0.8rem; padding: 0.7rem 0.9rem; border-radius: 12px; background: #f6f5fb;
  color: #4a4b63; font-size: 0.87rem; line-height: 1.5;
}
.ka-note strong { color: var(--ink); }
.ka-warn { background: #fff6e8; color: #6b4a0f; border: 1px solid #f1dcb4; }
.ka-error { background: #fff1f3; color: #8e1730; border: 1px solid #f3c9d2; }
.ka-ok { background: #ecf8f1; color: #145a35; border: 1px solid #c4e6d2; }

/* ---------- form ---------- */
.ka-form { display: grid; gap: 0.85rem; }
.ka-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0.85rem; }
.ka-field { display: grid; gap: 0.3rem; min-width: 0; }
.ka-field > label, .ka-label { font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.ka-field .ka-opt { color: var(--muted); font-weight: 600; }
.ka-input, .ka-select, .ka-textarea {
  width: 100%; min-height: 2.75rem; padding: 0.55rem 0.75rem; border: 1px solid #cfcbe6; border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; font-size: 0.95rem;
}
.ka-textarea { min-height: 8rem; resize: vertical; line-height: 1.55; }
.ka-input:focus, .ka-select:focus, .ka-textarea:focus { border-color: var(--primary); outline: 3px solid rgba(66, 53, 199, 0.18); outline-offset: 0; }
.ka-input[aria-invalid="true"], .ka-textarea[aria-invalid="true"], .ka-select[aria-invalid="true"] { border-color: #c8264a; background: #fff8f9; }
.ka-field-err { color: #a3122f; font-size: 0.82rem; font-weight: 600; }
.ka-hint { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.ka-counter { color: var(--muted); font-size: 0.8rem; text-align: right; }
.ka-counter.is-over { color: #a3122f; font-weight: 700; }
.ka-check { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.92rem; cursor: pointer; }
.ka-check input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.18rem; accent-color: var(--primary); }

.ka-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.ka-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 2.75rem;
  padding: 0.5rem 1.05rem; border: 1px solid transparent; border-radius: 10px; background: none; color: inherit;
  font: inherit; font-size: 0.93rem; font-weight: 700; line-height: 1.25; cursor: pointer; text-decoration: none;
}
.ka-btn:disabled { cursor: not-allowed; opacity: 0.55; }
.ka-btn-primary { background: var(--primary); color: #fff; }
.ka-btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.ka-btn-secondary { border-color: #d3cfee; background: var(--white); color: var(--primary); }
.ka-btn-secondary:hover:not(:disabled) { border-color: #c0b9ed; background: #f2efff; }
.ka-btn-ghost { color: var(--muted); }
.ka-btn-ghost:hover:not(:disabled) { background: #efedf8; color: var(--ink); }
.ka-btn-sm { min-height: 2.25rem; padding: 0.35rem 0.75rem; font-size: 0.85rem; }
.ka-btn.is-busy::before {
  content: ""; width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: ka-spin 0.8s linear infinite;
}
@keyframes ka-spin { to { transform: rotate(360deg); } }

/* sekmeler */
.ka-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; padding: 0.3rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ka-tab {
  flex: 1 1 auto; min-height: 2.5rem; padding: 0.4rem 0.85rem; border: 0; border-radius: 10px; background: none;
  color: var(--muted); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer;
}
.ka-tab:hover { background: #f2f0fb; color: var(--ink); }
.ka-tab[aria-selected="true"] { background: var(--primary); color: #fff; }

/* dosya yükleme */
.ka-drop {
  display: grid; justify-items: center; gap: 0.5rem; padding: 1.6rem 1rem; border: 2px dashed #cbc4ef;
  border-radius: 16px; background: #faf9ff; text-align: center; transition: border-color 0.15s ease, background 0.15s ease;
}
.ka-drop.is-over { border-color: var(--primary); background: #f1eeff; }
.ka-drop p { font-size: 0.9rem; }
.ka-file-name { font-size: 0.88rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- sonuçlar ---------- */
.ka-result:empty { display: none; }
.ka-empty { padding: 1.4rem; border: 1px dashed #d6d2ec; border-radius: 16px; color: var(--muted); text-align: center; font-size: 0.92rem; }
.ka-loading { display: flex; gap: 0.6rem; align-items: center; padding: 1rem; color: var(--muted); font-size: 0.92rem; }
.ka-loading::before {
  content: ""; width: 1.1rem; height: 1.1rem; border: 2px solid var(--primary); border-right-color: transparent;
  border-radius: 50%; animation: ka-spin 0.8s linear infinite;
}
.ka-score { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.ka-gauge {
  --v: 0; --c: var(--primary); position: relative; flex: none; display: grid; place-items: center;
  width: 7.5rem; height: 7.5rem; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--v) * 1%), #ebe8f7 0);
}
.ka-gauge::before { content: ""; position: absolute; inset: 0.65rem; border-radius: 50%; background: #fff; }
.ka-gauge b { position: relative; font-size: 1.9rem; letter-spacing: -0.04em; color: var(--ink); }
.ka-gauge small { position: absolute; bottom: 1.6rem; font-size: 0.72rem; color: var(--muted); font-weight: 700; }
.ka-score-text { flex: 1 1 16rem; min-width: 0; }
.ka-score-text h3 { margin-bottom: 0.3rem; }

.ka-bar { height: 0.55rem; border-radius: 999px; background: #ebe8f7; overflow: hidden; }
.ka-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4235c7, #8b5cf6); }
.ka-bar.is-low > span { background: #d1435b; }
.ka-bar.is-mid > span { background: #d9902b; }

.ka-checks { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.ka-checks li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.65rem; align-items: start; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: 12px; }
.ka-checks .ka-pts { font-size: 0.82rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ka-checks strong { display: block; color: var(--ink); font-size: 0.95rem; }
.ka-checks p { font-size: 0.87rem; line-height: 1.5; }
.ka-dot { width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; color: #fff; }
.ka-dot.ok { background: #1f8a52; }
.ka-dot.warn { background: #d08a1e; }
.ka-dot.fail { background: #c8264a; }
.ka-dot.na { background: #9a98b0; }

.ka-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.35rem 0 0; padding: 0; list-style: none; }
.ka-chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.22rem 0.6rem; border: 1px solid #d8d2f2; border-radius: 999px; background: #f6f4ff; color: #3a2f8c; font-size: 0.84rem; font-weight: 600; overflow-wrap: anywhere; }
.ka-chip.is-miss { border-color: #f1cbd3; background: #fff4f6; color: #8e1730; }
.ka-chip.is-hit { border-color: #c4e6d2; background: #effaf3; color: #145a35; }
.ka-chip small { font-weight: 700; opacity: 0.75; }

.ka-list { margin: 0.3rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: 0.92rem; }
.ka-list li + li { margin-top: 0.35rem; }
.ka-list strong { color: var(--ink); }

.ka-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.ka-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; font-variant-numeric: tabular-nums; }
.ka-table th, .ka-table td { padding: 0.5rem 0.65rem; border-bottom: 1px solid #eeecf6; text-align: right; white-space: nowrap; }
.ka-table th:first-child, .ka-table td:first-child { text-align: left; }
.ka-table thead th { background: #f7f6fc; color: var(--ink); font-weight: 700; position: sticky; top: 0; }
.ka-table tfoot td { font-weight: 700; color: var(--ink); background: #faf9fe; }
.ka-table tr:last-child td { border-bottom: 0; }

.ka-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 0.7rem; }
.ka-kpi { padding: 0.85rem 0.95rem; border: 1px solid var(--line); border-radius: 14px; background: #fcfbff; min-width: 0; }
.ka-kpi span { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.ka-kpi b { display: block; margin-top: 0.2rem; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ka-kpi.is-best { border-color: #9ad3b2; background: #f0faf4; }

.ka-output {
  white-space: pre-wrap; overflow-wrap: anywhere; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px;
  background: #fcfbff; color: var(--ink); font-size: 0.95rem; line-height: 1.65;
}
.ka-alt + .ka-alt { margin-top: 0.8rem; }
.ka-alt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.ka-alt-head strong { font-size: 0.9rem; }

/* soru kartları (mülakat) */
.ka-q { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ka-q + .ka-q { margin-top: 0.6rem; }
.ka-q > summary { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.8rem 0.95rem; cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); }
.ka-q > summary::-webkit-details-marker { display: none; }
.ka-q > summary::before { content: "+"; flex: none; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 8px; background: #eeebff; color: var(--primary); font-weight: 800; }
.ka-q[open] > summary::before { content: "–"; }
.ka-q-body { display: grid; gap: 0.7rem; padding: 0 0.95rem 0.95rem; }
.ka-q-tag { margin-left: auto; flex: none; padding: 0.1rem 0.5rem; border-radius: 999px; background: #f3f1ff; color: #4a3fb0; font-size: 0.74rem; font-weight: 700; }
.ka-q.is-answered > summary .ka-q-tag { background: #e6f6ed; color: #145a35; }
.ka-sample { padding: 0.75rem 0.9rem; border-left: 3px solid #a99ff0; border-radius: 0 10px 10px 0; background: #f8f7ff; font-size: 0.9rem; color: #353659; }

/* yol haritası */
.ka-month { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.ka-month + .ka-month { margin-top: 0.8rem; }
.ka-month-head { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between; padding: 0.8rem 1rem; background: #f8f7fd; border-bottom: 1px solid var(--line); }
.ka-month-head h4 { margin: 0; }
.ka-month-head .ka-bar { flex: 1 1 8rem; max-width: 14rem; }
.ka-week { padding: 0.7rem 1rem; }
.ka-week + .ka-week { border-top: 1px solid #f0eef7; }
.ka-week-title { font-size: 0.82rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.35rem; }
.ka-step { padding: 0.25rem 0; }
.ka-step.is-done span { text-decoration: line-through; color: var(--muted); }
.ka-skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.4rem 1rem; }
.ka-prio { display: inline-block; margin-left: 0.3rem; padding: 0 0.4rem; border-radius: 6px; font-size: 0.72rem; font-weight: 700; vertical-align: 1px; }
.ka-prio.p3 { background: #fde8ec; color: #8e1730; }
.ka-prio.p2 { background: #fff1dc; color: #7a4b08; }
.ka-prio.p1 { background: #eceaf6; color: #4a4b63; }

/* bildirimler */
.ka-toasts { position: fixed; z-index: 20; left: 50%; bottom: 1rem; display: grid; gap: 0.5rem; width: min(26rem, calc(100% - 2rem)); transform: translateX(-50%); pointer-events: none; }
.ka-toast { padding: 0.7rem 0.95rem; border-radius: 12px; background: #1d1840; color: #fff; font-size: 0.9rem; font-weight: 600; box-shadow: 0 12px 28px -12px rgba(20, 16, 50, 0.6); }
.ka-toast.is-error { background: #8e1730; }
.ka-toast.is-success { background: #145a35; }

/* temizle düğmesi */
.ka-btn-clear span { font-size: 1.05rem; line-height: 1; }

/* teklif kartı başlığı ve kaldır düğmesi */
.ka-offer-legend { display: flex; align-items: center; gap: 0.5rem; }
.ka-offer-remove {
  display: inline-flex; align-items: center; gap: 0.25rem; min-height: 2rem; padding: 0.2rem 0.6rem;
  border: 1px solid #f1cbd3; border-radius: 8px; background: #fff; color: #a3122f;
  font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer;
}
.ka-offer-remove:hover { background: #fff1f3; border-color: #e7a9b7; }

/* tarih alanı ve takvim */
.ka-date { position: relative; }
.ka-date .ka-date-input { padding-right: 3rem; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.ka-date-btn {
  position: absolute; top: 50%; right: 0.3rem; display: grid; place-items: center; width: 2.3rem; height: 2.3rem;
  border: 0; border-radius: 8px; background: #f2efff; color: var(--primary); cursor: pointer; transform: translateY(-50%);
}
.ka-date-btn:hover, .ka-date-btn[aria-expanded="true"] { background: var(--primary); color: #fff; }
.ka-date-btn svg, .ka-cal-nav svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ka-cal {
  position: absolute; z-index: 30; top: calc(100% + 0.4rem); left: 0; width: min(19.5rem, calc(100vw - 2rem));
  padding: 0.8rem; border: 1px solid #ddd8f3; border-radius: 16px; background: #fff;
  box-shadow: 0 22px 48px -18px rgba(30, 22, 90, 0.45); animation: ka-cal-in 0.14s ease-out;
}
.ka-cal.is-up { top: auto; bottom: calc(100% + 0.4rem); }
@keyframes ka-cal-in { from { opacity: 0; transform: translateY(-4px); } }
.ka-cal-head { display: flex; align-items: center; gap: 0.35rem; }
.ka-cal-sels { flex: 1; display: flex; gap: 0.35rem; min-width: 0; }
.ka-cal-sel {
  flex: 1 1 auto; min-width: 0; min-height: 2.3rem; padding: 0.25rem 0.4rem; border: 1px solid #d8d3ef; border-radius: 8px;
  background: #faf9ff; color: var(--ink); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer;
}
.ka-cal-sel:last-child { flex: 0 0 5.2rem; }
.ka-cal-nav {
  flex: none; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border: 0; border-radius: 8px;
  background: none; color: var(--primary); cursor: pointer;
}
.ka-cal-nav:hover { background: #f2efff; }
.ka-cal-week, .ka-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.15rem; }
.ka-cal-week { margin: 0.6rem 0 0.25rem; }
.ka-cal-week span { color: var(--muted); font-size: 0.74rem; font-weight: 700; text-align: center; }
.ka-cal-day {
  aspect-ratio: 1; min-height: 2.2rem; border: 0; border-radius: 10px; background: none; color: var(--ink);
  font: inherit; font-size: 0.9rem; font-variant-numeric: tabular-nums; cursor: pointer;
}
.ka-cal-day:hover { background: #f0edff; }
.ka-cal-day.is-out { color: #b3b1c6; }
.ka-cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--primary); font-weight: 700; }
.ka-cal-day.is-sel { background: var(--primary); color: #fff; font-weight: 700; }
.ka-cal-foot { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: space-between; margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid #eeecf6; }

/* ---------- duyarlı düzen ---------- */
@media (max-width: 970px) {
  .ka-container { width: calc(100% - 3rem); }
}
@media (max-width: 860px) {
  .ka-cols { grid-template-columns: minmax(0, 1fr); }
  .ka-cols > .ka-panel + .ka-panel { margin-top: 0; }
}
@media (max-width: 760px) {
  .ka-container { width: calc(100% - 2rem); }
  .ka-card { padding: 1.1rem; }
  .ka-gauge { width: 6.4rem; height: 6.4rem; }
  .ka-gauge b { font-size: 1.6rem; }
  .ka-gauge small { bottom: 1.3rem; }
  .ka-tab { flex: 1 1 calc(50% - 0.35rem); }
}
@media (max-width: 370px) {
  .ka-checks li { grid-template-columns: auto minmax(0, 1fr); }
  .ka-checks .ka-pts { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .ka-btn.is-busy::before, .ka-loading::before { animation-duration: 2.4s; }
  .ka-card { transition: none; }
  .ka-cal { animation: none; }
}
