/* Kariyer Platformu — tasarım sistemi
 *
 * Referans: rezi.ai (kullanıcı tarafından örnek olarak verildi).
 * Ondan alınan ölçülen değerler:
 *   · Gövde 17.6px / zemin #FAFAFA
 *   · Başlıklar MEDIUM (500) — bold değil. Büyük punto + ince ağırlık,
 *     "kalın her yerde" görünümünden kaçınır; asıl profesyonel duruşu bu verir.
 *   · Harf aralığı başlıklarda negatif (-0.02em)
 *   · Butonlar tam yuvarlak (pill)
 *   · Vurgu mavisi (WCAG icin koyulastirildi — asagida)
 *
 * PP Neue Montreal ticari bir yazı tipidir; en yakın ücretsiz karşılığı
 * Instrument Sans kullanıldı.
 */

:root {
  /* --------------------------------------------------------------- RENK */
  --bg:          #FAFAFA;
  --surface:     #FFFFFF;
  --sunken:      #F2F2F2;
  --ink:         #111111;
  --muted:       #545454;
  /* --soft yalnizca BUYUK metin ve suslemede kullanilir (3:1 esigi).
   * Kucuk metin icin --soft-text zorunludur; #A6A6A6 kucuk puntoda
   * 2.33:1 verir ve okunamaz. */
  --soft:        #8A8A8A;
  --soft-text:   #6B6B6B;
  --line:        #E9E9E9;
  --line-strong: #D8D8D8;

  /* Vurgu rengi WCAG AA icin koyulastirildi.
   * Referans sitedeki #4D70EB, beyaz uzerinde 4.35:1 verir ve normal
   * metin esigini (4.5:1) GECMEZ. Ton korundu, deger dusuruldu:
   * #3F5FD0 ayni mavi ailesinde ama 5.35:1 saglar.
   * Dogrulama: node scripts/check-contrast.mjs */
  --accent:       #3F5FD0;
  --accent-hover: #2F49AE;
  --accent-soft:  #EDF1FE;
  --accent-line:  #C9D5FA;

  --ok:     #0F7355;
  --ok-soft:#E4F5F0;
  --warn:   #8A5C0E;
  --warn-soft:#FDF3E2;
  --danger: #C93A3A;
  --danger-soft:#FCEBEB;

  /* ------------------------------------------------------------- ÖLÇÜ */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(17,17,17,.05);
  --shadow:    0 1px 3px rgba(17,17,17,.06), 0 8px 24px rgba(17,17,17,.05);
  --shadow-lg: 0 2px 6px rgba(17,17,17,.06), 0 24px 60px rgba(17,17,17,.09);

  --font-display: 'Inter Tight', 'Segoe UI', system-ui, sans-serif;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', Consolas, ui-monospace, monospace;

  --wide: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  /* Gövde metni GRİ, başlıklar siyah — rezi.ai'da ölçülen ayrım (#545454 / #000).
   * Her yeri koyu yazmak sayfayı düz ve amatör gösteriyordu; hiyerarşiyi
   * punto değil RENK kuruyor. */
  color: var(--muted);
  font-family: var(--font);
  font-size: 17.6px;   /* rezi.ai'da ölçülen 17.616px */
  font-weight: 450;    /* Inter Variable'ın 450'si — 400 fazla ince durur */
  line-height: 1.5;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;              /* medium — bold DEĞİL */
  letter-spacing: -0.005em;  /* ölçüldü: -0.2776px / 55.52px */
  line-height: 1.15;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent-soft); color: var(--accent-hover); }

/* ------------------------------------------------------------------- ÜST BAR */

.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,250,250,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--wide); margin: 0 auto; padding: 0 24px;
  height: 66px; display: flex; align-items: center; gap: 18px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600; font-size: 20px; letter-spacing: -0.03em;
  display: inline-flex; align-items: center; gap: 9px; color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 27px; height: 27px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
  letter-spacing: 0;
}
.topbar-spacer { flex: 1; }
.topbar nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px; font-size: 15px; font-weight: 450; color: var(--muted);
  border-radius: var(--r-pill);
}
.nav-link:hover { color: var(--ink); background: var(--sunken); }

