/* ============================================
   CV şablonları — Klasik / Modern / Minimal
   + yazdırma (PDF) kuralları
   ============================================ */

.cv {
  background: #fff;
  width: 100%;
  min-height: 1123px; /* A4 oranına yakın referans yükseklik */
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 20px 50px rgba(0,0,0,.12);
  padding: 56px 60px;
  color: #1D1D1F;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
}

.cv h1, .cv h2 { margin: 0; }
.cv p { margin: 0; }

.cv-photo-wrap { display: none; }
.cv-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

.cv-empty { color: #B5B5BA; font-style: italic; }

.cv-section { margin-top: 26px; }
.cv-section h2 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.cv-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 12.5px;
  color: #51515A;
}
.cv-contact span:empty { display: none; }

.cv-entry { margin-bottom: 16px; }
.cv-entry:last-child { margin-bottom: 0; }
.cv-entry-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cv-entry-title { font-weight: 700; font-size: 13.5px; }
.cv-entry-sub { font-size: 12.5px; color: #6E6E73; margin-top: 1px; }
.cv-entry-date { font-size: 11.5px; color: #98989D; white-space: nowrap; font-weight: 600; }
.cv-entry-desc { font-size: 12.5px; color: #3A3A3D; margin-top: 6px; white-space: pre-line; }

.cv-skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ===================== KLASİK ===================== */
.tpl-klasik {
  font-family: 'Inter', sans-serif;
}
.tpl-klasik .cv-header {
  text-align: center;
  border-bottom: 2px solid #1D1D1F;
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.tpl-klasik h1 {
  font-family: 'Source Serif 4', serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.tpl-klasik .cv-heading p {
  font-size: 14px;
  color: #51515A;
  margin-top: 4px;
  font-weight: 500;
}
.tpl-klasik .cv-contact { justify-content: center; }
.tpl-klasik .cv-section h2 {
  border-bottom: 1px solid #E4E4E7;
  padding-bottom: 6px;
}
.tpl-klasik .cv-skill-tags span {
  border: 1px solid #D7D7DC;
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
}

/* ===================== MODERN ===================== */
.tpl-modern {
  padding: 0;
  display: grid;
  grid-template-columns: 240px 1fr;
}
.tpl-modern .cv-header {
  grid-column: 1 / 2;
  grid-row: 1;
  background: #1D1D1F;
  color: #fff;
  padding: 40px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tpl-modern .cv-photo-wrap {
  display: block;
  width: 96px; height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #3A3A3D;
  margin-bottom: 16px;
  border: 2px solid rgba(255,255,255,.2);
}
.tpl-modern h1 { font-size: 19px; font-weight: 700; }
.tpl-modern .cv-heading p { font-size: 12.5px; color: #C7C7CC; margin-top: 4px; }

.tpl-modern .cv-contact {
  grid-column: 1 / 2;
  grid-row: 2;
  background: #28282B;
  color: #D5D5D8;
  flex-direction: column;
  gap: 9px;
  padding: 24px 28px;
  font-size: 11.5px;
}

.tpl-modern .cv-skills {
  grid-column: 1 / 2;
  grid-row: 3;
  background: #28282B;
  padding: 8px 28px 28px;
  margin-top: 0;
}
.tpl-modern .cv-skills h2,
.tpl-modern .cv-languages h2 { color: #C7C7CC; }
.tpl-modern .cv-skill-tags span {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}

.tpl-modern .cv-languages {
  grid-column: 1 / 2;
  grid-row: 4;
  background: #28282B;
  padding: 8px 28px 36px;
  margin-top: 0;
  min-height: 100%;
}
.tpl-modern .cv-languages h2 { color: #C7C7CC; }
.tpl-modern .cv-languages .cv-entry-title,
.tpl-modern .cv-languages .cv-entry-sub { color: #D5D5D8; }

.tpl-modern .cv-summary {
  grid-column: 2 / 3;
  grid-row: 1;
  padding: 40px 44px 8px;
  margin-top: 0;
  align-self: start;
}
.tpl-modern .cv-experience {
  grid-column: 2 / 3;
  grid-row: 2;
  padding: 8px 44px;
  margin-top: 0;
}
.tpl-modern .cv-education {
  grid-column: 2 / 3;
  grid-row: 3;
  padding: 8px 44px 40px;
  margin-top: 0;
}
.tpl-modern .cv-section h2 {
  color: #1D1D1F;
  letter-spacing: .06em;
}
.tpl-modern .cv-contact h2 { display: none; }

/* ===================== MİNİMAL ===================== */
.tpl-minimal {
  padding: 64px 70px;
  font-family: 'Inter', sans-serif;
}
.tpl-minimal .cv-header { margin-bottom: 8px; }
.tpl-minimal h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.tpl-minimal .cv-heading p {
  font-size: 13px;
  color: #6E6E73;
  margin-top: 2px;
}
.tpl-minimal .cv-header::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: #1D1D1F;
  margin-top: 16px;
}
.tpl-minimal .cv-contact { margin-top: 18px; font-size: 12px; }
.tpl-minimal .cv-section h2 {
  font-weight: 600;
  letter-spacing: .12em;
  color: #98989D;
}
.tpl-minimal .cv-skill-tags span {
  font-size: 12px;
  color: #1D1D1F;
}
.tpl-minimal .cv-skill-tags span:not(:last-child)::after { content: " · "; color: #C7C7CC; }
.tpl-minimal .cv-skill-tags { gap: 0; }

/* ===================== YAZDIRMA / PDF ===================== */
@media print {
  .app-header, .editor-panel { display: none !important; }

  .app-main { display: block; }

  .preview-panel {
    background: #fff !important;
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .preview-wrapper { max-width: none !important; }

  .cv {
    box-shadow: none !important;
    min-height: 0 !important;
    width: 100% !important;
  }

  @page {
    size: A4;
    margin: 0;
  }

  body { background: #fff !important; }
}
