/* ============================================================
   page-wordart.css (Lego Block)
   뉘앙스 워드아트 갤러리 전용 (멤버십 게이트 + 무료 샘플).
   ============================================================ */
/* 2026-07-21: 툴바(검색창+칩) 스타일이 이 파일에 아예 없었다 — script.js는 dictionary
   페이지와 같은 클래스명(.nuance-toolbar 등)으로 마크업을 만드는데, wordart/index.html은
   dictionary/style.css를 안 불러와서 브라우저 기본 스타일로 렌더링되고 있었다(선택된 칩도
   구분이 안 됨). dictionary/style.css의 해당 규칙을 그대로 가져오되, .nuance-grid는 제외
   (워드아트는 자체 .wordart-grid를 씀 — 그대로 가져오면 카드 레이아웃이 충돌한다). */
.nuance-toolbar {
  position: sticky; top: 61px; z-index: 40;
  background: rgba(13, 17, 23, 0.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0; margin-bottom: 6px;
}
.nuance-search {
  width: 100%; font-family: var(--sans); font-size: 16px;
  padding: 13px 18px; border-radius: 12px; border: 1.5px solid var(--hairline);
  background: var(--paper-deep); color: var(--ink); margin-bottom: 14px;
}
.nuance-search:focus { outline: none; border-color: var(--red); }
.parent-chips { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.parent-chips .nuance-chip { padding: 9px 18px; font-size: 14px; background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.1); }
.parent-chips .nuance-chip.is-active { background: var(--gradient-primary); border-color: transparent; font-weight: 700; }
.nuance-chips { display: flex; gap: 8px; flex-wrap: wrap; padding-left: 4px; border-left: 2px solid var(--hairline); margin-bottom: 8px; }
.nuance-chips[hidden] { display: none !important; }
.nuance-chip {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 7px 15px; border-radius: 999px; border: 1.5px solid var(--hairline);
  background: var(--paper-deep); color: var(--ink-soft); cursor: pointer; user-select: none;
  transition: all .12s ease;
}
.nuance-chip:hover { border-color: var(--red); color: var(--red); }
.nuance-chip.is-active {
  background: var(--gradient-primary); border-color: transparent; color: #fff;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}
.nuance-count {
  font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 12px;
}

.wordart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 26px; }
.wa-card {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-muted); background: var(--bg-surface);
  aspect-ratio: 9/16; display: flex; flex-direction: column; justify-content: flex-end;
}
.wa-card.locked { cursor: pointer; }
.wa-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wa-meta { position: relative; z-index: 1; padding: 12px 14px; background: linear-gradient(to top, rgba(0,0,0,.7), transparent); display: flex; flex-direction: column; gap: 4px; }
.wa-title { font-weight: 700; font-size: .95rem; color: #fff; }
.wa-roman { font-size: .78rem; opacity: .75; font-weight: 400; }
.wa-save { font-size: .78rem; color: #fff; text-decoration: underline; opacity: .9; }
.wa-free-badge {
  position: absolute; top: 10px; right: 10px; z-index: 1; font-size: .72rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; background: rgba(234,179,8,.9); color: #1a1a1a;
}
.wa-lock {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(0,0,0,.55));
  text-align: center; padding: 16px;
}
.wa-lock-icon { font-size: 1.6rem; }
.wordart-empty {
  border: 1px dashed var(--border-muted); border-radius: 14px;
  padding: 48px 24px; text-align: center; margin-top: 26px; line-height: 1.8;
}
.wordart-upsell {
  margin-top: 34px; border-radius: 16px; padding: 28px;
  background: linear-gradient(135deg, rgba(244,63,94,.12), rgba(129,140,248,.10));
  border: 1px solid var(--border-muted);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.wordart-upsell h3 { margin: 0 0 4px; }
.wordart-upsell p { margin: 0; color: var(--text-secondary); max-width: 46ch; }
