/* ============================================================
   burakdiri.com — Portföy sayfası stilleri
   (styles.css token'larının ve header/footer/lang/mobil-menü
    stillerinin ÜZERİNE biner; o dosya da yüklenir.)
   ============================================================ */

.portfolio {
  padding-top: clamp(110px, 14vh, 150px);
  padding-bottom: clamp(60px, 9vw, 110px);
  /* aydınlık portföy yüzeyleri */
  --pf-bg: oklch(0.195 0.013 256);
  --pf-surface: oklch(0.245 0.015 256);
  --pf-visual: oklch(0.295 0.018 256);
  --pf-border: oklch(1 0 0 / 0.13);
  background:
    radial-gradient(120% 55% at 50% 0%, oklch(0.27 0.02 256), transparent 60%),
    var(--pf-bg);
  min-height: 100vh;
}

/* ---- Sayfa başlığı ---- */
.pf-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 56px); }
.pf-head .eyebrow { display: inline-block; margin-bottom: 16px; }
.pf-head h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.pf-head h1 .accent { color: var(--accent); }
.pf-head p {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 60ch;
}

/* ---- Filtre düzeni: masaüstü yan yana, mobil alt alta ---- */
.pf-controls {
  display: flex;
  align-items: flex-start;
  gap: clamp(18px, 2.4vw, 32px);
  margin-bottom: clamp(34px, 5vw, 56px);
  padding-bottom: clamp(22px, 3vw, 30px);
  border-bottom: 1px solid var(--line-2);
}
.pf-controls .pf-filters { flex: 0 1 auto; min-width: 0; max-width: 430px; }
.pf-controls .pf-years { flex: 1 1 auto; align-self: flex-start; width: auto; min-width: 300px; }

@media (max-width: 820px) {
  .pf-controls { flex-direction: column; gap: 16px; }
  .pf-controls .pf-years { width: 100%; align-self: auto; }
}

/* ---- Filtreler ---- */
.pf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pf-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
}
.pf-filter:hover { color: var(--fg); border-color: var(--muted-2); }
.pf-filter .ic { width: 15px; height: 15px; flex: 0 0 auto; }
.pf-filter .ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-filter .cnt {
  font-family: var(--f-mono);
  font-size: 11px;
  opacity: 0.6;
}
.pf-filter.active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}
.pf-filter.active .cnt { opacity: 0.7; }
.pf-filter--all.active {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

/* ---- Yıl kutusu: dikey kompakt (head + histogram) ---- */
.pf-years {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px 9px;
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  width: clamp(280px, 30vw, 340px);
}
.pf-years__head {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.pf-years__label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.pf-years__range {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  color: oklch(0.86 0.1 238);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.pf-years__range span { padding: 0 1px; }
.pf-years__reset {
  flex: 0 0 auto;
  margin-left: auto;
  appearance: none;
  background: transparent;
  border: 1px solid var(--pf-border);
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity .2s, color .2s, border-color .2s, background .2s;
}
.pf-years__reset.is-on { opacity: 1; pointer-events: auto; }
.pf-years__reset.is-on:hover { color: var(--fg); border-color: var(--accent); background: oklch(0.72 0.132 238 / 0.1); }

/* histogram + gömülü slider (çubuklar = görsel iz, tutamaklar tabanda) */
.pf-years__plot {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding-bottom: 7px;
}
.pf-years__hist {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 30px;
}
.pf-yr-bar {
  flex: 1;
  min-width: 0;
  border-radius: 2px 2px 0 0;
  background: oklch(1 0 0 / 0.09);
  cursor: pointer;
  transition: background .2s, opacity .2s;
}
.pf-yr-bar:hover { background: oklch(0.82 0.1 238 / 0.6); }
.pf-yr-bar.in-range { background: oklch(0.72 0.13 238 / 0.85); }

/* taban çizgisi + dolgu, histogramın alt kenarında */
.pf-years__base {
  position: absolute;
  left: 0; right: 0; bottom: 7px;
  height: 3px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.14);
}
.pf-years__fill {
  position: absolute;
  bottom: 7px; height: 3px;
  border-radius: 999px;
  background: oklch(0.72 0.13 238);
}
.pf-years__plot input[type="range"] {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  margin: 0;
  height: 18px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.pf-years__plot input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--fg);
  border: 3px solid oklch(0.72 0.13 238);
  box-shadow: 0 2px 7px oklch(0.12 0.012 256 / 0.55);
  cursor: grab;
  pointer-events: auto;
}
.pf-years__plot input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; }
.pf-years__plot input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--fg);
  border: 3px solid oklch(0.72 0.13 238);
  cursor: grab;
  pointer-events: auto;
}

