/* GymPick 웹 폴백 페이지 — 앱과 동일한 톤(미니멀, 흰 배경, 정보 중심, 모바일 기준)
   브랜드 컬러: #0A0A0A(블랙) + #C6FF00(라임그린) */

:root {
  --ink: #0a0a0a;
  --ink-sub: #6b6b6b;
  --line: #e7e7e7;
  --lime: #c6ff00;
  --bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
    'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

#root {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  min-height: 100vh;
}

/* ── 헤더 ───────────────────────────────────────────── */

.gym-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.wordmark {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin: 0 0 12px;
}

.gym-header h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.3;
}

.gym-location {
  font-size: 13px;
  color: var(--ink-sub);
  margin: 0;
}

.gym-total {
  font-size: 13px;
  color: var(--ink);
  margin: 10px 0 0;
  font-weight: 600;
}

/* ── 부위 섹션 ──────────────────────────────────────── */

.muscle-section {
  margin-bottom: 28px;
}

.muscle-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
}

.muscle-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-sub);
}

.machine-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.machine-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.machine-thumb {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 8px;
  background: #f4f4f4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.machine-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.machine-thumb--empty {
  background: #f4f4f4;
}

.machine-info {
  min-width: 0;
  flex: 1;
}

.machine-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.machine-brand {
  font-size: 12px;
  color: var(--ink-sub);
  margin: 0 0 6px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--lime);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 999px;
}

/* ── 상태 화면 (로딩/에러/빈 상태) ─────────────────────── */

.state {
  padding: 80px 12px;
  text-align: center;
  color: var(--ink-sub);
}

.state-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}

.state-sub {
  font-size: 13px;
  margin: 0;
}

.spinner {
  width: 22px;
  height: 22px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--ink);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── 푸터 ───────────────────────────────────────────── */

.page-footer {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.page-footer p {
  font-size: 11px;
  color: var(--ink-sub);
  margin: 0;
}
