/* ============================================================
   Melanoir — 서브페이지 공통 헤더 · 푸터 · 모바일 nav
   /pro/, /register/, /products/ 등 라이트 테마 서브페이지에 사용
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

.mnr-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  /* shell(랜딩·채용) body의 Barlow·uppercase 상속 차단 — Pro와 동일 NAV 타이포 */
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  text-transform: none;
  letter-spacing: normal;
}

.mnr-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mnr-header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.mnr-header-logo img {
  display: block;
  height: 16px;
  width: auto;
}

.mnr-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.mnr-nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #1d1d1f;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.mnr-nav {
  display: flex;
  align-items: center;
  gap: 6px 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mnr-nav a {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #424245;
  text-decoration: none;
  letter-spacing: -0.01em;
  text-transform: none;
  white-space: nowrap;
  transition: color 150ms ease;
}

.mnr-nav a:hover {
  color: #1d1d1f;
}

.mnr-nav a.is-current {
  color: #1d1d1f;
  font-weight: 600;
}

/* 랜딩·채용 — shell body(Barlow/uppercase) 상속 차단, Pro와 동일 NAV 타이포 */
body.landing .mnr-nav a,
body.recruitment .mnr-nav a {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
}

/* 모바일 햄버거 메뉴 */
@media (max-width: 480px) {
  .mnr-header-inner {
    padding: 0 16px;
  }

  .mnr-nav-toggle {
    display: flex;
  }

  .mnr-nav {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .mnr-nav.is-open {
    display: flex;
  }

  .mnr-nav a {
    padding: 14px 24px;
    font-size: 15px;
  }

  body.landing .mnr-nav a,
  body.recruitment .mnr-nav a {
    font-size: 15px;
  }
}

/* Footer */
.mnr-footer {
  padding: 60px 0;
  background: var(--color-bg, #ffffff);
  border-top: 1px solid var(--color-line, #e8e8ed);
  text-align: center;
}
.mnr-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.mnr-footer-corp {
  font-size: 13px;
  color: var(--color-text-dim, #86868b);
  line-height: 1.8;
  margin-bottom: 16px;
}
.mnr-footer-nav {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.mnr-footer-nav a {
  font-size: 12px;
  color: #b0b0b8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== 다크 변형 (랜딩 헤더 통일용) ===== */
.mnr-header[data-theme="dark"]{
  background: rgba(0, 0, 0, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.16);
}
.mnr-header[data-theme="dark"] .mnr-header-logo img{ filter: none; } /* 흰 로고 그대로 */
.mnr-header[data-theme="dark"] .mnr-nav a{ color: rgba(255, 255, 255, 0.86); }
.mnr-header[data-theme="dark"] .mnr-nav a:hover,
.mnr-header[data-theme="dark"] .mnr-nav a.is-current{ color: #fff; }
.mnr-header[data-theme="dark"] .mnr-nav-toggle span{ background: #fff; }

@media (max-width: 480px){
  .mnr-header[data-theme="dark"] .mnr-nav{
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.16);
  }
}
