/* ============================================================
   webzine-index.css — 글 목록 페이지 전용 스타일
   작성일: 2026-04-29
   ============================================================ */

/* ── 히어로 ── */
.wz-hero {
  background: linear-gradient(135deg, var(--wz-primary) 0%, var(--wz-primary-hover) 100%);
  color: #fff;
  padding: 56px 24px 48px;
  text-align: center;
}
.wz-hero h1 {
  font-family: var(--wz-font-serif);
  font-size: 38px;
  font-weight: normal;
  margin: 0 0 12px;
  letter-spacing: -.02em;
}
.wz-hero p {
  font-size: 16px;
  opacity: .85;
  margin: 0;
  max-width: 480px;
  margin: 0 auto;
}

/* ── 카테고리 필터 (JS 제어) ── */
.wz-filter-bar {
  background: var(--wz-bg-surface);
  border-bottom: 1px solid var(--wz-border);
  padding: 0;
  position: sticky;
  top: 60px; /* 웹진 헤더 높이 */
  z-index: 90;
}
.wz-filter-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.wz-filter-inner::-webkit-scrollbar { display: none; }
.wz-filter-btn {
  background: none;
  border: none;
  padding: 14px 16px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wz-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  font-family: var(--wz-font-sans);
  transition: color .15s, border-color .15s;
}
.wz-filter-btn:hover { color: var(--wz-text-primary); }
.wz-filter-btn.active { color: var(--wz-primary); border-bottom-color: var(--wz-primary); }

/* ── 글 목록 그리드 ── */
.wz-articles-section { padding: 48px 0; }
.wz-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── 글 카드 ── */
.wz-card {
  background: var(--wz-bg-surface);
  border: 1px solid var(--wz-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s;
  display: flex;
  flex-direction: column;
}
.wz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.07);
}
.wz-card a { text-decoration: none; color: inherit; }

.wz-card-thumb {
  height: 188px;
  background: linear-gradient(135deg, var(--wz-primary), var(--wz-primary-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.wz-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wz-card-thumb-placeholder {
  font-family: var(--wz-font-serif);
  font-size: 22px;
  color: rgba(255,255,255,.75);
  padding: 20px;
  text-align: center;
  line-height: 1.4;
  letter-spacing: -.01em;
}
.wz-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.wz-card-cat { margin-bottom: 10px; }
.wz-card-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wz-card-excerpt {
  font-size: 13.5px;
  color: var(--wz-text-secondary);
  line-height: 1.6;
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wz-card-meta {
  font-size: 12px;
  color: var(--wz-text-muted);
  display: flex;
  gap: 12px;
  margin-top: auto;
}

/* ── 카드 숨김 (JS 필터) ── */
.wz-card[data-hidden="1"] { display: none; }

/* ── 빈 결과 ── */
.wz-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--wz-text-muted);
  font-size: 15px;
}

/* ── 반응형 ── */
@media (max-width: 640px) {
  .wz-hero h1 { font-size: 28px; }
  .wz-articles-grid { grid-template-columns: 1fr; }
}
