/* ==========================================================================
   Yerleşim: Taslağa Sadık İki Sütunlu Split-Screen ve Bento Grid Mimarisi
   ========================================================================== */
.page-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 320px 1px minmax(0, 1fr);
  gap: 0 40px;
  align-items: start;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 28px;
  height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  overflow-y: auto;
  scrollbar-width: none;
  /* gölgeler overflow yüzünden kesilmesin diye pay bırakılır, negatif marjla yerleşim korunur */
  padding: 24px;
  margin: -24px;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Taslaktaki Ortadaki Dikey Ayırıcı Çizgi */
.vertical-divider {
  width: 1px;
  height: calc(100vh - 56px);
  position: sticky;
  top: 28px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--border-strong) 14%,
    var(--border-strong) 86%,
    transparent 100%
  );
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding-top: 8px;
  padding-bottom: 48px;
}

.cv-section {
  scroll-margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.projects-header-row {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-6 { grid-column: span 6; }
.bento-span-12 { grid-column: span 12; }

.projects-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card.is-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.mobile-header {
  display: none;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 40;
}

@media (max-width: 1080px) {
  .page-shell {
    grid-template-columns: 280px 1px minmax(0, 1fr);
    gap: 0 28px;
    padding: 24px;
  }

  .bento-span-7,
  .bento-span-5,
  .bento-span-6 {
    grid-column: span 12;
  }

  .project-card.is-featured {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
  }

  .page-shell {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 0;
  }

  .vertical-divider {
    display: none;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(330px, 86vw);
    height: 100vh;
    padding: 24px 20px;
    margin: 0;
    background: var(--bg-elevated);
    border-right: 1px solid var(--border-strong);
    z-index: 50;
    transform: translateX(-104%);
    transition: transform var(--transition-smooth);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .cv-section {
    scroll-margin-top: 76px;
  }

  .projects-bento-grid {
    grid-template-columns: 1fr;
  }

  .project-card.is-featured {
    grid-column: span 1;
  }
}

.print-cv { display: none; }

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

@media print {
  html, body { background: #fff !important; color: #0f172a !important; margin: 0; padding: 0; }
  body > *:not(.print-cv) { display: none !important; }
  .print-cv, .print-cv * { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-sizing: border-box; }
  .print-cv {
    display: grid; grid-template-columns: 70mm 1fr;
    width: 210mm; height: 296mm; overflow: hidden;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif; font-size: 8.4pt; line-height: 1.4; color: #1e293b;
  }
  .print-cv p { margin: 0; }

  /* Sol sütun */
  .cv-side { background: #0f172a; color: #e2e8f0; padding: 14mm 8mm 10mm; display: flex; flex-direction: column; gap: 5.5mm; position: relative; }
  .cv-side::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3mm; background: #38bdf8; }
  .cv-photo { width: 42mm; height: 42mm; margin: 2mm auto 1mm; border-radius: 50%; border: 1.2mm solid #38bdf8; object-fit: cover; object-position: 62% 18%; background: #1e293b; }
  .cv-side h3 { margin: 0 0 2mm; font-size: 8pt; letter-spacing: .18em; text-transform: uppercase; color: #38bdf8; padding-bottom: 1.2mm; border-bottom: .3mm solid rgba(148,163,184,.35); }
  .cv-contact-row { display: flex; flex-direction: column; margin-bottom: 1.8mm; word-break: break-word; }
  .cv-contact-row small { font-size: 6.4pt; text-transform: uppercase; letter-spacing: .12em; color: #94a3b8; }
  .cv-list { list-style: none; margin: 0; padding: 0; }
  .cv-list li { position: relative; padding-left: 4mm; margin-bottom: 1.3mm; }
  .cv-list li::before { content: ""; position: absolute; left: 0; top: 1.6mm; width: 1.6mm; height: 1.6mm; border-radius: 50%; background: #38bdf8; }
  .cv-chips { display: flex; flex-wrap: wrap; gap: 1.4mm; }
  .cv-chip { padding: .7mm 2.2mm; border-radius: 99px; background: rgba(56,189,248,.14); border: .25mm solid rgba(56,189,248,.45); font-size: 6.6pt; color: #bae6fd; }
  .cv-cert { display: flex; gap: 2.4mm; align-items: flex-start; margin-bottom: 2.4mm; }
  .cv-cert strong { display: block; font-size: 7.4pt; color: #fff; line-height: 1.3; }
  .cv-cert span { font-size: 6.6pt; color: #94a3b8; }

  /* Sağ sütun */
  .cv-main { padding: 14mm 11mm 10mm 11mm; display: flex; flex-direction: column; gap: 4.5mm; }
  .cv-head h1 { margin: 0; font-size: 27pt; line-height: 1.05; letter-spacing: -.01em; color: #0f172a; }
  .cv-head .cv-role { margin-top: 1.5mm; font-size: 10pt; font-weight: 600; color: #0284c7; letter-spacing: .04em; }
  .cv-head .cv-bar { margin-top: 3mm; height: .9mm; width: 22mm; background: #38bdf8; border-radius: 1mm; }
  .cv-summary { color: #334155; }
  .cv-main h2 { margin: 0 0 2.4mm; font-size: 9.4pt; letter-spacing: .16em; text-transform: uppercase; color: #0f172a; display: flex; align-items: center; gap: 2.5mm; }
  .cv-main h2::after { content: ""; flex: 1; height: .3mm; background: #cbd5e1; }
  .cv-entry { display: grid; grid-template-columns: 8.5mm 1fr; gap: 3mm; margin-bottom: 3mm; break-inside: avoid; }
  .cv-logo { width: 8.5mm; height: 8.5mm; border-radius: 2mm; border: .25mm solid #e2e8f0; background: #fff; object-fit: contain; padding: .8mm; }
  .cv-logo-ph { display: grid; place-items: center; font-size: 7pt; font-weight: 700; color: #0284c7; background: #f1f5f9; }
  .cv-entry-top { display: flex; justify-content: space-between; gap: 3mm; align-items: baseline; }
  .cv-entry-top strong { font-size: 9pt; color: #0f172a; }
  .cv-date { font-size: 6.8pt; color: #0284c7; font-weight: 600; white-space: nowrap; }
  .cv-sub { font-size: 7.6pt; color: #475569; font-weight: 500; }
  .cv-desc { margin-top: .8mm; font-size: 7.4pt; color: #64748b; }
  .cv-foot { margin-top: auto; font-size: 6.8pt; color: #94a3b8; display: flex; justify-content: space-between; }
}
