/* ==========================================================================
   네비드 토큰 페이지 전용 — nabid.css 토큰/클래스 재사용, 확장만.
   에디토리얼·뉴트럴 톤. 블롭·네온·그라데이션 배경 없음.
   목록(coins.php) + 상세(coin_detail.php) 공용.
   ========================================================================== */

/* 카테고리 뱃지 색 — 네비드 6종 자체 팔레트. */
:root {
  --cat-anchor:  #2e4034;
  --cat-culture: #a98b53;
  --cat-global:  #45604e;
  --cat-payment: #38553f;
  --cat-reward:  #8a6f3e;
  --cat-premium: #7b8b7d;
}

/* ── 목록 히어로 ───────────────────────────────────────── */
.coins-hero {
  padding: 140px 0 64px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.coins-hero__h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 22px;
}

.coins-hero__lead {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--sub);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 0 48px;
}

.coins-hero__stats {
  display: flex;
  gap: 0;
  max-width: 480px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}

.coins-stat {
  flex: 1;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.coins-stat:last-child { border-right: none; }

.coins-stat b {
  display: block;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.coins-stat span {
  font-size: 12.5px;
  color: var(--sub);
}

/* ── 필터 칩 ──────────────────────────────────────────── */
.coins-section { padding-top: 52px; }

.coins-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.chip {
  padding: 8px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sub);
  cursor: pointer;
  transition: all 0.22s var(--ease);
  font-family: inherit;
}

.chip:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.chip.is-active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

/* ── 카테고리 뱃지 ─────────────────────────────────────── */
.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.cat-badge--anchor  { background: rgba(46, 64, 52, 0.10);  color: var(--cat-anchor);  border-color: rgba(46, 64, 52, 0.18); }
.cat-badge--culture { background: rgba(169, 139, 83, 0.10); color: var(--cat-culture); border-color: rgba(169, 139, 83, 0.20); }
.cat-badge--global  { background: rgba(69, 96, 78, 0.10);  color: var(--cat-global);  border-color: rgba(69, 96, 78, 0.18); }
.cat-badge--payment { background: rgba(56, 85, 63, 0.10);  color: var(--cat-payment); border-color: rgba(56, 85, 63, 0.18); }
.cat-badge--reward  { background: rgba(138, 111, 62, 0.10); color: var(--cat-reward);  border-color: rgba(138, 111, 62, 0.18); }
.cat-badge--premium { background: rgba(123, 139, 125, 0.10); color: var(--cat-premium); border-color: rgba(123, 139, 125, 0.18); }

/* ── 코인 그리드 ───────────────────────────────────────── */
.coin-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.coin-item { background: var(--paper); }
.coin-item.is-hidden { display: none; }

.intro-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px 26px;
  transition: background 0.22s var(--ease);
}

.intro-card:hover { background: var(--bg); }

.intro-card__top {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.intro-card__id { min-width: 0; margin-right: auto; }
.intro-card__name { font-size: 17px; font-weight: 700; }
.intro-card__sym  { font-size: 12.5px; color: var(--sub); margin-top: 2px; }

.intro-card__tagline {
  color: var(--sub);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}

.intro-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sub);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 3px 9px;
}

.intro-card__more {
  margin-top: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold);
  transition: color 0.2s;
}

.intro-card:hover .intro-card__more { color: var(--forest); }

.coins-empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--sub);
  font-size: 15px;
}

/* ── 코인 로고 ─────────────────────────────────────────── */
.coin-logo {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}

/* ── 상세: 히어로 ──────────────────────────────────────── */
.detail { padding: 120px 0 90px; }

.detail__back {
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  color: var(--sub);
  margin-bottom: 28px;
  transition: color 0.2s;
}

.detail__back:hover { color: var(--forest); }

.detail__head {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.coin-logo--lg { width: 64px; height: 64px; font-size: 26px; }

.detail__id { min-width: 0; }

.detail__title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.detail__title h1 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.detail__sym {
  color: var(--sub);
  font-size: 15px;
  font-weight: 700;
}

.detail__tagline {
  color: var(--sub);
  font-size: clamp(14.5px, 1.7vw, 17px);
  margin: 10px 0 0;
  line-height: 1.55;
}

.detail__meta {
  color: var(--sub);
  font-size: 12.5px;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ── 상세: 본문 2단 ────────────────────────────────────── */
.detail__body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.detail__block { margin-bottom: 48px; }
.detail__block:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.detail__block h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.detail__overview {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.82;
}

/* 특징 리스트 */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 15px;
  color: var(--ink-2);
  transition: border-color 0.22s var(--ease);
}

.feature-list__item:hover { border-color: var(--forest); }

.feature-list__check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}

/* 활용 사례 */
.usecase-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.usecase {
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ── 상세: 사이드 ──────────────────────────────────────── */
.detail__aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.link-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 12px;
}

.link-card__title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sub);
  margin: 0 0 10px;
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.2s;
}

.link-row:hover { color: var(--forest); }
.link-card .intro-card__tags { padding-bottom: 8px; }

.detail__note {
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.65;
  border-left: 2px solid var(--line-2);
  padding-left: 12px;
  margin: 0;
}

/* ── 상세: 다른 토큰 ───────────────────────────────────── */
.detail__related { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }

.section__head--left { text-align: left; margin: 0 0 28px; max-width: none; }

.section__head--left .eyebrow { display: block; }

.section__head--left h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
}

.coin-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.intro-card--rail {
  background: var(--paper);
  flex: none;
  padding: 24px 22px;
}

.intro-card--rail:hover { background: var(--bg); }

.intro-card--rail .intro-card__tagline {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.intro-card--rail .cat-badge { align-self: flex-start; margin-top: 14px; }

/* ── 반응형 ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .coin-rail { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .coins-hero__stats { max-width: 100%; }
  .coin-grid { grid-template-columns: repeat(2, 1fr); }
  .detail__body { grid-template-columns: 1fr; gap: 36px; }
  .detail__aside { position: static; }
  .detail__head { padding: 24px 22px; }
}

@media (max-width: 600px) {
  .coins-hero { padding: 110px 0 48px; }
  .coins-hero__stats { flex-direction: column; }
  .coins-stat { border-right: none; border-bottom: 1px solid var(--line); }
  .coins-stat:last-child { border-bottom: none; }
  .coin-grid { grid-template-columns: 1fr; }
  .coin-rail { grid-template-columns: 1fr; }
  .coin-logo--lg { width: 52px; height: 52px; font-size: 21px; }
}
