@charset "UTF-8";
/* mypage.css — 마이페이지 */

/* 본문 */
.mypage-section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}
.mypage-section-head .member-form__section-title { margin: 0; }
.mypage-form-card .member-card__head { text-align: left; }
.mypage .form-control[readonly] { background: #fafafa; color: var(--ink-500); }

/* 마이페이지 탭 */
.mypage-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 24px;
  box-shadow: inset 0 -2px 0 var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.mypage-tabs::-webkit-scrollbar { display: none; }
.mypage-tab {
  flex-shrink: 0;
  padding: 12px 18px;
  border-bottom: 2px solid transparent;
  font-size: 14.5px; font-weight: 700;
  color: var(--ink-500);
  white-space: nowrap;
  text-decoration: none;
  transition: var(--tr-fast);
}
.mypage-tab:hover { color: var(--ink-900); }
.mypage-tab.is-active { color: var(--kor-red); border-bottom-color: var(--kor-red); }
.mypage-tab:focus-visible { outline: 2px solid var(--kor-red); outline-offset: -2px; }

/* 관심정보함 */
.fav-filter {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
}
.fav-filter__cats { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.fav-filter__count { font-size: 13px; color: var(--ink-500); }
.fav-filter__count b { color: var(--kor-red); }

.fav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fav-grid[hidden] { display: none; }
.fav-card {
  display: flex; flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  color: inherit;
  text-decoration: none;
  transition: var(--tr-base);
}
.fav-card:hover { border-color: var(--kor-blue); box-shadow: var(--shadow-cyan); transform: translateY(-2px); }
.fav-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.fav-card__title { font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--ink-900); }
.fav-card__sub { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-500); }
.fav-card__sub svg { flex-shrink: 0; }
.fav-card__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.fav-card__org { font-size: 12.5px; font-weight: 600; color: var(--ink-500); }
.fav-card__org-line { font-size: 12px; color: var(--ink-400); }
.fav-card__top-link { font-size: 12.5px; font-weight: 600; color: var(--kor-red); }
.fav-card__note { font-size: 11.5px; font-weight: 400; color: var(--ink-400); }
.fav-card__divider { margin-top: auto; border-top: 1px solid var(--line); }
.fav-card__foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-500); }
.fav-card__date { color: var(--ink-500); }
.fav-card__more { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--kor-red); }
.fav-card__row { display: flex; gap: 14px; }
.fav-card__thumb {
  flex-shrink: 0;
  width: 140px; height: 132px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg-soft);
}
.fav-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fav-card__row-body { display: flex; flex-direction: column; justify-content: center; gap: 7px; min-width: 0; }
.fav-card__fav {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 28px; height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--kor-red);
  cursor: pointer;
}
.fav-card__foot .fav-card__fav { margin-left: auto; }
.fav-card__fav svg { width: 15px; height: 15px; fill: currentColor; }
.fav-card__fav:hover { background: var(--bg-soft); }
.fav-empty {
  padding: 70px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-400);
}
.fav-empty[hidden] { display: none; }

/* 회원 탈퇴 */
.withdraw-dialog { max-width: 560px; }
.withdraw-form {
  display: flex; flex-direction: column;
  flex: 1;
  min-height: 0;
}
.withdraw-lead {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--ink-900);
}
.withdraw-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  counter-reset: withdraw;
}
.withdraw-list li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--line);
  counter-increment: withdraw;
}
.withdraw-list li::before {
  content: counter(withdraw);
  position: absolute; left: 0; top: 13px;
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--kor-red-50);
  color: var(--kor-red);
  font-size: 12px; font-weight: 700;
}
.withdraw-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
  color: var(--ink-900);
}
.withdraw-list p { margin: 0; font-size: 13px; line-height: 1.6; }
.withdraw-list em { font-style: normal; font-weight: 600; color: var(--kor-red); }
.withdraw-agree { font-weight: 600; color: var(--ink-900); }

/* Responsive */
@media (max-width: 960px) {
  .fav-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .fav-grid { grid-template-columns: 1fr; }
}
