/* ==========================================================================
   Stage — Portfolyo listesi geliştirmeleri (klasik ızgara korunur)
   ========================================================================== */

/* Sekmeler + sayaç */
.pf-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.pf-tabs { gap: 10px; border: 0; }
.pf-tabs .nav-link { display: inline-flex; align-items: flex-start; gap: 3px; transition: background .3s, color .3s, border-color .3s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.pf-tabs .nav-link:hover { transform: translateY(-2px); }
.pf-tabs .nav-link sup { top: -.15em; font-size: 10px; font-weight: 600; opacity: .45; transition: opacity .3s, color .3s; }
.pf-tabs .nav-link.active sup { color: #fa2837; opacity: 1; }
.pf-counter { margin: 0; color: #8a8a90; font-size: 14px; white-space: nowrap; }
.pf-counter span { display: inline-block; min-width: 1.4em; color: #1e1e1e; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Filtre geçişi */
.portfolio-grid .portfolio-card { transition: opacity .45s ease, filter .45s ease; }
.portfolio-grid.is-filtering .portfolio-card { opacity: 0; filter: blur(4px); }
.portfolio-card.pf-hidden { display: none !important; }

/* Kart üzerindeki katman */
.pf-thumb { border-radius: 18px; isolation: isolate; }
.pf-thumb img.portfolio-video-thumb { transition: transform 1.1s cubic-bezier(.2, .8, .2, 1), opacity .3s ease; }
.pf-thumb:hover img.portfolio-video-thumb { transform: scale(1.05); }
.pf-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent 45%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.pf-thumb:hover .pf-overlay { opacity: 1; }
.pf-overlay__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: #fa2837;
  border-radius: 999px;
  transform: translateY(14px) scale(.9);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.pf-thumb:hover .pf-overlay__cta { transform: none; }
.pf-year {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 4;
  padding: 6px 12px;
  color: #1e1e1e;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, .85);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  pointer-events: none;
}

/* Görseli olmayan proje */
.pf-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 420px;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 15%, rgba(250, 40, 55, .55), transparent 45%),
    linear-gradient(160deg, #1e1e1e, #0d0d0e);
}
.pf-placeholder span { padding: 5px 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; }
.pf-placeholder strong { font-family: var(--tp-ff-sequel-semi-bold, sans-serif); font-size: 26px; font-weight: 400; line-height: 1.15; }
.mg-portfolio-thumb .pf-placeholder { position: absolute; inset: 0; }

.pf-empty { padding: 60px 0; color: #8a8a90; text-align: center; }

@media (max-width: 767px) {
  .pf-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .pf-tabs::-webkit-scrollbar { display: none; }
  .pf-tabs .nav-link { flex: 0 0 auto; }
  .pf-overlay { opacity: 1; background: none; }
  .pf-overlay__cta { transform: none; padding: 10px 14px; font-size: 13px; }
}

/* Video projeleri: oynat düğmesi */
.youtube-video-wrapper { position: relative; display: block; overflow: hidden; border-radius: 18px; }
.mg-portfolio-thumb .youtube-video-wrapper { position: absolute; inset: 0; }
.youtube-video-wrapper img { transition: transform 1.1s cubic-bezier(.2, .8, .2, 1), filter .5s; }
.youtube-video-wrapper:hover img { transform: scale(1.05); filter: brightness(.85); }
.youtube-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fa2837 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8.5 5.5v13l11-6.5-11-6.5Z'/%3E%3C/svg%3E") 54% 50% / 34px no-repeat;
  box-shadow: 0 0 0 10px rgba(250, 40, 55, .2);
  transform: translate(-50%, -50%);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s;
}
.youtube-video-wrapper:hover .youtube-play-button { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 0 16px rgba(250, 40, 55, .15); }
