/* members.css — MEMBER 페이지 전용 (공통부는 common.css) */

.member-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 230px;
  padding: 42px;
  margin-bottom: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.96), transparent 26%),
    radial-gradient(circle at 86% 22%, rgba(255, 214, 239, 0.92), transparent 30%),
    radial-gradient(circle at 58% 82%, rgba(255, 245, 215, 0.88), transparent 26%),
    linear-gradient(135deg, #f9d8ee 0%, #e6d9ff 50%, #fff0d8 100%);
  box-shadow: 0 26px 60px rgba(150, 94, 171, 0.18);
}
.member-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(120deg, transparent 8%, rgba(255,255,255,0.52) 48%, transparent 72%),
    radial-gradient(circle at 44% 66%, rgba(255,255,255,0.66), transparent 24%);
  opacity: 0.78; pointer-events: none;
}
.member-hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; }
.member-hero .hero-kicker { font-size: 13px; font-weight: 950; letter-spacing: 0.28em; color: #a061bb; margin-bottom: 12px; }
.member-hero .hero-title { font-size: clamp(42px, 6vw, 74px); font-weight: 950; letter-spacing: -0.05em; color: #fff; text-shadow: 0 8px 28px rgba(117, 67, 151, 0.26); line-height: 0.98; }
.member-hero .hero-sub { margin-top: 16px; font-size: 16px; font-weight: 800; color: #6f527c; line-height: 1.55; }

.hero-stat-card { width: 230px; padding: 20px; border-radius: 18px; background: rgba(255,255,255,0.76); border: 1px solid rgba(255,255,255,0.88); box-shadow: 0 18px 38px rgba(150, 94, 171, 0.13); backdrop-filter: blur(12px); }
.stat-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(226, 194, 223, 0.48); }
.stat-row:last-child { border-bottom: 0; }
.stat-label { font-size: 12px; font-weight: 900; color: #9a8aa3; }
.stat-value { font-size: 20px; font-weight: 950; color: #8f4eb2; }
.stat-value.live { color: #ff4f98; }

.member-section { margin-top: 22px; padding: 22px; border-radius: 18px; background: rgba(255,255,255,0.58); border: 1px solid rgba(226, 194, 223, 0.48); box-shadow: var(--shadow); }
.member-section:first-of-type { margin-top: 24px; }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.group-title { display: inline-flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 950; letter-spacing: -0.04em; color: #4b3659; }
.group-dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,255,255,0.78); }
.group-section-leader .group-dot { background: #f6b73c; }
.group-section-member .group-dot { background: #ff7eb7; }
.group-section-waiter .group-dot { background: #25bec1; }

.member-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.member-card {
  position: relative; min-width: 0; overflow: hidden; border-radius: 15px;
  background: rgba(255,255,255,0.82); border: 1px solid rgba(226, 194, 223, 0.55);
  box-shadow: var(--shadow); transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.member-card::before { content: ""; position: absolute; inset: 0; opacity: 0.78; pointer-events: none; }
.member-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(150, 94, 171, 0.17); }
.member-card.is-live { border-color: rgba(255, 79, 152, 0.58); }
.member-card.is-live::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(255, 79, 152, 0.13); pointer-events: none; }
.member-card.leader { background: linear-gradient(145deg, rgba(255, 251, 236, .94), rgba(255, 240, 191, .76)); border-color: rgba(223, 176, 68, .45); }
.member-card.leader::before { background: radial-gradient(circle at 18% 0%, rgba(255,255,255,.92), transparent 34%), linear-gradient(135deg, rgba(255, 231, 156, .42), rgba(255,255,255,0)); }
.member-card.member::before { background: radial-gradient(circle at 20% 4%, rgba(255, 231, 244, 0.9), transparent 34%), radial-gradient(circle at 88% 10%, rgba(235, 225, 255, 0.88), transparent 38%); }
.member-card.waiter { background: linear-gradient(145deg, rgba(246, 255, 251, .94), rgba(255, 246, 231, .82)); border-color: rgba(102, 190, 149, .28); }
.member-card.waiter::before { background: radial-gradient(circle at 22% 0%, rgba(221, 255, 241, .86), transparent 36%), linear-gradient(145deg, rgba(236, 255, 247, .72), rgba(255, 244, 223, .6)); }

.member-cover { position: relative; height: 112px; background: linear-gradient(135deg, #ffd9eb, #e9dfff 58%, #fff1cf); overflow: hidden; }
.member-card.leader .member-cover { background: linear-gradient(135deg, #fff6cf, #ffe2a1 58%, #fff9ec); }
.member-card.waiter .member-cover { background: linear-gradient(135deg, #d8fff0, #fff0d6 58%, #f2fff9); }
.member-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(255,255,255,0.68)); pointer-events: none; }

.live-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3; display: none;
  padding: 6px 9px; border-radius: 8px; background: #ff4f98; color: white;
  font-size: 11px; font-weight: 950; box-shadow: 0 8px 18px rgba(255, 79, 152, 0.28);
}
.member-card.is-live .live-badge { display: inline-flex; }

.member-photo-wrap {
  position: relative; z-index: 2; width: 98px; height: 98px; margin: -48px auto 0;
  padding: 5px; border-radius: 50%; background: linear-gradient(135deg, #ffb7d9, #b89cff);
  box-shadow: 0 12px 26px rgba(155, 124, 255, 0.20);
}
.member-card.leader .member-photo-wrap { background: linear-gradient(135deg, #fff8d8 0%, #f5c85b 42%, #d79b1f 100%); box-shadow: 0 12px 26px rgba(204, 151, 35, .22); }
.member-card.waiter .member-photo-wrap { background: linear-gradient(135deg, #baf7df, #ffdca8); box-shadow: 0 12px 26px rgba(102, 190, 149, .18); }
.member-card.is-live .member-photo-wrap { background: linear-gradient(135deg, #ff4f98, #ffc54d); box-shadow: 0 12px 28px rgba(255, 79, 152, 0.22); }
.member-photo { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; background: #fff; border: 3px solid rgba(255,255,255,0.94); }

.member-info { position: relative; z-index: 2; padding: 13px 15px 16px; text-align: center; }
.member-name { min-width: 0; font-size: 16px; font-weight: 950; color: #4b3659; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; letter-spacing: -0.03em; }
.member-card.leader .member-name { color: #8a5a00; }
.member-card.waiter .member-name { color: #3f7f68; }
.member-id { margin-top: 5px; font-size: 12px; font-weight: 800; color: #9a8aa3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.member-role-row { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; }
.role-chip, .link-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 0 10px; border-radius: 8px; font-size: 11px; font-weight: 950; line-height: 1; white-space: nowrap; }
.role-chip { background: rgba(240, 220, 255, 0.75); color: #8a4dae; border: 1px solid rgba(176, 92, 201, 0.18); }
.member-card.leader .role-chip { background: rgba(255, 248, 218, .9); color: #a96e00; border-color: rgba(214, 156, 38, .32); }
.member-card.waiter .role-chip { background: rgba(236, 255, 247, .9); color: #4e9b7a; border-color: rgba(102, 190, 149, .28); }
.link-chip { background: rgba(255,255,255,0.78); color: #7c6d85; border: 1px solid rgba(226, 194, 223, 0.55); }
.member-card.is-live .link-chip { background: rgba(255, 79, 152, 0.10); color: #ff3f8d; border-color: rgba(255, 79, 152, 0.22); }
.live-title { margin-top: 12px; min-height: 34px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #7c6d85; font-size: 12px; font-weight: 800; line-height: 1.42; }
.live-title:empty { display: none; }

.rank-guide { margin-top: 28px; padding: 18px; border-radius: 15px; background: rgba(255,255,255,0.66); border: 1px solid rgba(226, 194, 223, 0.50); box-shadow: var(--shadow); }
.rank-guide-title { font-size: 14px; font-weight: 950; color: #4b3659; margin-bottom: 12px; }
.rank-list { display: flex; flex-wrap: wrap; gap: 7px; }
.rank-item { padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,0.78); border: 1px solid rgba(226, 194, 223, 0.48); color: #7c6d85; font-size: 12px; font-weight: 850; }

@media (max-width: 1020px) {
  .member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .member-hero-content { grid-template-columns: 1fr; }
  .hero-stat-card { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-row { padding: 0 14px; border-bottom: 0; border-right: 1px solid rgba(226, 194, 223, 0.48); }
  .stat-row:last-child { border-right: 0; }
}
@media (max-width: 900px) {
  .member-hero { min-height: 210px; border-radius: 10px; padding: 24px; }
  .member-hero-content { grid-template-columns: 1fr; gap: 12px; align-items: center; text-align: center; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .member-hero { position: relative; min-height: 126px; padding: 14px 10px; }
  .member-hero-content { min-height: 98px; display: flex; justify-content: center; align-items: center; text-align: center; }
  .member-hero .hero-kicker { font-size: 9px; letter-spacing: .12em; margin-bottom: 5px; }
  .member-hero .hero-title { font-size: 30px; letter-spacing: .05em; line-height: 1; }
  .member-hero .hero-sub { margin-top: 6px; font-size: 10px; line-height: 1.3; }
  .hero-stat-card { position: absolute; right: 6px; top: 6px; z-index: 3; width: auto; min-width: 72px; padding: 3px 5px; border-radius: 6px; display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 4px; background: rgba(255,255,255,0.72); box-shadow: 0 6px 14px rgba(150,94,171,0.08); }
  .stat-row { gap: 3px; padding: 0 4px 0 0; border-bottom: 0; border-right: 1px solid rgba(226, 194, 223, 0.38); }
  .stat-row:last-child { padding-right: 0; border-right: 0; }
  .stat-label { font-size: 7px; line-height: 1; }
  .stat-value { font-size: 11px; line-height: 1; }
  .member-section { margin-top: 12px; padding: 11px; border-radius: 13px; }
  .member-section:first-of-type { margin-top: 14px; }
  .group-head { margin-bottom: 8px; }
  .group-title { font-size: 16px; }
  .group-dot { width: 9px; height: 9px; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .member-card { border-radius: 12px; }
  .member-cover { height: 60px; }
  .member-photo-wrap { width: 58px; height: 58px; margin-top: -29px; padding: 3px; }
  .member-photo { border-width: 2px; }
  .member-info { padding: 7px 6px 9px; }
  .member-name { font-size: 12px; line-height: 1.12; }
  .member-id { margin-top: 3px; font-size: 9px; }
  .member-role-row { margin-top: 7px; gap: 4px; }
  .role-chip, .link-chip { min-height: 20px; padding: 0 6px; border-radius: 6px; font-size: 9px; }
  .live-title { margin-top: 6px; min-height: 24px; font-size: 10px; line-height: 1.25; }
  .live-badge { top: 7px; left: 7px; padding: 4px 7px; border-radius: 6px; font-size: 9px; }
  .rank-guide { margin-top: 18px; padding: 13px; border-radius: 12px; }
  .rank-item { padding: 5px 7px; border-radius: 7px; font-size: 10px; }
}
