/* =========================
   Değişkenler (Türkçe)
   ========================= */
:root {
  --renk-arkaplan: #eef2f5;
  --renk-sayfa: #ffffff;

  /* Daha kurumsal / havalı sol panel */
  --renk-sol-panel: #0b1220;
  --renk-sol-panel-2: #1b2438;

  --renk-sol-yazi: #d1d5db;
  --renk-sol-baslik: #ffffff;

  --renk-baslik: #111827;
  --renk-metin: #374151;
  --renk-ikincil: #6b7280;
  --renk-cizgi: #e5e7eb;

  /* Accent biraz daha premium */
  --renk-vurgu: #2563eb;

  --bosluk-sayfa: 0.8cm;
  --kenar-oval: 14px;

  --yazi-isim: "Poppins", system-ui, -apple-system, sans-serif;
  --yazi-govde: "Inter", system-ui, -apple-system, sans-serif;

  --boyut-h1: 0.95cm;
  --boyut-h2: 0.5cm;
  --boyut-govde: 0.34cm;
  --boyut-kucuk: 0.31cm;

  --golge: 0 14px 38px rgba(2, 6, 23, 0.14);
}

/* =========================
   Genel ve Reset
   ========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--renk-arkaplan);
  color: var(--renk-metin);
  font-family: var(--yazi-govde);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Yazı stilleri */
h1 {
  color: var(--renk-baslik);
  font-family: var(--yazi-isim);
  font-weight: 700;
  font-size: var(--boyut-h1);
  letter-spacing: -0.5px;
  margin-bottom: 0.1cm;
}

h2 {
  color: var(--renk-baslik);
  font-family: var(--yazi-govde);
  font-weight: 650;
  font-size: var(--boyut-h2);
  margin-bottom: 0.25cm;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

p {
  margin-bottom: 0.15cm;
}

/* ✅ Linklerin siyaha dönme/visited sorunu fix */
a,
a:visited {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--renk-vurgu);
}

a:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.55);
  outline-offset: 2px;
  border-radius: 8px;
}

.vurgulu {
  font-weight: 600;
  color: #111;
}

.sol-panel .vurgulu {
  color: #fff;
}

.beyaz {
  color: #fff;
}

.kucuk-metin {
  font-size: var(--boyut-kucuk);
}

/* =========================
   Baskı (A4) Düzeni
   ========================= */
#cv-root {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sayfa {
  background: var(--renk-sayfa);
  display: block;
  margin: 1cm auto;
  box-shadow: var(--golge);
  overflow: hidden;
  position: relative;
  border-radius: var(--kenar-oval);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

/* ✅ mm kullanmak bazı tarayıcılarda daha stabil */
.sayfa[data-boyut="A4"] {
  width: 210mm;
  height: 297mm;
}


  @media print {
    /* 1. Arka plan renklerinin ve grafiklerinin yazdırılmasını zorunlu kıl */
    * {
      -webkit-print-color-adjust: exact !important;
      print-color-adjust: exact !important;
      color-adjust: exact !important;
    }

    /* 2. Sadece PDF Kaydet / Aksiyon butonlarını gizle */
    .action-buttons {
      display: none !important;
    }

    /* İsteğe bağlı: İçeriklerin sayfa sonlarında yarım kesilmesini engeller */
    .blok {
      page-break-inside: avoid !important;
      break-inside: avoid !important;
    }
  }

/* =========================
   Izgara (Grid) ve Paneller
   ========================= */
.kap {
  display: flex;
  width: 100%;
  height: 100%;
}

.sol-panel {
  width: 29%;
  color: var(--renk-sol-yazi);
  padding: 0.65cm;
  display: flex;
  flex-direction: column;

  /* Kurumsal gradient + hafif doku */
  background: linear-gradient(180deg, var(--renk-sol-panel-2) 0%, var(--renk-sol-panel) 100%);
  position: relative;
  overflow: hidden;
}

.sol-panel::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(37, 99, 235, 0) 60%);
  transform: rotate(20deg);
  pointer-events: none;
}

.sol-panel::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.95) 0%, rgba(59, 130, 246, 0.25) 100%);
  pointer-events: none;
}

.sag-panel {
  width: 71%;
  padding: var(--bosluk-sayfa) var(--bosluk-sayfa) var(--bosluk-sayfa) 1cm;
}

/* Profil fotoğrafı */
.profil-foto-container {
  display: flex;
  justify-content: center;
  margin-bottom: 0.55cm;
}

.profil-foto {
  width: 4.3cm;
  height: 4.3cm;
  border-radius: 50%;
  border: 0.12cm solid rgba(255, 255, 255, 0.10);
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.profil-foto:hover {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.22);
}

.zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.86);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  backdrop-filter: blur(6px);
}