/* yıl kutusu: dar ekranda tam genişlik */
@media (max-width: 820px) {
  .pf-years { width: 100%; }
}

/* ---- Timeline (sağlı-sollu / alternating) ---- */
.pf-timeline { position: relative; }
.pf-line {
  position: absolute;
  left: 32px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(oklch(0.72 0.13 238), var(--pf-border) 72%, transparent);
  opacity: 0.6;
}

.pf-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(16px, 2vw, 26px);
  padding-bottom: clamp(26px, 3.4vw, 40px);
  transition: opacity .45s ease, transform .45s ease;
}
.pf-item.is-hidden { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .pf-item { opacity: 0; transform: translateY(20px); }
  .pf-item.in { opacity: 1; transform: none; }
}

/* düğüm — tarih işaretçisi */
.pf-node {
  position: relative;
  z-index: 2;
  width: 64px; height: 64px;
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--pf-surface);
  border: 1px solid oklch(0.72 0.11 var(--node-accent, 238) / 0.5);
  color: oklch(0.84 0.12 var(--node-accent, 238));
  box-shadow: 0 0 0 5px var(--pf-bg), 0 6px 20px oklch(0.72 0.11 var(--node-accent, 238) / 0.14);
}
.pf-node__year {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: oklch(0.86 0.1 var(--node-accent, 238));
  line-height: 1.05;
}
.pf-node__month {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.74 0.07 var(--node-accent, 238));
  margin-top: 2px;
}
.pf-node svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* kart */
.pf-card {
  overflow: hidden;
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: 18px;
  cursor: pointer;
  transition: border-color .22s, transform .22s, box-shadow .22s;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  appearance: none;
  display: flex;
  flex-direction: column;
}
.pf-card:hover {
  border-color: oklch(0.72 0.11 var(--node-accent, 238) / 0.7);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px oklch(0.72 0.11 var(--node-accent, 238) / 0.5);
}
.pf-card.is-featured {
  border-color: oklch(0.72 0.11 var(--node-accent, 238) / 0.45);
}

/* büyük görsel bandı */
.pf-card__visual {
  position: relative;
  height: clamp(120px, 15vw, 156px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(130% 130% at 50% 0%, oklch(0.72 0.13 var(--node-accent, 238) / 0.26), transparent 68%),
    var(--pf-visual);
  border-bottom: 1px solid var(--pf-border);
  overflow: hidden;
}
.pf-card__logo {
  height: clamp(30px, 3.4vw, 42px);
  max-width: 64%;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.pf-card__photo {
  position: relative;
  width: clamp(88px, 9.5vw, 108px);
  height: clamp(88px, 9.5vw, 108px);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  border: 2px solid oklch(1 0 0 / 0.16);
  box-shadow: 0 8px 22px oklch(0.10 0.012 256 / 0.55);
  filter: grayscale(1) contrast(1.03);
  transition: filter .35s ease, transform .4s ease;
}
.pf-card:hover .pf-card__photo,
.pf-card:focus-visible .pf-card__photo {
  filter: grayscale(0) contrast(1);
  transform: scale(1.05);
}
.pf-card__bigicon { color: oklch(0.86 0.12 var(--node-accent, 238)); display: grid; }
.pf-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: saturate(1.02);
  transition: transform .5s ease;
}
.pf-card:hover .pf-card__cover { transform: scale(1.04); }
.pf-card__bigicon svg {
  width: clamp(40px, 4.4vw, 52px); height: clamp(40px, 4.4vw, 52px);
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.92;
}
/* meta satırı: tür rozeti (ikonlu) + tarih, aynı hizada */
.pf-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.pf-date {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
}

/* içerik */
.pf-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(18px, 2vw, 26px);
}
.pf-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: oklch(0.82 0.1 var(--node-accent, 238));
  padding: 4px 11px 4px 9px;
  border: 1px solid oklch(0.72 0.1 var(--node-accent, 238) / 0.4);
  border-radius: 999px;
}
.pf-type__ic { display: inline-grid; place-items: center; width: 13px; height: 13px; flex: 0 0 auto; }
.pf-type__ic svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-card h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--fg);
}
.pf-card .pf-org {
  font-size: 14px;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 11px;
}
.pf-card .pf-summary {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.pf-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--pf-border);
}
.pf-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.pf-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  background: oklch(1 0 0 / 0.05);
  padding: 4px 9px;
  border-radius: 6px;
}
.pf-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: oklch(0.82 0.1 var(--node-accent, 238));
  white-space: nowrap;
}
.pf-open svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.pf-card:hover .pf-open svg { transform: translateX(3px); }

