/* ============================================================
   CV sayfası — style.css'in token'ları üzerine kurulu.
   Buradaki her şey yalnızca /cv için; ana sayfayı etkilemez.
   ============================================================ */

.cv-main {
  padding-top: calc(var(--nav-h) + clamp(36px, 6vw, 72px));
  padding-bottom: clamp(60px, 9vw, 120px);
}

/* ---------- Başlık bloğu ---------- */
.cv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.cv-head h1 {
  font-family: var(--f-display);
  font-size: clamp(38px, 7vw, 62px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

.cv-role {
  margin: 10px 0 0;
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--blue-text);
}

/* ---------- İletişim satırı ---------- */
.cv-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--f-mono);
  font-size: 13.5px;
  color: var(--muted-dim);
}

.cv-contact li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cv-contact li:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 12px;
  background: var(--line-control);
  opacity: 0.5;
}

.cv-contact a {
  color: var(--muted-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cv-contact a:hover,
.cv-contact a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- Bölümler ---------- */
.cv-section {
  margin-top: clamp(38px, 5vw, 58px);
}

.cv-section > h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 22px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.cv-section > h2::before {
  content: attr(data-num);
  color: var(--blue-text);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.cv-section > h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- Profil paragrafı ---------- */
.cv-profile {
  max-width: 74ch;
  margin: 0;
  font-size: clamp(16px, 1.6vw, 17.5px);
  line-height: 1.72;
  color: #c6d0e0;
}

/* ---------- Kayıt (deneyim / proje / eğitim) ---------- */
.cv-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.cv-entry:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.cv-entry h3 {
  grid-column: 1;
  margin: 0;
  font-family: var(--f-display);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.cv-entry h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--blue-dim);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cv-entry h3 a:hover,
.cv-entry h3 a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* sağ sütun: yer ve tarih */
.cv-when {
  grid-column: 2;
  grid-row: 1 / span 2;
  text-align: right;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  white-space: nowrap;
}

/* Yalnızca .cv-place blok yapılıyor; ardındaki tarih satır başına kendiliğinden
   geçiyor. Buraya "span" yazılamaz — [data-lang] gizlemesini ezip iki dilin
   tarihini birden gösterir. */
.cv-when .cv-place {
  display: block;
  color: var(--muted-dim);
  opacity: 0.75;
}

/* alt satır: rol ya da teknoloji yığını */
.cv-sub {
  grid-column: 1;
  margin: 3px 0 0;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--blue-text);
}

.cv-bullets {
  grid-column: 1;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  max-width: 78ch;
}

.cv-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 15.5px;
  line-height: 1.65;
  color: #b9c3d6;
}

.cv-bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 6px;
  height: 1px;
  background: var(--blue-dim);
}

/* ---------- Yetenekler ---------- */
.cv-skills {
  display: grid;
  gap: 0;
}

.cv-skill-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 8px 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.cv-skill-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.cv-skill-row dt {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--blue-text);
}

.cv-skill-row dd {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #b9c3d6;
}

/* ---------- Küçük listeler (sertifika, dil) ---------- */
.cv-mini {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-mini li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: #b9c3d6;
}

.cv-mini .cv-when-inline {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Dar ekran ---------- */
@media (max-width: 620px) {
  .cv-entry {
    grid-template-columns: 1fr;
  }

  .cv-when {
    grid-column: 1;
    grid-row: auto;
    order: 3;
    text-align: left;
    margin-top: 8px;
  }

  /* dar ekranda yer ve tarih tek satırda; yine "span" değil .cv-place */
  .cv-when .cv-place {
    display: inline;
  }

  .cv-when .cv-place::after {
    content: " · ";
  }

  .cv-bullets {
    order: 4;
  }

  .cv-skill-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   YAZDIRMA — Ctrl+P çıktısı temiz bir CV olsun.
   Koyu tema kağıtta okunmaz, o yüzden burada tamamen çevriliyor.
   ============================================================ */
@media print {
  @page {
    margin: 14mm 13mm;
  }

  /* scroll-reveal beklemesin: kaydırılmamış bölümler de görünsün */
  .rv,
  .rv.in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  html,
  body {
    background: #fff !important;
    color: #14181f !important;
  }

  nav,
  footer {
    display: none !important;
  }

  .cv-main {
    padding: 0 !important;
  }

  .wrap {
    max-width: none !important;
    padding: 0 !important;
  }

  .cv-head {
    border-bottom: 1.5px solid #14181f !important;
    padding-bottom: 12px;
  }

  .cv-head h1 {
    font-size: 30pt;
  }

  .cv-role,
  .cv-sub,
  .cv-skill-row dt,
  .cv-section > h2::before {
    color: #2c5aa0 !important;
  }

  .cv-contact,
  .cv-contact a {
    color: #3d4654 !important;
  }

  .cv-contact li:not(:last-child)::after {
    background: #9aa4b4 !important;
  }

  .cv-section {
    margin-top: 18pt;
    break-inside: avoid;
  }

  .cv-section > h2 {
    color: #14181f !important;
    font-size: 10.5pt;
    margin-bottom: 10pt;
  }

  .cv-section > h2::after,
  .cv-entry,
  .cv-skill-row,
  .cv-mini li {
    border-color: #ccd3dd !important;
  }

  .cv-section > h2::after {
    background: #ccd3dd !important;
  }

  .cv-entry,
  .cv-skill-row,
  .cv-mini li {
    break-inside: avoid;
    padding: 8pt 0;
  }

  .cv-entry h3 {
    color: #14181f !important;
    font-size: 12pt;
  }

  .cv-entry h3 a {
    border-bottom: 0 !important;
  }

  .cv-profile,
  .cv-bullets li,
  .cv-skill-row dd,
  .cv-mini li {
    color: #2b333f !important;
    font-size: 10pt;
    line-height: 1.5;
  }

  .cv-when,
  .cv-when .cv-place,
  .cv-mini .cv-when-inline {
    color: #5b6675 !important;
    opacity: 1 !important;
    font-size: 9pt;
  }

  .cv-bullets li::before {
    background: #2c5aa0 !important;
  }
}