.zoom-overlay img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 50%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Sol Panel Blokları */
.blok {
  margin-bottom: 0.5cm;
}

.sol-panel .alt-cizgi {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  padding-bottom: 0.4cm;
}

.sol-panel h2 {
  color: var(--renk-sol-baslik);
  font-size: 0.43cm;
  letter-spacing: 1px;
  margin-bottom: 0.28cm;
  position: relative;
}

.sol-panel h2::after {
  content: "";
  display: block;
  width: 1.55cm;
  height: 2px;
  margin-top: 0.18cm;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
}

.bi-ikon {
  width: 0.5cm;
  text-align: center;
  margin-right: 0.2cm;
  color: var(--renk-sol-baslik);
  opacity: 0.88;
}

.iletisim-liste p {
  display: flex;
  align-items: center;
  margin-bottom: 0.2cm;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ✅ SOL PANEL link rengi garanti (visited dahil) */
.sol-panel a,
.sol-panel a:visited {
  color: rgba(255, 255, 255, 0.92);
}

.sol-panel a:hover {
  color: rgba(147, 197, 253, 1); /* hafif premium hover */
}

/* =========================
   SOL PANEL: YETENEKLER
   ========================= */
.beceri-grup {
  display: flex;
  flex-direction: column;
  gap: 0.16cm;
}

.beceri {
  display: flex;
  flex-direction: column;
  gap: 0.10cm;
  padding: 0.14cm 0.16cm;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
}

.beceri-ust {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.18cm;
  flex-wrap: wrap;
}

.beceri-ust .isim {
  color: rgba(255, 255, 255, 0.93);
  font-weight: 650;
  font-size: 0.30cm;
  line-height: 1.2;
  flex: 1 1 auto;
  min-width: 0;
}

.beceri-ust .yil {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.26cm;
  white-space: nowrap;
  flex: 0 0 auto;
}

.beceri-bar {
  height: 0.10cm;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.beceri-bar > span {
  display: block;
  height: 100%;
  width: var(--oran, 70%);
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.85));
}

/* =========================
   SOL PANEL: SERTİFİKA / KURSLAR
   ========================= */
.sol-kart-listesi {
  display: flex;
  flex-direction: column;
  gap: 0.22cm;
}

.sol-kart {
  padding: 0.22cm 0.22cm;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
}

.sol-kart .baslik {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 750;
  font-size: 0.31cm;
  margin-bottom: 0.06cm;
  line-height: 1.2;
}

.sol-kart .alt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.29cm;
  margin-bottom: 0.06cm;
}

.sol-kart .etiket {
  display: inline-block;
  margin-top: 0.06cm;
  font-size: 0.26cm;
  color: rgba(255, 255, 255, 0.70);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.06cm 0.14cm;
  border-radius: 99px;
}

/* =========================
   SOL PANEL: ÖDÜLLER
   ========================= */
.odul-listesi {
  display: flex;
  flex-direction: column;
  gap: 0.22cm;
}

.odul-kart {
  position: relative;
  padding: 0.22cm 0.22cm;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.odul-kart::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(37, 99, 235, 0.95);
}

.odul-ust {
  display: flex;
  gap: 0.18cm;
  align-items: flex-start;
  margin-bottom: 0.12cm;
  padding-left: 0.10cm;
}

.odul-ikon {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.45cm;
  margin-top: 0.02cm;
  flex: 0 0 auto;
}

.odul-baslik-alan {
  min-width: 0;
}

.odul-baslik {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 800;
  font-size: 0.32cm;
  line-height: 1.2;
}

.odul-alt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.27cm;
  margin-top: 0.03cm;
}

.odul-aciklama {
  color: rgba(255, 255, 255, 0.80);
  font-size: 0.29cm;
  line-height: 1.35;
  margin-top: 0.08cm;
  padding-left: 0.10cm;
}