/* DESKTOP: ortadan geçen çizgi + sağlı-sollu */
@media (min-width: 920px) {
  .pf-line { left: 50%; transform: translateX(-1px); }
  .pf-item {
    grid-template-columns: 1fr 64px 1fr;
    align-items: start;
    gap: 0;
  }
  .pf-item .pf-node { grid-column: 2; grid-row: 1; justify-self: center; }
  .pf-item--left  .pf-card { grid-column: 1; grid-row: 1; margin-right: clamp(22px, 2.6vw, 40px); }
  .pf-item--right .pf-card { grid-column: 3; grid-row: 1; margin-left: clamp(22px, 2.6vw, 40px); }
}
@media (min-width: 920px) and (prefers-reduced-motion: no-preference) {
  .pf-item--left:not(.in)  { transform: translateX(-28px); }
  .pf-item--right:not(.in) { transform: translateX(28px); }
}

.pf-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--muted-2);
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ---- Modal ---- */
.pf-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.pf-modal.open { opacity: 1; pointer-events: auto; }
.pf-modal__backdrop {
  position: absolute; inset: 0;
  background: oklch(0.12 0.012 256 / 0.78);
  backdrop-filter: blur(8px);
}
.pf-modal__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 3.4vw, 44px);
  transform: translateY(14px) scale(0.98);
  transition: transform .28s ease;
  scrollbar-width: thin;
}
.pf-modal.open .pf-modal__panel { transform: none; }
.pf-modal__close {
  position: sticky;
  top: 0;
  float: right;
  margin: -6px -6px 0 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--fg);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.pf-modal__close:hover { background: var(--bg-3); border-color: var(--accent); }
.pf-modal__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.pf-modal__head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.pf-modal__icon {
  width: 48px; height: 48px;
  flex: 0 0 auto;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: oklch(0.82 0.11 var(--node-accent, 238));
}
.pf-modal__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pf-modal__meta { display: flex; flex-direction: column; gap: 3px; }
.pf-modal__meta .d { font-family: var(--f-mono); font-size: 12px; color: oklch(0.82 0.1 var(--node-accent, 238)); letter-spacing: 0.04em; }
.pf-modal__meta .t { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }

.pf-modal h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 18px 0 6px;
}
.pf-modal__org { color: var(--accent-2); font-weight: 500; font-size: 15px; margin-bottom: 20px; }
.pf-modal__img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin: 8px 0 22px;
}
.pf-modal__body { color: var(--muted); font-size: 16px; line-height: 1.65; }
.pf-modal__body p { margin-bottom: 14px; }
.pf-modal__body p:last-child { margin-bottom: 0; }
.pf-orig-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.pf-orig-toggle:hover { color: var(--fg); border-color: var(--accent); background: oklch(0.72 0.132 238 / 0.10); }
.pf-orig-toggle svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-body-text--o { color: var(--muted); }
.pf-modal__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pf-modal__cta {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 12px 22px;
  border-radius: 12px;
  transition: gap .2s, filter .2s;
}
.pf-modal__cta:hover { gap: 14px; filter: brightness(1.06); }
.pf-modal__cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Responsive ---- */
@media (max-width: 620px) {
  .pf-item { grid-template-columns: 44px 1fr; gap: 14px; }
  .pf-line { left: 21px; }
  .pf-node { width: 44px; height: 44px; border-radius: 13px; }
  .pf-node svg { width: 20px; height: 20px; }
  .pf-card__logo { display: none; }
}
