/* ========================================
   햄버거 + 사이드 nav drawer (전 페이지 공통)
   premium-report.css 처럼 style.css 안 쓰는 페이지에서도 동작하도록 분리.
   var(--*) 토큰은 폴백 포함.
   ======================================== */

/* 햄버거 버튼 */
.app-header__hamburger {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  color: var(--text-heading, #1A1410);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-right: 2px;
}
.app-header__hamburger:active { background: rgba(0,0,0,0.05); }
.app-header__hamburger svg { width: 22px; height: 22px; }

/* drawer overlay (배경 dim) */
.nav-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(14,11,31,0);
  z-index: 1090;
  pointer-events: none;
  transition: background 0.24s ease;
}
.nav-drawer-overlay.is-open {
  background: rgba(14,11,31,0.48);
  pointer-events: auto;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* drawer panel (좌측 슬라이드) */
.nav-drawer {
  position: fixed;
  top: 0; left: 0;
  width: min(86vw, 340px);
  height: 100vh;
  background: #FBF8F0;
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex; flex-direction: column;
  box-shadow: 8px 0 32px rgba(14,11,31,0.18);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  font-family: 'Noto Sans KR', sans-serif;
}
.nav-drawer.is-open { transform: translateX(0); }

.nav-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(26,20,16,0.08);
}
.nav-drawer__brand {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Noto Serif KR', serif;
  font-size: 17px; font-weight: 700;
  color: #1A1410;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-drawer__brand img { width: 28px; height: 28px; object-fit: contain; }
.nav-drawer__close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  color: #6B5F57;
  background: transparent; border: 0;
  cursor: pointer;
}
.nav-drawer__close:active { background: rgba(0,0,0,0.05); }
.nav-drawer__close svg { width: 22px; height: 22px; }

/* 로그인/프로필 영역 */
.nav-drawer__user {
  display: flex; align-items: center; gap: 12px;
  padding: 18px;
  background: linear-gradient(135deg, #FFFCF5 0%, #FFF8E7 100%);
  border-bottom: 1px solid rgba(26,20,16,0.08);
}
.nav-drawer__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8C667, #D4AF37);
  color: #0E0B1F;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif KR', serif;
  font-weight: 700; font-size: 16px;
  flex-shrink: 0;
}
.nav-drawer__user-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.nav-drawer__user-name { font-size: 14.5px; font-weight: 700; color: #1A1410; }
.nav-drawer__user-meta { font-size: 12px; color: #6B5F57; }
.nav-drawer__user-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: #0E0B1F; color: #FBF8F0;
  font-size: 13px; font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  flex-shrink: 0;
}

/* 메뉴 리스트 */
.nav-drawer__nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.nav-drawer__group { padding: 10px 0; }
.nav-drawer__group + .nav-drawer__group { border-top: 1px solid rgba(26,20,16,0.08); }
.nav-drawer__group-title {
  padding: 8px 22px 4px;
  font-size: 11px; font-weight: 700;
  color: #6B5F57;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.nav-drawer__link {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 22px;
  color: #1A1410;
  font-size: 14.5px; font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.nav-drawer__link:active,
.nav-drawer__link:focus-visible { background: rgba(232,198,103,0.10); }
.nav-drawer__link svg { width: 20px; height: 20px; flex-shrink: 0; color: #6B5F57; }
.nav-drawer__link[aria-current="page"] {
  color: #0E0B1F;
  background: rgba(232,198,103,0.14);
  font-weight: 700;
}
.nav-drawer__link[aria-current="page"] svg { color: #C9A227; }

/* footer */
.nav-drawer__footer {
  padding: 12px 22px 18px;
  border-top: 1px solid rgba(26,20,16,0.08);
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 11.5px;
  color: #6B5F57;
}
.nav-drawer__footer a { color: #6B5F57; text-decoration: none; }
.nav-drawer__footer a:hover { color: #1A1410; }

/* body 스크롤 잠금 */
body.has-drawer-open { overflow: hidden; }

/* premium 페이지 dark theme 햄버거 */
.top-bar .top-bar__hamburger { color: #FBF8F0; }
.top-bar .top-bar__hamburger:active { background: rgba(255,255,255,0.08); }