.odul-link {
  display: inline-flex;
  align-items: center;
  gap: 0.14cm;
  margin-top: 0.14cm;
  padding: 0.08cm 0.16cm;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.26cm;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.odul-link i {
  opacity: 0.92;
}

/* Sağ Panel Üst */
.ust {
  margin-bottom: 0.6cm;
  border-bottom: 2px solid var(--renk-cizgi);
  padding-bottom: 0.3cm;
}

.unvan {
  color: var(--renk-vurgu);
  font-size: 0.4cm;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Zaman Çizelgesi */
.zaman-cizelgesi {
  list-style: none;
}

.girdi {
  position: relative;
  padding-left: 0.5cm;
  padding-bottom: 0.5cm;
}

.girdi:last-child {
  padding-bottom: 0;
}

.girdi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15cm;
  bottom: -0.15cm;
  width: 2px;
  background: var(--renk-cizgi);
}

.girdi:last-child::before {
  display: none;
}

.girdi::after {
  content: "";
  position: absolute;
  left: -0.12cm;
  top: 0.15cm;
  width: 0.25cm;
  height: 0.25cm;
  border-radius: 50%;
  background: var(--renk-vurgu);
  border: 2px solid var(--renk-sayfa);
}

.gorev-satiri {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.05cm;
}

.gorev-satiri .vurgulu {
  font-size: 0.4cm;
  color: var(--renk-baslik);
}

.tarih {
  color: var(--renk-vurgu);
  font-weight: 650;
  font-size: var(--boyut-kucuk);
  background: rgba(37, 99, 235, 0.10);
  padding: 0.1cm 0.2cm;
  border-radius: 6px;
}

.kurum {
  font-size: var(--boyut-kucuk);
  color: var(--renk-ikincil);
  font-weight: 550;
  margin-bottom: 0.15cm;
}

/* İç listeler (İş Deneyimi & Projeler) */
.icerik-liste {
  padding-left: 0.4cm;
  margin-top: 0.1cm;
  margin-bottom: 0.15cm;
}

.icerik-liste li {
  margin-bottom: 0.1cm;
  list-style-type: square;
  color: var(--renk-metin);
}

/* Sağ paneldeki proje linkleri daha premium görünsün */
.sag-panel a.vurgulu,
.sag-panel a.vurgulu:visited {
  color: var(--renk-vurgu);
}

/* Teknoloji etiket */
.teknoloji-etiket {
  display: inline-block;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 0.05cm 0.15cm;
  border-radius: 6px;
  font-size: 0.28cm;
  margin-right: 0.1cm;
  margin-top: 0.1cm;
  color: #4b5563;
}

/* Sabit Butonlar */
.action-buttons {
  position: fixed;
  bottom: 26px;
  right: 26px;
  display: flex;
  gap: 12px;
  z-index: 1000;
}

/* Daha kurumsal buton */
.action-buttons button {
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: white;
  padding: 12px 18px;
  font-size: 15px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.22);
  transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease;
  font-family: var(--yazi-isim);
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;

  background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(2, 6, 23, 0.92));
  backdrop-filter: blur(6px);
}

.action-buttons button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.85));
}

/* =========================
   SOL PANEL: GÜNCEL CV LINK KARTI
   ========================= */
.cv-link-kart {
  position: relative;
  padding: 0.22cm 0.22cm;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.cv-link-kart::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.35));
}

.cv-link-ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.18cm;
  padding-left: 0.10cm;
  margin-bottom: 0.10cm;
}

.cv-link-baslik {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 800;
  font-size: 0.32cm;
  line-height: 1.2;
}

.cv-link-badge {
  font-size: 0.24cm;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 0.06cm 0.14cm;
  border-radius: 999px;
  white-space: nowrap;
}

.cv-link-aciklama {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.28cm;
  line-height: 1.35;
  padding-left: 0.10cm;
}

.cv-link-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.14cm;
  margin-top: 0.14cm;
  padding: 0.10cm 0.16cm;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.27cm;
  overflow-wrap: anywhere;
  word-break: break-word;
}



.cv-link-alt{
  display: flex;
  flex-direction: column;     /* ✅ Alt alta */
  gap: 0.16cm;
  padding-left: 0.10cm;
  margin-top: 0.14cm;
}

.cv-link-anchor{
  width: 100%;                /* ✅ Tam genişlik */
  justify-content: flex-start;
}


.cv-qr{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;        /* ✅ Ortala */
}

.cv-qr img {
  width: 158px;
  height: 158px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.20);
}

.cv-qr span {
  display: block;
  margin-top: 0.08cm;
  font-size: 0.23cm;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* A4 daralırsa (çok nadir) alt alta düşsün */
@media (max-width: 520px) {
  .cv-link-alt {
    flex-direction: column;
    align-items: flex-start;
  }
  .cv-qr {
    width: auto;
  }
}

/* =========================
   YAZDIRMA (A4) - genel düzen
   ========================= */
@page {
  size: A4;
  margin: 0;
}

@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  #cv-root {
    margin: 0 !important;
    padding: 0 !important;
  }

  .sayfa {
    width: 210mm !important;
    height: 297mm !important;

    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;

    page-break-after: always !important;
    break-after: page !important;

    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .sayfa:last-of-type,
  .sayfa:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }

  .action-buttons,
  .zoom-overlay {
    display: none !important;
  }

  /* ✅ Linkler print'te siyaha zorlanmasın */
  a,
  a:visited {
    color: inherit !important;
    text-decoration: none !important;
  }

  /* Sol panel linkleri görünür kalsın */
  .sol-panel a,
  .sol-panel a:visited {
    color: #fff !important;
  }
}