/* ═══════════════════════════════════
   FITMATCH — nav.css  v2
   + 드로어 X 닫기 버튼
   + SVG 로고 마크
   + 예약 뱃지
═══════════════════════════════════ */

/* ── NAVBAR ── */
.nav {
  position: fixed; top:0; left:0; right:0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--px); height: var(--nav-h);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

/* ── LOGO ── */
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; letter-spacing: 0.04em;
  color: var(--black); cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; z-index: 1;
}
.nav-logo span { color: var(--coral); }

/* SVG 로고 마크 */
.logo-mark {
  width: 30px; height: 30px; flex-shrink: 0;
}

/* ── DESKTOP LINKS ── */
.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
  position: relative;
  padding: 7px 16px; border-radius: 40px;
  font-size: 13px; font-weight: 700;
  border: none; background: transparent; color: var(--gray3);
  transition: all .18s;
}
.nav-link:hover  { color: var(--black); background: var(--off); }
.nav-link.active { color: var(--white); background: var(--black); }

/* ── 예약 뱃지 ── */
.nav-badge {
  position: absolute; top: 2px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--coral); color: var(--white);
  border-radius: 8px; font-size: 10px; font-weight: 800;
  display: none; align-items: center; justify-content: center;
  line-height: 1; font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── CTA ── */
.nav-cta {
  padding: 9px 20px; border-radius: 40px;
  background: var(--coral); color: var(--white);
  border: none; font-size: 13px; font-weight: 700;
  transition: all .18s; box-shadow: 0 4px 12px rgba(255,56,92,.3);
}
.nav-cta:hover { background: var(--coral-dk); transform: translateY(-1px); }

/* AI 매칭 강조 버튼 */
.nav-ai-cta {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  overflow: visible;
}
.nav-ai-cta::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 44px;
  border: 1.5px solid rgba(255,56,92,0.5);
  animation: navAiPulse 2s ease-in-out infinite;
}
@keyframes navAiPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.12); }
}

/* ── HAMBURGER ── */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none;
  padding: 6px; border-radius: var(--radius); transition: background .15s; z-index: 601;
}
.hamburger:hover { background: var(--off); }
.ham-line {
  display: block; width: 100%; height: 2px; background: var(--black);
  border-radius: 2px; transition: transform .3s ease, opacity .2s, width .3s;
  transform-origin: center;
}
.hamburger.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .ham-line:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── DRAWER OVERLAY ── */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.38); z-index: 590;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ── MOBILE DRAWER ── */
.mobile-drawer {
  position: fixed; top: 0; left: 0; right: 0; height: 100vh;
  background: var(--white); z-index: 600;
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 1rem) var(--px) 2rem;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.32,.72,0,1);
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }

/* ── 드로어 닫기 버튼 (X) ── */
.drawer-close-btn {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--off); border: 1px solid var(--gray1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--gray3); cursor: pointer;
  transition: background .15s, color .15s;
  z-index: 1;
}
.drawer-close-btn:hover { background: var(--black); color: var(--white); }

/* ── 드로어 상단 로고 ── */
.drawer-brand {
  display: flex; align-items: center; gap: 8px; margin-bottom: 1.5rem;
}
.drawer-brand-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 0.04em; color: var(--black);
}
.drawer-brand-text span { color: var(--coral); }

.drawer-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 1.5rem; }

.drawer-link {
  position: relative;
  padding: 13px 16px; border-radius: var(--radius);
  font-size: 16px; font-weight: 700;
  background: none; border: none; color: var(--gray3);
  text-align: left; transition: all .18s;
}
.drawer-link:hover  { background: var(--off); color: var(--black); }
.drawer-link.active { background: var(--black); color: var(--white); }

/* ── AI CTA (모바일 햄버거 옆 노출) ── */
.mobile-ai-cta {
  display: none; /* 모바일에서만 표시 */
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 40px;
  background: var(--coral);
  color: var(--white);
  border: none;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  box-shadow: 0 4px 14px rgba(255,56,92,0.35);
  white-space: nowrap;
}
.mobile-ai-cta:hover { background: var(--coral-dk); transform: translateY(-1px); }
.mobile-ai-cta:active { transform: scale(0.97); }

.drawer-divider { border: none; border-top: 1px solid var(--gray1); margin-bottom: 1.5rem; }

.drawer-cta {
  width: 100%; padding: 14px; border-radius: 40px;
  background: var(--coral); color: var(--white);
  border: none; font-size: 15px; font-weight: 700; transition: background .18s;
}
.drawer-cta:hover { background: var(--coral-dk); }

.drawer-socials { display: flex; gap: 10px; margin-top: auto; padding-top: 2rem; }
.drawer-soc {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--off); border: 1px solid var(--gray1);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--gray3);
  font-family: 'Barlow Condensed', sans-serif; text-decoration: none;
  transition: background .15s, color .15s;
}
.drawer-soc:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-ai-cta { display: flex; }
}
@media (max-width: 390px) {
  .nav-logo { font-size: 22px; }
  .drawer-link { font-size: 15px; padding: 11px 14px; }
}
