/* =========================================================
   Duovly — Discover (메이트 찾기) design layer
   Mockup: ui_kits/app/Discover.html  → reproduced with tokens.css vars.
   NOTE: card body (.dlc-*) already lives in home-redesign.css.
   This file owns the TOP SECTION (header/search/chips/sort),
   game-logo <img> support, and the talent-card variant.
   ========================================================= */

/* ---- sticky top section ---- */
.dsc-top {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 16px 10px;
  background: linear-gradient(180deg, rgba(252,250,247,.96) 72%, rgba(252,250,247,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dsc-row { display: flex; align-items: center; gap: 10px; }
.dsc-title {
  margin: 0;
  font-size: 21px;
  font-weight: var(--fw-heavy);
  color: var(--ink-900);
  letter-spacing: 0;
}
.dsc-title small {
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--ink-400);
  margin-left: 6px;
}
.dsc-title small b { color: var(--mint-700); font-weight: var(--fw-heavy); }
.dsc-icbtn {
  width: 44px; height: 44px;
  margin-left: auto;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  color: var(--ink-700);
  background: radial-gradient(120% 120% at 30% 22%, #fff 0 38%, var(--surface-sunken) 100%);
  box-shadow: inset 0 1px 1.5px rgba(255,255,255,.95), inset 0 -3px 6px rgba(120,108,96,.10), var(--sh-card);
}
.dsc-icbtn:active { transform: scale(.96); }
.dsc-icbtn svg { width: 20px; height: 20px; }

/* ---- search ---- */
.dsc-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  margin-top: 12px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  cursor: text;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.dsc-search svg { width: 18px; height: 18px; color: var(--ink-400); flex-shrink: 0; }
.dsc-search .dsc-search-ph { flex: 1; color: var(--ink-400); font-size: 14px; font-weight: var(--fw-semibold); }

/* ---- filter chips ---- */
.dsc-chips {
  display: flex;
  gap: 7px;
  margin: 12px -16px 0;
  padding: 0 16px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dsc-chips::-webkit-scrollbar { display: none; }
.dsc-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 33px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: var(--fw-bold);
  cursor: pointer;
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-700);
  font-family: inherit;
}
.dsc-chip.on { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.dsc-chip--live.on { background: var(--mint-50); border-color: var(--mint-200); color: var(--mint-700); }
.dsc-chip--live.on::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint-500);
}
.dsc-chip img { width: 15px; height: 15px; border-radius: 3px; object-fit: contain; }

/* ---- sort bar ---- */
.dsc-sortbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 6px;
}
.dsc-count { font-size: 12.5px; font-weight: var(--fw-bold); color: var(--ink-400); }
.dsc-count b { color: var(--ink-700); }
.dsc-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: var(--fw-heavy);
  color: var(--ink-900);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  position: relative;
}
.dsc-sort svg { width: 13px; height: 13px; }
/* native <select> sits invisibly over the label so existing setSort() wiring stays */
.dsc-sort select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-family: inherit;
}

/* ---- list wrapper ---- */
.dsc-list { padding: 4px 16px 30px; }

/* ---- game-logo image inside the card's game chip (mockup uses real logos) ---- */
.dlc-gchip img { width: 14px; height: 14px; border-radius: 3px; object-fit: contain; }

/* ---- talent-card variant: reuse .dlc shell, talent chip uses warm lilac accent ---- */
.dlc-gchip--talent {
  background: var(--surface-mute);
  border-color: var(--border);
  color: var(--ink-700);
}
.dlc-bio {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: var(--fw-medium);
  color: var(--ink-500);
  line-height: var(--lh-snug);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- empty state (warm tone) ---- */
.dsc-empty {
  margin: 8px 16px 0;
  padding: 52px 18px;
  border-radius: var(--r-2xl);
  background: var(--surface-sunken);
  text-align: center;
  border: 1px solid var(--border);
}
.dsc-empty-emoji { font-size: 42px; margin-bottom: 12px; }
.dsc-empty-title { font-size: 15px; font-weight: var(--fw-bold); color: var(--ink-700); }
.dsc-empty-sub { font-size: 12px; color: var(--ink-500); font-weight: var(--fw-bold); margin-top: 8px; line-height: var(--lh-normal); }
