/* ═══════════════════════════════════════════════════════
   ChartFlow — proofs.html 전용 (2026-10-18 개편 — 예전 페이지 안 <style> 을 옮기고 밝은 모양으로)
   카드(.pf-card …)와 상태 상자(.pf-status …)는 페이지 스크립트가 만듭니다.
   게시물 상세는 공용 .ui-lightbox, 올리기 창은 공용 .ui-modal + .ui-field 를 씁니다.
   ═══════════════════════════════════════════════════════ */

/* 내 인증 현황 + 올리기 (스크립트가 style.display = 'flex' 로 보임) */
.pf-mine { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 24px; padding: 14px 16px 14px 20px; background: var(--c-band); border: 1px solid var(--c-line); border-left: 3px solid var(--c-accent); border-radius: var(--radius-sm); }
.pf-mine-text { flex: 1 1 240px; font-size: var(--fs-small); color: var(--c-ink-2); line-height: 1.6; }
.pf-mine-text b { color: var(--c-accent-ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* 불러오는 중 · 빈 목록 · 오류 */
.pf-status { text-align: center; padding: 48px 24px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); }
.pf-status-title { font-size: 1.0625rem; font-weight: 700; color: var(--c-ink); line-height: 1.5; }
.pf-status-desc { margin-top: 6px; font-size: var(--fs-small); color: var(--c-ink-2); line-height: 1.7; }

/* 카드 목록 */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.pf-card { display: flex; flex-direction: column; overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.pf-card:hover { border-color: var(--c-accent-line); box-shadow: var(--shadow-1); }
.pf-card:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: var(--radius); }
.pf-thumb { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-band); border-bottom: 1px solid var(--c-line); }
.pf-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-count { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--c-ink); color: #fff; font-size: var(--fs-xs); font-weight: 600; line-height: 1.6; font-variant-numeric: tabular-nums; }
.pf-count svg { width: 14px; height: 14px; flex-shrink: 0; }
.pf-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 14px 16px 16px; }
.pf-title { font-size: 1rem; font-weight: 650; line-height: 1.5; color: var(--c-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pf-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 10px; margin-top: auto; font-size: 0.875rem; line-height: 1.5; }
.pf-trader { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-accent-ink); font-weight: 600; }
.pf-date { color: var(--c-ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 더 보기 (스크립트가 style.display = 'inline-block' 로 보임 — 숨김이 기본이라 btn-outline 은 붙이지 않음) */
.pf-more-wrap { text-align: center; }
.pf-more { display: none; min-width: 200px; margin-top: 32px; padding: 12px 28px; border: 1px solid var(--c-line-2); border-radius: 10px; background: var(--c-surface); color: var(--c-ink); font-size: 1rem; font-weight: 600; line-height: 1.5; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.pf-more:hover { border-color: var(--c-accent); color: var(--c-accent-ink); }
.pf-more:disabled { background: var(--c-band); border-color: var(--c-line); color: var(--c-ink-3); cursor: default; }

.pf-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: var(--fs-small); color: var(--c-ink-3); line-height: 1.7; }
.pf-foot .inline-link { font-weight: 600; white-space: nowrap; }

/* 게시물 상세 (.ui-lightbox) — 작성자 이름 */
.pf-lb .ui-lightbox__meta b { color: var(--c-accent-ink); font-weight: 600; }

/* 올리기 창 (.ui-modal) */
.pf-sub-note { padding: 12px 14px; background: var(--c-band); border-radius: var(--radius-sm); font-size: 0.875rem; color: var(--c-ink-2); line-height: 1.65; }
.pf-opt { font-weight: 400; color: var(--c-ink-3); }
/* 파일 이름 글자('선택된 파일 없음' 등)는 숨김 — 스크립트가 고른 파일을 모아 두고 입력칸은 매번 비우므로, 고른 장수는 아래 .pf-picked 로 보여 줌 */
.pf-file { display: block; max-width: 100%; font-size: 0.9375rem; color: transparent; }
.pf-file::file-selector-button { margin-right: 12px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--c-line-2); border-radius: var(--radius-sm); background: var(--c-surface); color: var(--c-ink); font: inherit; font-weight: 600; cursor: pointer; }
.pf-file::file-selector-button:hover { border-color: var(--c-accent); color: var(--c-accent-ink); }
.pf-file:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.pf-picked { margin-top: 6px; font-size: 0.875rem; font-weight: 600; color: var(--c-accent-ink); }
.pf-picked:empty { display: none; }

@media (max-width: 640px) {
  .pf-mine { padding: 14px 16px; }
  .pf-mine .btn-primary { flex: 1 1 100%; }
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pf-body { gap: 6px; padding: 10px 12px 12px; }
  .pf-title { font-size: 0.9375rem; }
  .pf-meta { font-size: 0.8125rem; }
  .pf-status { padding: 36px 18px; }
}
