/* Work list (projeler.html) and project detail (proje.html) in the homepage's language:
   1440px frame, Funnel Display, thin rules, red accent, square buttons. Tokens from tema.css.
   Images always keep their own ratio; phone screens are never cropped. */

.pf { padding-top: 112px; }
@media (min-width: 1024px) { .pf { padding-top: 150px; } }
.pf:focus { outline: none; }

/* ---------- shared bits ---------- */
.pf-kicker { font-size: 11px; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pf-split .ch { color: var(--ink); transition: color 0.2s linear; transition-delay: calc(var(--i, 0) * 14ms); }
.pf-life, .pf-badge { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid currentColor; font-size: 11px; line-height: 1.3; letter-spacing: 0.04em; text-transform: none; white-space: nowrap; }
.pf-life { color: var(--accent); }
.pf-badge { color: var(--muted); }
.pf-note { font-size: 13px; line-height: 1.45; color: var(--muted); }
.pf-preview-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 24px; }
.pf-preview-bar:has(> [hidden]:first-child + [hidden]) { display: none; }
.pf-mode-link { font-size: 13px; text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }

/* ---------- media (shared by list and detail) ---------- */
.pf-media { position: relative; overflow: hidden; background: var(--soft); }
.pf-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-media--contain img { object-fit: contain; }
.pf-media--paper { background: var(--paper); }
.pf-media--empty { display: grid; place-items: center; align-content: center; gap: 6px; aspect-ratio: 16 / 10; color: var(--muted); }
.pf-media-initial { font-size: 64px; line-height: 1; font-weight: 500; }
.pf-media-note { font-size: 12px; letter-spacing: 0.04em; }
/* Representative covers: abstract shapes, always labelled. */
/* Representative covers: abstract shapes, always labelled. Their palette follows the theme
   (they are drawings, not screenshots): warm light ground in light, night ground in dark. */
