/* 마이페이지 (담당 D). 디자인 템플릿 MY SPACE 스타일. 공통 클래스(app.css) 재사용. */

.me-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; margin-bottom: 4px; }
.me-top .eyebrow { margin: 0; }
.me-top-actions { display: flex; gap: 8px; }

/* 프로필 카드 */
.profile-card { display: flex; align-items: center; gap: 15px; padding: 20px; margin-top: 14px;
  border-radius: var(--radius); background: var(--primary-soft); border: 1px solid var(--primary-mid); }
.profile-avatar { display: grid; place-items: center; width: 58px; height: 58px; flex: none;
  border-radius: 18px; background: var(--primary); color: #fff; font-size: 26px; font-weight: 800; }
.profile-avatar.emoji { background: #fff; border: 1px solid var(--primary-mid); }
.profile-info { flex: 1; min-width: 0; }
.profile-info strong { display: block; font-size: 19px; font-weight: 820; letter-spacing: -.4px; }
.profile-info .profile-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.profile-edit { flex: none; }

/* 통계 */
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat-card { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 16px 8px;
  border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: center; }
.stat-card .stat-value { font-size: 23px; font-weight: 850; letter-spacing: -1px; }
.stat-card .stat-label { font-size: 11px; color: var(--muted); font-weight: 650; }
.stat-card[aria-disabled="true"] { opacity: .75; }

/* 로그인 안내 카드 */
.guest-card { padding: 24px 20px; margin-top: 16px; border-radius: var(--radius); background: var(--primary-soft);
  border: 1px solid var(--primary-mid); text-align: center; }
.guest-card .icon { width: 34px; height: 34px; color: var(--primary); }
.guest-card h2 { margin: 10px 0 6px; font-size: 19px; }
.guest-card p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.me-section-title { margin: 26px 0 10px; font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .3px; }

/* 목록 카드 공통 (여행/방문/리뷰) */
.record-card { display: block; padding: 16px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.record-card .record-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.record-card .record-title { font-size: 15px; font-weight: 780; letter-spacing: -.3px; }
.record-card .record-meta { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.record-card .record-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.record-row-art { display: flex; gap: 12px; }
.record-row-art .place-art { width: 58px; height: 64px; flex: none; }
.record-row-art .record-body { flex: 1; min-width: 0; }

.visit-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); }

/* 설정 스위치 */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 56px; padding: 12px 4px; border-bottom: 1px solid #f0f0f5; }
.switch-row:last-child { border-bottom: 0; }
.switch-row .switch-label { font-size: 14px; font-weight: 650; }
.switch-row .switch-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 400; }
.switch { position: relative; width: 50px; height: 30px; flex: none; border: 0; border-radius: 999px;
  background: #d7d9e2; transition: background .18s; }
.switch[aria-checked="true"] { background: var(--primary); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; transition: transform .18s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

.info-block { padding: 16px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.info-block h3 { margin: 0 0 6px; font-size: 14px; font-weight: 760; }
.info-block p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.info-block ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
