/* 공통 슬라이드 메뉴(궁합 사이드바와 같은 모양). style-layout.css를 쓰지 않는 페이지에서 쓴다. */
/* ── 버거 메뉴 버튼 ─────────────────────────────────────────── */
.burger-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: none; border: none; cursor: pointer;
  color: inherit; padding: 0; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.burger-btn:hover { background: rgba(0,0,0,.04); }
.burger-icon { display: flex; flex-direction: column; gap: 4.5px; width: 18px; }
.burger-icon span {
  display: block; height: 2px; border-radius: 1px;
  background: currentColor; transition: all .2s;
}

/* ── 슬라이드 네비게이션 ───────────────────────────────────── */
.nav-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(24,20,38,.42); z-index: 998;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.nav-backdrop.open { display: block; }

.slide-nav {
  position: fixed; top: 0; right: -300px; width: 280px; height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(250,248,253,.97) 100%);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-left: 1px solid rgba(109,40,217,.10);
  border-radius: 20px 0 0 20px;
  z-index: 999;
  box-shadow: -16px 0 48px rgba(31,41,55,.14);
  transition: right .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.slide-nav.open { right: 0; }

.slide-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px; border-bottom: 1px solid rgba(109,40,217,.08);
}
.slide-nav-title {
  font-size: .72rem; font-weight: 700; color: rgba(42,31,42,.5);
  letter-spacing: 1.2px; text-transform: uppercase;
}
.slide-nav-close {
  width: 32px; height: 32px; display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; color: rgba(42,31,42,.5);
  border-radius: 8px; cursor: pointer; background: none; border: none;
  transition: background .15s, color .15s;
}
.slide-nav-close:hover { background: rgba(109,40,217,.07); color: #5d4a7e; }

.slide-nav-list {
  list-style: none; padding: 12px 0; margin: 0;
}
.slide-nav-list li { list-style: none; }
.slide-nav-list a {
  display: flex; align-items: center; gap: 12px;
  margin: 2px 10px; padding: 12px 14px; border-radius: 12px;
  font-size: .92rem; font-weight: 600;
  color: rgba(42,31,42,.82); text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
}
.slide-nav-list a:hover {
  background: rgba(109,40,217,.06); color: #5d4a7e;
  transform: translateX(2px);
}
.slide-nav-sub a { font-size: .85rem; font-weight: 500; color: rgba(42,31,42,.5); }

.nav-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 9px;
  font-size: .82rem; font-weight: 600;
  font-family: "Noto Serif KR", "Nanum Myeongjo", serif;
  letter-spacing: 0;
}
.nav-icon-saju       { background: rgba(28,37,65,.10); color: #1c2541; }
.nav-icon-gunghap    { background: rgba(168,69,106,.10); color: #a8456a; }
.nav-icon-jeongsaeng { background: rgba(124,58,237,.10); color: #7c3aed; }
.nav-icon-kids       { background: rgba(22,163,74,.10);  color: #16a34a; }
.nav-icon-family     { background: rgba(13,148,136,.10); color: #0d9488; }
.nav-icon-charm      { background: rgba(225,29,99,.10);   color: #e11d63; }
.nav-icon-money      { background: rgba(20,83,45,.10);   color: #14532d; }
.nav-icon-celebs     { background: rgba(100,116,139,.10); color: #64748b; }

.slide-nav-divider {
  height: 1px; background: rgba(109,40,217,.09); margin: 8px 22px;
}

.slide-nav-foot {
  margin-top: auto;
  padding: 16px 16px 22px;
  border-top: 1px solid rgba(109,40,217,.08);
}
.slide-nav-foot .footer-contact {
  display: flex; justify-content: center; width: 100%;
  box-sizing: border-box;
}


.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: #FEE500;
  color: #3A1D1D;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
  /* button 태그로도 쓰이므로 브라우저 기본 스타일 제거 */
  border: 0;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.footer-contact:hover { opacity: .85; }
.footer-contact svg { flex-shrink: 0; }
