/* ==========================================================================
   mypage.css - Common layout for ALL mypage_* pages
   Sidebar navigation + page wrapper (sidebar + content grid)
   Scoped under .mypage class prefix
   ========================================================================== */

/* --- Page Banner (top area below header) --- */
.mypage__banner {
  background-color: var(--color-static-white, #fff);
  border-bottom: 1px solid var(--color-neutral-300, #dde2eb);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.mypage__banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 0 28px;
}

.mypage__banner-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mypage__banner-title {
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.5;
  letter-spacing: -0.32px;
  color: var(--color-neutral-900, #303342);
  margin: 0;
}

.mypage__banner-subtitle {
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.16px;
  color: var(--color-primary-600, #4165ff);
  margin: 0;
}

.mypage__banner-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  text-align: right;
}

.mypage__banner-lab-name {
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.2px;
  color: var(--color-neutral-700, #6c7286);
  margin: 0;
  white-space: nowrap;
}

.mypage__banner-email {
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.16px;
  color: var(--color-neutral-700, #6c7286);
  margin: 0;
}

/* --- Main Layout Wrapper (sidebar + content) --- */
.mypage__wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 0 80px;
  background-color: var(--color-neutral-50, #f5f7fa);
}

.mypage__body {
  background-color: var(--color-neutral-50, #f5f7fa);
  width: 100%;
  min-height: 600px;
}

/* --- Sidebar Navigation --- */
.mypage__sidebar {
  width: 282px;
  min-width: 282px;
  background-color: var(--color-static-white, #fff);
  border: 1px solid var(--color-neutral-300, #dde2eb);
  border-radius: 8px;
  box-shadow: 0px 1px 4px 0px rgba(12, 12, 13, 0.05);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-sizing: border-box;
  overflow: hidden;
  position: sticky;
  top: 80px;
}

.mypage__nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.15s ease;
  overflow: hidden;
}

.mypage__nav-item:hover {
  background-color: var(--color-neutral-100, #f2f6fa);
}

.mypage__nav-label {
  flex: 1;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.16px;
  color: var(--color-neutral-900, #303342);
}

/* Active / Selected state */
.mypage__nav-item--active .mypage__nav-label {
  font-weight: 700;
  color: var(--color-primary-600, #4165ff);
}

/* Hidden / Muted state (logout, withdrawal) */
.mypage__nav-item--muted .mypage__nav-label {
  color: var(--color-neutral-600, #949aac);
}

/* --- Content Area --- */
.mypage__content {
  flex: 1;
  min-width: 0;
  width: 894px;
}

/* 공통: 마이페이지 매칭 내역 (기업/연구소 회원정보) */
.mp-match-history {
  margin-top: 0;
  width: 100%;
}

.mp-match-history__block {
  width: 100%;
}

.mp-match-history__block + .mp-match-history__block {
  margin-top: 28px;
  width: 100%;
}

.mp-match-history__heading {
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-neutral-900, #303342);
  margin: 0 0 12px;
}

.mp-match-history__empty {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 14px;
  color: var(--color-neutral-600, #6c7286);
  margin: 0;
  padding: 12px 0;
}

.mp-match-history__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.mp-match-history__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-neutral-200, #e5e9f0);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 14px;
  width: 100%;
}

.mp-match-history__row:last-child {
  border-bottom: none;
}

.mp-match-history__main {
  flex: 1;
  min-width: 200px;
}

.mp-match-history__title {
  font-weight: 600;
  color: var(--color-neutral-900, #303342);
  margin: 0 0 4px;
}

.mp-match-history__title-link {
  color: inherit;
  text-decoration: none;
}

.mp-match-history__title-link:hover {
  color: var(--color-primary-700, #2c48d9);
  text-decoration: underline;
}

.mp-match-history__meta {
  margin: 0;
  font-size: 13px;
  color: var(--color-neutral-600, #6c7286);
  line-height: 1.45;
}

.mp-match-history__date {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--color-neutral-500, #949aac);
  white-space: nowrap;
}

.mp-match-history__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  background: var(--color-primary-100, #e8edff);
  color: var(--color-primary-700, #2c48d9);
}

.mp-match-history__badge--muted {
  background: var(--color-neutral-200, #e5e9f0);
  color: var(--color-neutral-700, #6c7286);
}