:root { --ill-bg: #e2dfd8; --ill-soft: #d2cec5; --ill-ink: #0a0a0a; --ill-hi: #d12424; --ill-paper: #fbfaf7; --ill-mark: #0a0a0a; }
:root[data-theme="dark"] { --ill-bg: #141414; --ill-soft: #2c2a27; --ill-ink: #f7f6eb; --ill-hi: #d12424; --ill-paper: #f7f6eb; --ill-mark: #ceff00; }
.pf-media--illustration { aspect-ratio: 16 / 10; background: var(--ill-bg); }
.pf-media--illustration svg { display: block; width: 100%; height: 100%; }
.ill-bg { fill: var(--ill-bg); }
.ill-clip { fill: var(--ill-soft); }
.ill-clip--1 { fill: var(--ill-hi); }
.ill-clip--2 { fill: var(--ill-ink); opacity: 0.85; }
.ill-beat { fill: none; stroke: var(--ill-mark); stroke-width: 3; stroke-dasharray: 6 14; opacity: 0.45; }
.ill-wave { fill: none; stroke: var(--ill-ink); stroke-width: 5; stroke-linejoin: round; }
.ill-head { stroke: var(--ill-ink); stroke-width: 4; }
.ill-head-dot { fill: var(--ill-hi); }
.ill-word { fill: var(--ill-soft); }
.ill-paper { fill: var(--ill-paper); stroke: var(--ill-soft); stroke-width: 3; }
.ill-seal { fill: var(--ill-hi); }
.ill-seal-in { fill: none; stroke: var(--ill-paper); stroke-width: 6; }
.ill-check { fill: none; stroke: var(--ill-paper); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.pf-illustration-badge { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 6px 9px; background: rgba(10, 10, 10, 0.82); color: #fff; font-size: 11px; line-height: 1.3; letter-spacing: 0.02em; }

/* ---------- list: title, filters, count ---------- */
.pf-head .section-title { margin-top: 14px; }
.pf-lead { max-width: 640px; margin-top: 20px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.pf-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.pf-filter { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 15px; line-height: 1.25; text-align: left; cursor: pointer; transition: border-color 0.25s, background-color 0.25s, color 0.25s; }
.pf-filter:hover { border-color: var(--ink); }
.pf-filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--canvas); }
.pf-filter-count { font-size: 12px; opacity: 0.65; font-variant-numeric: tabular-nums; }
.pf-count { margin-top: 24px; padding-bottom: 14px; border-bottom: 1.5px solid var(--line); font-size: 13px; letter-spacing: 0.02em; color: var(--muted); }
@media (min-width: 1024px) {
  .pf-lead { font-size: 20px; }
  .pf-filters { margin-top: 56px; }
}

/* ---------- list rows ---------- */
.pf-rows { counter-reset: none; }
.pf-row { position: relative; display: grid; grid-template-columns: 1fr; gap: 14px; padding: 28px 0 32px; border-bottom: 1.5px solid var(--line); }
.pf-row-no { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.pf-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.pf-row-title { font-size: clamp(28px, 8vw, 40px); line-height: 1.04; letter-spacing: -0.02em; font-weight: 500; overflow-wrap: anywhere; hyphens: manual; }
.pf-row-link { color: inherit; }
.pf-row-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pf-row-link:focus-visible { outline: none; }
.pf-row:has(.pf-row-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.pf-row-summary { max-width: 60ch; font-size: 15px; line-height: 1.55; color: var(--muted); }
.pf-row-media { aspect-ratio: 16 / 10; }
.pf-row-go { display: inline-flex; width: max-content; padding: 9px 15px; border: 1px solid var(--ink); font-size: 15px; font-weight: 500; }
.pf-row:hover .pf-split .ch, .pf-row:focus-within .pf-split .ch { color: var(--accent); }
@media (min-width: 1024px) {
  .pf-row { grid-template-columns: 64px minmax(0, 1fr) 240px; grid-template-rows: auto auto 1fr; column-gap: 32px; row-gap: 12px; padding: 32px 0; transition: grid-template-columns 0.5s var(--ease); }
  .pf-row:hover, .pf-row:focus-within { grid-template-columns: 64px minmax(0, 1fr) 360px; }
  .pf-row-no { grid-column: 1; grid-row: 1 / span 3; padding-top: 10px; font-size: 14px; }
  .pf-row-title { grid-column: 2; grid-row: 1; font-size: clamp(36px, 3.75vw, 54px); }
  .pf-row-meta { grid-column: 2; grid-row: 2; }
  .pf-row-summary { grid-column: 2; grid-row: 3; font-size: 16px; }
  .pf-row-media { grid-column: 3; grid-row: 1 / span 3; align-self: start; }
  .pf-row-media img { transition: transform 0.6s var(--ease); }
  .pf-row:hover .pf-row-media img { transform: scale(1.03); }
  .pf-row-go { display: none; }
}

/* empty states */
.pf-empty { padding: 48px 0 24px; border-bottom: 1.5px solid var(--line); }
.pf-empty h2 { font-size: 32px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; }
.pf-empty p { max-width: 56ch; margin-top: 12px; color: var(--muted); }
.pf-empty-others { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.pf-empty-others-label { font-size: 13px; color: var(--muted); }
.pf-chip { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.pf-chip:hover { border-color: var(--ink); }
.pf-empty-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pf-empty [hidden] { display: none; }

/* ---------- closing call to action (list + detail) ---------- */
.pf-cta { margin-top: 96px; padding: 48px 0 112px; border-top: 1.5px solid var(--line); }
.pf-cta-title { max-width: 14ch; margin-top: 14px; font-size: clamp(40px, 10vw, 104px); line-height: 0.95; letter-spacing: -0.03em; font-weight: 500; }
.pf-cta p:not(.pf-kicker) { max-width: 52ch; margin-top: 20px; font-size: 17px; color: var(--muted); }
.pf-cta .btn { margin-top: 28px; }
@media (min-width: 1024px) { .pf-cta { margin-top: 140px; padding-top: 64px; } .pf-cta p:not(.pf-kicker) { font-size: 20px; } }

/* ---------- detail: head ---------- */
.pf-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; color: var(--muted); }
.pf-back:hover { color: var(--ink); }
.pf-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 28px; font-size: 13px; color: var(--muted); }
.pf-detail-title { margin-top: 16px; margin-left: -0.04em; font-size: clamp(38px, 11.5vw, 120px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 500; overflow-wrap: break-word; hyphens: manual; text-wrap: balance; }
.pf-detail-intro { max-width: 34ch; margin-top: 24px; font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; }
.pf-role { display: grid; gap: 2px; margin-top: 24px; }
.pf-role dt { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pf-role dd { font-size: 16px; }
.pf-detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (min-width: 1024px) {
  .pf-detail-head { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 64px; align-items: end; }
  .pf-detail-head > .pf-back, .pf-detail-head > .pf-detail-meta, .pf-detail-head > .pf-detail-title { grid-column: 1 / -1; }
  .pf-detail-title { font-size: clamp(64px, 7.2vw, 120px); }
  .pf-detail-intro { grid-column: 1; max-width: 30ch; font-size: 32px; }
  .pf-head-side { grid-column: 2; padding-bottom: 6px; }
  .pf-head-side .pf-role { margin-top: 0; }
}
/* entrance: measured, no loader on inner pages */
.js .pf-enter { opacity: 0; transform: translateY(18px); }
.pf-ready .pf-enter { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); }
.pf-ready .pf-enter:nth-child(2) { transition-delay: 0.05s; }
.pf-ready .pf-enter:nth-child(3) { transition-delay: 0.1s; }

/* ---------- detail: main image ---------- */
.pf-hero-shot { margin-top: 48px; }
.pf-shot { position: relative; }
.pf-shot--browser .pf-media { border: 1px solid var(--line); }
.pf-shot-bar { display: flex; gap: 6px; padding: 9px 12px; border: 1px solid var(--line); border-bottom: 0; background: var(--canvas); }
.pf-shot-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
/* Phone screens: shown whole on a quiet band, at a height that suits their resolution. */
.pf-phone-band { display: flex; justify-content: center; gap: 16px; padding: 32px 16px; background: var(--soft); }
.pf-phone-band .pf-shot { width: min(100%, 300px); }
.pf-shot--phone .pf-media { border: 1px solid var(--line); border-radius: 22px; background: var(--canvas); }
.pf-shot--plain .pf-media { background: transparent; }
.pf-shot-caption { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pf-zoom { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; background: transparent; cursor: zoom-in; }
.pf-zoom::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; background: rgba(10, 10, 10, 0.78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 20px no-repeat; opacity: 0.85; transition: opacity 0.2s; }
.pf-zoom:hover::after, .pf-zoom:focus-visible::after { opacity: 1; }
.pf-zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (min-width: 768px) { .pf-phone-band { padding: 56px 24px; gap: 28px; } .pf-phone-band .pf-shot { width: 300px; } }
@media (min-width: 1024px) { .pf-hero-shot { margin-top: 72px; } .pf-phone-band { padding: 72px 24px; } .pf-phone-band .pf-shot { width: 340px; } }

/* ---------- detail: story ---------- */
.pf-story { display: grid; gap: 48px; margin-top: 72px; }
.pf-pair { display: grid; gap: 40px; padding-top: 24px; border-top: 1.5px solid var(--line); }
.pf-section-title { font-size: 11px; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.pf-section-text { margin-top: 14px; font-size: 19px; line-height: 1.45; letter-spacing: -0.01em; }
.pf-features { padding-top: 24px; border-top: 1.5px solid var(--line); }
.pf-highlights { display: grid; margin-top: 10px; }
.pf-highlights li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.45; }
.pf-highlights li::before { content: attr(data-no); font-size: 12px; line-height: 2; color: var(--muted); font-variant-numeric: tabular-nums; }
.pf-result { padding-top: 24px; border-top: 1.5px solid var(--line); }
@media (min-width: 1024px) {
  .pf-story { margin-top: 120px; gap: 96px; }
  .pf-pair { grid-template-columns: 1fr 1fr; column-gap: 64px; padding-top: 32px; }
  .pf-section-text { font-size: 24px; line-height: 1.35; }
  .pf-features { display: grid; grid-template-columns: 1fr 2fr; column-gap: 64px; padding-top: 32px; }
  .pf-highlights { margin-top: -14px; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .pf-highlights li { font-size: 18px; }
}

/* ---------- detail: gallery ---------- */
.pf-gallery-wrap { margin-top: 72px; padding-top: 24px; border-top: 1.5px solid var(--line); }
.pf-gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pf-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; margin-top: 24px; }
.pf-gallery-item { grid-column: 1 / -1; }
.pf-gallery-item.is-portrait { grid-column: auto; }
.pf-gallery-item figure { display: grid; gap: 10px; }
.pf-gallery-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pf-gallery-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pf-gallery-item.is-portrait .pf-media { border: 1px solid var(--line); border-radius: 18px; background: var(--canvas); }
.pf-gallery-item.is-output .pf-media { background: transparent; }
.pf-gallery-item.is-landscape .pf-media, .pf-gallery-item.is-wide .pf-media { border: 1px solid var(--line); }
.pf-gallery-item figcaption { font-size: 13px; line-height: 1.45; color: var(--muted); }
.pf-phone-row { grid-column: 1 / -1; padding: 24px 16px; background: var(--soft); }
.pf-phone-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
@media (min-width: 768px) {
  .pf-gallery { gap: 40px 24px; }
  .pf-gallery-item.is-landscape { grid-column: auto; }
  .pf-phone-row { padding: 40px; }
  .pf-phone-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
}
@media (min-width: 1024px) {
  .pf-gallery-wrap { margin-top: 120px; padding-top: 32px; }
  .pf-phone-row { padding: 56px 40px; }
  .pf-phone-list { grid-template-columns: repeat(4, minmax(0, 240px)); justify-content: center; }
  .is-few .pf-phone-list { grid-template-columns: repeat(var(--n), minmax(0, 260px)); }
}

/* ---------- detail: tools, pager ---------- */
.pf-tools { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-top: 56px; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-tags li { padding: 4px 10px; border: 1px solid var(--line); font-family: var(--text); font-size: 12px; letter-spacing: 0.02em; color: var(--muted); }
.pf-pager { display: grid; border-top: 1.5px solid var(--line); margin-bottom: 96px; }
.pf-pager[hidden] { display: none; }
.pf-pager-link { display: grid; gap: 6px; padding: 28px 0; border-bottom: 1.5px solid var(--line); }
.pf-pager-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pf-pager-title { font-size: clamp(26px, 6vw, 48px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; overflow-wrap: anywhere; transition: color 0.25s; }
.pf-pager-cat { font-size: 13px; color: var(--muted); }
.pf-pager-link:hover .pf-pager-title, .pf-pager-link:focus-visible .pf-pager-title { color: var(--accent); }
@media (min-width: 1024px) {
  .pf-pager { grid-template-columns: 1fr 1fr; margin-bottom: 140px; }
  .pf-pager-link { padding: 40px 0; }
  .pf-pager-next { padding-left: 40px; border-left: 1.5px solid var(--line); text-align: right; }
  .pf-pager-link:only-child { grid-column: 1 / -1; }
}

/* local preview publish check */
.pf-review { margin-top: 32px; padding: 18px 20px; border: 1px dashed var(--line); font-size: 14px; }
.pf-review-title { font-weight: 600; }
.pf-review-text { margin-top: 4px; color: var(--muted); }
.pf-review-list { display: grid; gap: 4px; margin-top: 10px; }
.pf-review-list li { display: flex; justify-content: space-between; gap: 12px; }
.pf-review-list .is-pending strong { color: var(--accent); }

/* not found */
.pf-notfound { padding: 24px 0 64px; }
.pf-notfound h1 { margin-top: 14px; font-size: clamp(40px, 10vw, 96px); line-height: 0.98; letter-spacing: -0.03em; font-weight: 500; }
.pf-notfound p:not(.pf-kicker) { max-width: 52ch; margin-top: 18px; color: var(--muted); }
.pf-notfound .btn { margin-top: 28px; }
[hidden].pf-notfound, [hidden].pf-detail { display: none; }

/* ---------- lightbox ---------- */
.pf-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--viewer); color: var(--viewer-ink); overflow: hidden; }
.pf-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.pf-lightbox::backdrop { background: var(--viewer); }
.pf-lb-top, .pf-lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
.pf-lb-count { min-width: 64px; font-size: 13px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; color: var(--viewer-muted); }
.pf-lb-tools { display: flex; gap: 8px; }
.pf-lb-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--viewer-line); background: transparent; color: inherit; cursor: pointer; }
.pf-lb-btn:hover, .pf-lb-btn[aria-pressed="true"] { border-color: var(--viewer-ink); }
.pf-lb-btn[hidden] { display: none; }
.pf-lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pf-lb-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 0 12px; touch-action: pan-y pinch-zoom; }
.pf-lb-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; opacity: 0; transition: opacity 0.25s; }
.pf-lb-stage img.is-in { opacity: 1; }
.pf-lb-stage img { box-shadow: 0 0 0 1px var(--viewer-line); } /* keeps light screenshots readable on the light viewer */
.pf-lightbox.is-zoomed .pf-lb-stage { display: block; overflow: auto; place-items: initial; touch-action: auto; cursor: zoom-out; }
.pf-lightbox.is-zoomed .pf-lb-stage img { max-width: none; max-height: none; margin: auto; }
.pf-lb-caption { flex: 1; min-width: 0; font-size: 13px; line-height: 1.45; text-align: center; color: var(--viewer-muted); }
@media (min-width: 768px) { .pf-lb-top, .pf-lb-bottom { padding: 16px 24px; } .pf-lb-stage { padding: 0 24px; } .pf-lb-caption { font-size: 14px; } }
