/* =========================================
   PORTFOLYO (/portfolyo/)
   Seçili işler (Instagram dikey + YouTube yatay) ve SerbestOnline serisi.
   library.css üzerine kurulur (sayfa çerçevesi, üst bar, başlık ölçeği).
   ========================================= */
:root {
  --pf-hairline: rgba(255, 255, 255, 0.12);
  --pf-hairline-strong: rgba(255, 255, 255, 0.28);
  --pf-muted: rgba(255, 255, 255, 0.5);
  --pf-accent: #F0D296;
  --pf-ig-w: 340px;            /* Instagram embed en az 326 px ister */
  --pf-ig-h: 640px;
  --pf-gap: clamp(20px, 3vw, 36px);
  --pf-section-gap: clamp(72px, 9vw, 120px);
}

.pf-page { max-width: calc(1180px + var(--menu-gutter)); }

.pf-hero { padding-top: 48px; margin-bottom: var(--pf-section-gap); }
.pf-kicker, .pf-num, .pf-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--pf-muted);
}
.pf-kicker { color: var(--pf-accent); margin-bottom: 20px; }
.pf-title { font-size: clamp(40px, 6vw, 76px); line-height: 1; }
.pf-intro { max-width: 60ch; margin-top: 26px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, 0.72); }

.pf-section { margin-bottom: var(--pf-section-gap); }
.pf-h2 {
  display: flex; align-items: baseline; gap: 18px;
  padding-bottom: 18px; margin-bottom: 32px;
  border-bottom: 1px solid var(--pf-hairline-strong);
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em;
}
.pf-note { margin: -14px 0 32px; color: var(--pf-muted); font-size: 15px; line-height: 1.6; }
.pf-note a { color: #fff; text-underline-offset: 3px; }

/* ---------- kartlar ---------- */
.pf-grid { display: grid; gap: var(--pf-gap); }
.pf-grid-v { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-bottom: calc(var(--pf-gap) * 2); }
.pf-grid-h { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.pf-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pf-meta { display: flex; flex-direction: column; gap: 8px; }
.pf-meta .pf-cat { color: var(--pf-accent); }
.pf-card-title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.pf-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  color: var(--pf-muted); font: 500 11px/1 'JetBrains Mono', monospace; letter-spacing: 0.06em;
  text-decoration: none; transition: color 0.2s ease;
}
.pf-link:hover, .pf-link:focus-visible { color: #fff; outline: none; }

.pf-frame { position: relative; overflow: hidden; border-radius: 12px; background: #0b0b0b; box-shadow: 0 0 0 1px var(--pf-hairline); }
.pf-yt { aspect-ratio: 16 / 9; }
.pf-igembed { height: var(--pf-ig-h); }
.pf-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pf-igembed .pf-embed { background: #fff; }

/* ---------- kendi oynatıcımız ---------- */
.pf-player {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 12px; background: #0b0b0b;
  box-shadow: 0 0 0 1px var(--pf-hairline);
  transition: box-shadow 0.3s ease, transform 0.5s var(--ease-out-expo);
}
.pf-card:hover .pf-player { box-shadow: 0 0 0 1px var(--pf-hairline-strong), 0 30px 60px -30px #000; transform: translateY(-2px); }
.pf-video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.pf-player:fullscreen .pf-video { object-fit: contain; background: #000; }
.pf-big {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 50%;
  background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(10px); color: #fff; font-size: 20px; padding-left: 4px;
  cursor: pointer; transition: transform 0.3s var(--ease-out-expo), background-color 0.2s ease, opacity 0.3s ease;
}
.pf-big:hover, .pf-big:focus-visible { transform: scale(1.08); background: var(--pf-accent); color: #000; border-color: var(--pf-accent); outline: none; }
.pf-player.is-playing .pf-big { opacity: 0; pointer-events: none; }
.pf-bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
  padding: 28px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.pf-player:not(.is-idle):hover .pf-bar, .pf-player:not(.is-idle):focus-within .pf-bar,
.pf-player:not(.is-idle):not(.is-playing) .pf-bar { opacity: 1; transform: none; }
.pf-btn { background: none; border: 0; color: #fff; font-size: 13px; width: 28px; height: 28px; cursor: pointer; flex: none; }
.pf-btn:focus-visible { outline: 1px solid var(--pf-accent); border-radius: 3px; }
.pf-seek { flex: 1; min-width: 0; accent-color: var(--pf-accent); height: 3px; cursor: pointer; }
.pf-time { font: 500 10px/1 'JetBrains Mono', monospace; color: rgba(255, 255, 255, 0.8); white-space: nowrap; }

/* ---------- mobil: dikey videolar yana kayan şerit (reels hissi) ---------- */
@media (max-width: 760px) {
  .pf-page { padding-left: var(--menu-gutter-mobile); padding-right: 16px; }
  .pf-grid-v {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-right: -16px; padding-right: 16px; padding-bottom: 8px; scrollbar-width: none;
  }
  .pf-grid-v::-webkit-scrollbar { display: none; }
  .pf-grid-v .pf-card { flex: 0 0 78%; scroll-snap-align: start; }
  .pf-grid-h { grid-template-columns: minmax(0, 1fr); }
  .pf-bar { opacity: 1; transform: none; }               /* dokunmatikte hover yok: kontroller hep görünür */
  .pf-player.is-idle .pf-bar { opacity: 0; }
  .pf-igembed { height: 560px; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-player, .pf-big, .pf-bar { transition: none; }
}

/* ---------- 3. tur: bölüm meta, hesap grupları, video/instagram sekmeleri ---------- */
.pf-h2-meta { margin-left: auto; font: 500 11px/1 'JetBrains Mono', monospace; letter-spacing: 0.1em; color: var(--pf-muted); }
.pf-group + .pf-group { margin-top: calc(var(--pf-gap) * 2.4); }
.pf-group-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; font-size: 18px; font-weight: 600; }
.pf-group-head a { font: 500 11px/1 'JetBrains Mono', monospace; letter-spacing: 0.06em; color: var(--pf-muted); text-decoration: none; }
.pf-group-head a:hover, .pf-group-head a:focus-visible { color: #fff; outline: none; }
.pf-group-head .pf-cat { margin-left: auto; }
.pf-grid-v { margin-bottom: 0; }

.pf-tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--pf-hairline); border-radius: 40px; align-self: flex-start; }
.pf-tab {
  padding: 7px 12px; border: 0; border-radius: 40px; background: transparent; color: var(--pf-muted);
  font: 500 10px/1 'JetBrains Mono', monospace; letter-spacing: 0.06em; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease;
}
.pf-tab:hover, .pf-tab:focus-visible { color: #fff; outline: none; }
.pf-tab[aria-selected="true"] { background: #fff; color: #000; }
.pf-stage { position: relative; aspect-ratio: 9 / 16; }
.pf-stage > .pf-player, .pf-stage > .pf-igembed { position: absolute; inset: 0; height: auto; }
.pf-stage > .pf-igembed { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.pf-card.show-ig .pf-stage > .pf-igembed { opacity: 1; pointer-events: auto; }
.pf-card.show-ig .pf-stage > .pf-player { opacity: 0; pointer-events: none; }
.pf-stage > .pf-igembed:only-child { opacity: 1; pointer-events: auto; }   /* dosyası olmayan içerik */

.pf-pub { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; color: var(--pf-muted); text-decoration: none;
  font: 500 10px/1 'JetBrains Mono', monospace; letter-spacing: 0.08em; transition: color 0.2s ease; }
.pf-pub:hover, .pf-pub:focus-visible { color: #fff; outline: none; }
.pf-dot { width: 6px; height: 6px; border-radius: 50%; background: #5BD18A; box-shadow: 0 0 0 3px rgba(91, 209, 138, 0.18); }

@media (max-width: 760px) {
  .pf-h2 { flex-wrap: wrap; }
  .pf-h2-meta { margin-left: 0; width: 100%; }
}

/* ---------- 3. tur: bölüm meta, hesap grupları, video/instagram sekmeleri ---------- */
.pf-h2-meta { margin-left: auto; font: 500 11px/1 'JetBrains Mono', monospace; letter-spacing: 0.1em; color: var(--pf-muted); }
.pf-group + .pf-group { margin-top: calc(var(--pf-gap) * 2.4); }
.pf-group-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; font-size: 18px; font-weight: 600; }
.pf-group-head a { font: 500 11px/1 'JetBrains Mono', monospace; letter-spacing: 0.06em; color: var(--pf-muted); text-decoration: none; }
.pf-group-head a:hover, .pf-group-head a:focus-visible { color: #fff; outline: none; }
.pf-group-head .pf-cat { margin-left: auto; }
.pf-grid-v { margin-bottom: 0; }

.pf-tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--pf-hairline); border-radius: 40px; align-self: flex-start; }
.pf-tab {
  padding: 7px 12px; border: 0; border-radius: 40px; background: transparent; color: var(--pf-muted);
  font: 500 10px/1 'JetBrains Mono', monospace; letter-spacing: 0.06em; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease;
}
.pf-tab:hover, .pf-tab:focus-visible { color: #fff; outline: none; }
.pf-tab[aria-selected="true"] { background: #fff; color: #000; }
.pf-stage { position: relative; aspect-ratio: 9 / 16; }
.pf-stage > .pf-player, .pf-stage > .pf-igembed { position: absolute; inset: 0; height: auto; }
.pf-stage > .pf-igembed { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.pf-card.show-ig .pf-stage > .pf-igembed { opacity: 1; pointer-events: auto; }
.pf-card.show-ig .pf-stage > .pf-player { opacity: 0; pointer-events: none; }
.pf-stage > .pf-igembed:only-child { opacity: 1; pointer-events: auto; }   /* dosyası olmayan içerik */

.pf-pub { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; color: var(--pf-muted); text-decoration: none;
  font: 500 10px/1 'JetBrains Mono', monospace; letter-spacing: 0.08em; transition: color 0.2s ease; }
.pf-pub:hover, .pf-pub:focus-visible { color: #fff; outline: none; }
.pf-dot { width: 6px; height: 6px; border-radius: 50%; background: #5BD18A; box-shadow: 0 0 0 3px rgba(91, 209, 138, 0.18); }

@media (max-width: 760px) {
  .pf-h2 { flex-wrap: wrap; }
  .pf-h2-meta { margin-left: 0; width: 100%; }
}

/* ---------- 4. tur: YouTube kategori başlıkları, öne çıkan belgesel, etiket fontu ---------- */
.pf-grid-h { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: calc(var(--pf-gap) * 1.6); }
.pf-featured { grid-column: 1 / -1; }
.pf-h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.015em; }
.pf-featured .pf-h3 { font-size: clamp(22px, 2.4vw, 28px); }
.pf-yt-title { font-size: 15px; color: rgba(255, 255, 255, 0.75); }

/* etiketler: mono yerine sitenin ana yazı tipi, sade */
.pf-kicker, .pf-num, .pf-cat, .pf-h2-meta, .pf-link, .pf-pub, .pf-tab, .pf-group-head a, .pf-time {
  font-family: 'Stack Sans Headline', sans-serif;
  letter-spacing: 0;
}
.pf-cat, .pf-h2-meta, .pf-group-head a { font-size: 13px; font-weight: 400; }
.pf-link, .pf-pub { font-size: 13px; font-weight: 500; }
.pf-tab { font-size: 12px; font-weight: 500; }
.pf-kicker { font-size: 14px; font-weight: 500; }
.pf-num { font-size: 13px; }

@media (max-width: 760px) {
  .pf-grid-h { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- yatay Instagram videosu ---------- */
.pf-card-h { margin-bottom: calc(var(--pf-gap) * 1.4); }
.pf-card-h .pf-stage { aspect-ratio: 16 / 9; }
.pf-player-h { aspect-ratio: 16 / 9; }
.pf-player-h .pf-video { object-fit: contain; background: #000; }
.pf-card-h.show-ig .pf-stage { aspect-ratio: auto; height: var(--pf-ig-h); max-width: 460px; }   /* gönderi dikey çerçevede açılır */

/* ---------- ses seviyesi: ses ikonunun üzerine gelince açılır ---------- */
.pf-volbox { display: flex; align-items: center; flex: none; }
.pf-vol {
  width: 0; opacity: 0; margin: 0; height: 3px; cursor: pointer; accent-color: var(--pf-accent);
  transition: width 0.25s var(--ease-out-expo), opacity 0.2s ease, margin 0.25s ease;
}
.pf-volbox:hover .pf-vol, .pf-volbox:focus-within .pf-vol { width: 64px; opacity: 1; margin: 0 4px 0 2px; }
@media (hover: none) { .pf-vol { display: none; } }   /* telefonda ses tuşları kullanılır; iOS sayfadan ses ayarına izin vermez */

/* kart etiketleri (hesap · yıl) beyaz */
.pf-meta .pf-cat { color: #ffffff; }

/* sayfa üst etiketi ("portfolyo") beyaz */
.pf-kicker { color: #ffffff; }