/* ------------------------------------------------------------------ BUTONLAR */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-family: var(--font); font-size: 15.5px; font-weight: 500; line-height: 1;
  padding: 12px 22px; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .06s ease;
}
.btn:hover { color: inherit; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); color: #fff; }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); }

.btn-quiet { background: transparent; color: var(--muted); }
.btn-quiet:hover:not(:disabled) { background: var(--sunken); color: var(--ink); }

.btn-danger { background: transparent; color: var(--danger); border-color: var(--line-strong); }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); border-color: var(--danger); }

.btn-sm { padding: 8px 15px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16.5px; }

/* -------------------------------------------------------------------- FORM */

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--soft); line-height: 1.45; }

input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=month], input[type=date], select, textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--soft); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input::placeholder, textarea::placeholder { color: var(--soft); }
textarea { resize: vertical; min-height: 96px; line-height: 1.55; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23A6A6A6' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}

.field-error input, .field-error textarea, .field-error select { border-color: var(--danger); }
.error-text { font-size: 13.5px; color: var(--danger); font-weight: 450; }

.checkbox { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.checkbox input {
  width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0;
  accent-color: var(--accent); cursor: pointer;
}
.checkbox span { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.checkbox strong { color: var(--ink); font-weight: 500; }

/* ------------------------------------------------------------------ KUTULAR */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px;
}

.alert {
  border-radius: var(--r-sm); padding: 14px 16px; font-size: 15px;
  line-height: 1.5; border: 1px solid; display: flex; flex-direction: column; gap: 5px;
}
.alert-error { background: var(--danger-soft); border-color: #F0C4C4; color: var(--danger); }
.alert-ok    { background: var(--ok-soft);     border-color: #BEE5DA; color: var(--ok); }
.alert-warn  { background: var(--warn-soft);   border-color: #EFD9AE; color: var(--warn); }
.alert strong { font-weight: 600; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: var(--r-pill); padding: 6px 14px;
  font-size: 13.5px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line);
}

/* ------------------------------------------------------------- YARDIMCILAR */

.stack { display: flex; flex-direction: column; }
.row   { display: flex; align-items: center; }
.gap-4{gap:4px} .gap-6{gap:6px} .gap-8{gap:8px} .gap-10{gap:10px}
.gap-12{gap:12px} .gap-16{gap:16px} .gap-20{gap:20px} .gap-24{gap:24px} .gap-32{gap:32px}
.grow { flex: 1 }
.muted { color: var(--muted) }
.soft  { color: var(--soft) }
.small { font-size: 14px }
.center { text-align: center }
.hidden { display: none !important }

.spinner {
  width: 15px; height: 15px; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------- SKOR HALKASI */

.score-ring {
  --pct: 0;
  width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--ring-color, var(--accent)) calc(var(--pct) * 1%), var(--sunken) 0);
  display: grid; place-items: center;
  transition: background .5s ease;
}
.score-ring::before {
  content: ''; grid-area: 1/1; width: 60px; height: 60px;
  background: var(--surface); border-radius: 50%;
}
.score-ring span {
  grid-area: 1/1; font-family: var(--font-display);
  font-weight: 600; font-size: 21px; letter-spacing: -0.02em;
  color: var(--ring-color, var(--accent)); font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ SAYFA */

.page { max-width: var(--wide); margin: 0 auto; padding: 40px 24px 100px; }
.page-narrow { max-width: 440px; margin: 0 auto; padding: 56px 24px 100px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-inner { padding: 0 18px; height: 60px; }
  .page { padding: 28px 18px 72px; }
  .page-narrow { padding: 36px 18px 72px; }
}
