/* ===== SporKariyerim — Aday Paneli (aday.html mockup stiline sadık) ===== */

/* Panel hero (mockup: aday.html) */
.panel-hero {
  background: linear-gradient(135deg, #0673E4, #045bc0);
  border-radius: 16px; padding: 34px; color: #fff; margin-bottom: 32px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.panel-hero h1 { margin: 0 0 8px; font-size: 28px; font-weight: 800; }
.panel-hero p { margin: 0; font-size: 15px; opacity: .92; max-width: 520px; }
.panel-hero .btn { flex-shrink: 0; }

/* İstatistik şeridi (mockup: aday.html) */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.stat-box {
  background: #fff; border: 1px solid #EAF0F7; border-radius: 14px;
  padding: 20px; text-align: center; box-shadow: 0 4px 16px rgba(11,31,77,.04);
}
.stat-box .stat-num { font-size: 28px; font-weight: 800; color: #0673E4; }
.stat-box .stat-num.green { color: #63C61A; }
.stat-box .stat-lbl { font-size: 13px; color: #5a6a82; margin-top: 2px; }

/* Hızlı işlemler (mockup: aday.html feature-grid) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: #fff; border: 1px solid #EAF0F7; border-radius: 16px; padding: 26px;
  box-shadow: 0 4px 16px rgba(11,31,77,.04); display: flex; flex-direction: column; transition: .18s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(11,31,77,.10); }
.feature-ico {
  width: 52px; height: 52px; border-radius: 13px; background: #EAF4FF; color: #0673E4;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-ico.green { background: #eef8e6; color: #63C61A; }
.feature-card h3 { margin: 0 0 8px; font-size: 18px; color: #0B1F4D; }
.feature-card p { margin: 0 0 18px; font-size: 14px; color: #5a6a82; line-height: 1.55; flex: 1; }

/* Panel ızgarası: sol menü + içerik */
.panel-grid { display: grid; grid-template-columns: 264px 1fr; gap: 32px; align-items: start; }
.panel-main { min-width: 0; }

/* Sol menü */
.panel-side {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 14px; position: sticky; top: 132px;
}
.panel-user { display: flex; align-items: center; gap: 12px; padding: 4px 10px 16px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.panel-avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--light-blue);
  color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 17px; flex-shrink: 0;
}
.panel-user-name { font-weight: 700; color: var(--navy); font-size: 15px; line-height: 1.3; }
.panel-user-mail { font-size: 12.5px; color: var(--text-muted); word-break: break-all; }
.panel-nav { display: flex; flex-direction: column; gap: 2px; }
.panel-nav a, .panel-nav span {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px;
  border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--text);
}
.panel-nav a:hover { background: var(--soft-gray); color: var(--blue); }
.panel-nav a.active { background: var(--light-blue); color: var(--blue); }

/* Panel kartı */
.panel-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; margin-bottom: 24px;
}
.panel-card-title {
  font-size: 19px; font-weight: 800; color: var(--navy); margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.panel-card-title small { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* Doluluk çubuğu */
.progress-track { background: rgba(255,255,255,.25); border-radius: 20px; height: 8px; margin-top: 14px; max-width: 420px; }
.progress-fill { background: #63C61A; height: 8px; border-radius: 20px; transition: width .3s; }

/* Başvuru tablosu */
.apps-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.apps-table th {
  text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px;
  color: var(--text-muted); font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--border);
}
.apps-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.apps-table tr:last-child td { border-bottom: none; }
.apps-table .job-link { font-weight: 700; color: var(--navy); }
.apps-table .job-link:hover { color: var(--blue); }
/* Yayından kalkmış ilan: hâlâ tıklanabilir (detay sayfası çalışıyor) ama
   yayındaki başvurulardan ayrılsın diye soluk. Tablo çoğunlukla geçmiş
   başvurulardan oluşuyor; hepsi koyu olursa güncel olanlar kaybolur. */
.apps-table .job-link--passive { color: var(--text-muted); font-weight: 600; }
.apps-table .job-link--passive:hover { color: var(--navy); }
.table-scroll { overflow-x: auto; }
.status-pill {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px; background: #eef8e3; color: var(--green-dark);
}
.status-pill.muted { background: var(--soft-gray); color: var(--text-muted); }
.empty-note { color: var(--text-muted); font-style: italic; padding: 18px 0; }

/* CV görüntüleme */
.cv-dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 28px; margin: 0; }
.cv-dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cv-dl dt { color: var(--text-muted); font-size: 14px; }
.cv-dl dd { margin: 0; font-weight: 600; color: var(--navy); font-size: 14.5px; text-align: right; }
.cv-empty { color: #b6c0d2; font-weight: 400; }
/* İletişim bölümünün başındaki "bu CV şu ad adına" notu. Alan kaldırıldığı
   için adayın adının nereden geldiğini ve nereden değiştirileceğini söylüyor. */
.cv-name-note {
  margin: 0 0 18px; padding: 12px 14px;
  background: var(--soft-gray); border-radius: 10px;
  font-size: 14px; color: var(--text-muted); line-height: 1.5;
}
.cv-name-note strong { color: var(--navy); }
/* Kutunun kendi rengi soluk; içindeki bağlantı bağlantı gibi görünmeli. */
.cv-name-note a { color: var(--blue); font-weight: 600; }
.cv-name-note a:hover { text-decoration: underline; }

/* ===== Zorunlu alan işareti ===== */
.req { color: #d33; font-weight: 700; }
.cv-req-note {
  margin: 4px 0 18px; font-size: 13px; color: var(--text-muted); line-height: 1.5;
}

/* ===== Sabit CV kayıt çubuğu =====
   position:sticky, formu saran kutunun içinde: form boyunca ekranın altında
   asılı durur, son bölümden sonra yerine oturur. Ata kutulardan hiçbirinde
   overflow YOK — bir tanesi olsaydı sticky sessizce çalışmazdı. */
.cv-savebar {
  position: sticky; bottom: 16px; z-index: 20;
  margin-top: 24px;
}
.cv-savebar-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 20px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(11, 31, 77, 0.14);
}
.cv-savebar-meter { flex: 1 1 auto; min-width: 0; }
.cv-savebar-labels {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--text-muted); margin-bottom: 7px;
}
.cv-savebar-labels strong { font-size: 16px; color: var(--navy); }
.cv-savebar-track {
  height: 8px; border-radius: 99px; background: var(--soft-gray); overflow: hidden;
}
.cv-savebar-fill {
  height: 100%; width: 0; border-radius: 99px;
  background: var(--blue);
  transition: width 0.25s ease, background 0.25s ease;
}
.cv-savebar.is-complete .cv-savebar-fill { background: var(--green, #63C61A); }
.cv-savebar.is-complete .cv-savebar-labels strong { color: var(--green, #63C61A); }
.cv-savebar-btn { flex: 0 0 auto; white-space: nowrap; }

@media (max-width: 560px) {
  .cv-savebar-inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 14px; }
  .cv-savebar-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cv-savebar-fill { transition: none; }
}
.cv-item { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.cv-item h4 { margin: 0 0 4px; font-size: 15.5px; color: var(--navy); }
.cv-item p { margin: 0; font-size: 14px; color: var(--text-muted); }
/* "Özet CV'niz" metni (cv_educations.other) — aday CV görünümü. */
.cv-summary { font-size: 14.5px; line-height: 1.7; color: var(--text); }
.cv-summary p { margin: 0 0 10px; }
.cv-summary p:last-child { margin-bottom: 0; }
.cv-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cv-head .panel-avatar { width: 72px; height: 72px; font-size: 26px; }
.cv-head h2 { margin: 0 0 4px; font-size: 24px; color: var(--navy); }
.cv-head p { margin: 0; color: var(--text-muted); font-size: 14.5px; }
.cv-missing {
  text-align: center; padding: 46px 20px; color: var(--text-muted);
}
.cv-missing h3 { color: var(--navy); font-size: 20px; margin-bottom: 8px; }

/* Form yardımcıları (sporkariyerim.css .form-group/.form-control ile birlikte) */
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 6px; }
.form-hint { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* Flash mesajları */
.flash { border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; font-weight: 600; font-size: 14.5px; }
.flash-notice { background: #eef8e3; color: #3d7a0b; border: 1px solid #cdeaa9; }
.flash-alert { background: #fdecec; color: #b42323; border: 1px solid #f5c6c6; }

/* Responsive */
@media (max-width: 1100px) {
  .panel-grid { grid-template-columns: 1fr; }
  .panel-side { position: static; }
}
@media (max-width: 900px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .cv-dl { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
}

/* ===== Aday paneli · Eğitimler sayfası ===== */
.panel-hint { color: var(--text-muted); font-size: 14.5px; margin: -8px 0 18px; line-height: 1.6; }
/* .panel-card-title zaten flex + space-between; link sağ tarafa oturur */
.panel-hint-link { font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; white-space: nowrap; }
.panel-hint-link:hover { text-decoration: underline; }
.panel-empty { text-align: center; padding: 40px 28px; }
.panel-empty .panel-card-title { justify-content: center; }
.panel-empty .panel-hint { margin: 0 0 18px; }
/* Panel içindeki eğitim ızgarası dar kolona sığmalı */
.panel-main .edu-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

/* İş arayış durumu onay kutusu */
.seek-toggle {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid #E4E9F2; border-radius: 10px; padding: 14px; cursor: pointer;
}
.seek-toggle:hover { border-color: #0673E4; }
.seek-toggle input { margin-top: 3px; width: 17px; height: 17px; accent-color: #63C61A; }
/* > span > strong ŞART: seçici `.seek-toggle strong` olsaydı açıklama
   metnindeki (<small>) vurgular da blok olup 14px'e büyür, cümleyi üç parçaya
   bölerdi. Blok davranışı yalnızca BAŞLIK satırına ait. */
.seek-toggle > span > strong { display: block; color: #0B1F4D; font-size: 14px; }
.seek-toggle small { display: block; color: #6B7280; font-size: 12.5px; margin-top: 4px; line-height: 1.55; }
.seek-toggle small strong { color: #0B1F4D; }
/* Açıklama içindeki bağlantı (KVKK metni) tıklanabilir görünmeli; miras alınan
   gri renkte düz metinden ayırt edilemiyordu. */
.seek-toggle small a { color: #0673E4; text-decoration: underline; }

/* Sertifika satırı: "Listede yok / Diğer" seçilince açılan serbest metin alanı */
.sertifika-satiri .sertifika-other { margin-top: 8px; }
/* Aynı kalıp, tek alan (üniversite bölümü): "Diğer" seçilince açılan metin kutusu */
.secim-diger-other { margin-top: 8px; }

/* İndirim kodu alanı (shared/promo_alani) ve sipariş özetindeki indirim satırı —
   company_panel.css'teki karşılıklarıyla aynı renkler. */
.form-section-title { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.form-section-title .fs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.form-section-desc { font-size: 13.5px; color: #5a6a82; margin: 0 0 16px; }
.promo-msg { margin: 8px 0 0; font-size: 13px; font-weight: 600; }
.promo-msg--ok  { color: #3D7A10; }
.promo-msg--err { color: #B42323; }
.cv-row .v.row-discount { color: #3D7A10; }

/* ===== CV'de tekrarlanan satırlar (09.09.2026, satır bazlı şema) =====
   İş tecrübesi, öğrenim, sertifika ve uzmanlık satırları; "Kaldır" düğmesi ve
   "+ ... ekle" düğmesi tekrarli_alan_controller.js ile yönetiliyor. Düğme JS
   kapalıyken gizli kalır (HTML'de hidden), o durumda sunucunun bastığı boş
   satırlar doldurulur. */
.cv-blok-basligi { margin: 22px 0 12px; color: var(--navy, #0B1F4D); font-size: 16px; }
.cv-satir {
  border: 1px solid #EAF0F7; border-radius: 12px; padding: 16px 16px 4px;
  margin-bottom: 12px; background: #FBFCFE;
}
/* Tek alanlı satır (uzmanlık branşı): başlık satırı yok, alan ve "Kaldır" yan
   yana. Dolgu daha dar — tek bir açılır kutu için 130 px'lik kart fazlaydı. */
.cv-satir--tek { padding: 12px 14px; }
.cv-satir--tek .form-group { margin-bottom: 0; }
.cv-satir-basi { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cv-satir-basi h4 { margin: 0; font-size: 14.5px; color: var(--navy, #0B1F4D); }
.cv-satir-ipucu { font-weight: 500; font-size: 12.5px; color: #7a879b; }
/* Kaldır: yıkıcı bir eylem ama ikincil — kırmızı ama çerçevesiz. */
.cv-satir-sil {
  flex: 0 0 auto; padding: 5px 12px; font-size: 13px; font-weight: 600;
  color: #c0392b; background: transparent; border: 1px solid transparent;
  border-radius: 8px; cursor: pointer;
}
.cv-satir-sil:hover { background: #fdecec; border-color: #f5c6c2; }
.cv-satir-tekli { display: flex; align-items: center; gap: 10px; }
/* GİZLİ NATIVE SELECT FLEX SATIRINDA YER KAPLAMAMALI.
   select_controller native select'i gizleyip (.sel-native-hidden) görünen
   kutuyu (.sel) KARDEŞ olarak ekliyor. Gizli select'in `width:100%` kuralı
   flex satırında 710 px yer kapıyor ve görünen kutuyu sağa itip 183 px'e
   sıkıştırıyordu — branş adı "Ak..." diye kırpılıyordu (09.09.2026'da
   ölçüldü). Aynı tuzak .filter-field için de çözülmüş; kural birebir o. */
.cv-satir-tekli select.sel-native-hidden { flex: 0 0 0; width: 0; min-width: 0; padding: 0; }
.cv-satir-tekli .sel { flex: 1 1 auto; min-width: 0; }
.cv-satir-tekli > .form-control { flex: 1 1 auto; min-width: 0; }
.cv-satir-ekle { margin: 2px 0 18px; }
.cv-satir-ekle[disabled] { opacity: .5; cursor: not-allowed; }
/* Uzmanlık rozetleri — CV görünümlerinde (aday + işveren). */
.cv-rozetler { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.cv-rozet {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: #EAF3FE; color: #0B4C9E; font-size: 13px; font-weight: 600;
}
/* Uzmanlık satırındaki sıra numarası — etiket yerine geçiyor, hizayı bozmuyor. */
.cv-satir-no { flex: 0 0 auto; min-width: 18px; font-weight: 700; color: var(--navy); font-size: 14.5px; }

/* CV görünümündeki TEK bilgi satırı ("Çalışma Durumu: Çalışıyorum").
   .cv-dl kullanılmıyor: o iki sütunlu bir grid ve tek öğede değer kartın
   ortasında asılı kalıyor. */
.cv-bilgi {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 0 0 16px; font-size: 14.5px;
}
.cv-bilgi span { color: var(--text-muted); }
.cv-bilgi span::after { content: ":"; }
.cv-bilgi strong { color: var(--navy); font-weight: 600; }
/* Özet CV metni — kartın içinde ayrı bir blok olduğu belli olsun. */
.cv-summary {
  background: var(--soft-gray, #F7F9FC); border-radius: 12px; padding: 14px 16px;
}
