/* ── 글로벌 네비게이션 공통 스타일 ── */
nav {
  width: 100%;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 4, 10, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.nav-logo-symbol {
  width: 36px;
  height: 36px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(192, 132, 252, 0.35);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-brand:hover .nav-logo-symbol {
  transform: scale(1.06);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.5);
}

.nav-logo-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-logo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-logo-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
  display: inline-flex;
  align-items: baseline;
}

.nav-logo-text .part-setup {
  background: linear-gradient(135deg, #ffffff 0%, #f1e8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-logo-text .part-od {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}

.logo-ko-tag {
  font-family: 'Pretendard', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 1.5px 6px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.nav-logo-tagline {
  font-family: 'Pretendard', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #ffffff;
}

.btn-create-nav {
  height: 40px;
  padding: 0 20px;
  border-radius: 99px;
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.45);
  transition: all 0.2s;
}

.btn-create-nav:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* 모바일 전용 상단 네비게이션 컨트롤 */
.mobile-nav-controls {
  display: none;
  align-items: center;
  gap: 8px;
}

.btn-mobile-maker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #e9d5ff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-mobile-maker:hover {
  background: rgba(168, 85, 247, 0.25);
}

.btn-mobile-hamburger {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-mobile-hamburger:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* 모바일 드로어 메뉴 오버레이 */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 320px;
  height: 100%;
  background: #0d0818;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px 20px;
}

.mobile-menu-overlay.active .mobile-menu-drawer {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.mobile-menu-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-close {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.2s;
}

.mobile-menu-item:hover, .mobile-menu-item:active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.mobile-menu-item.highlight {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: #f3e8ff;
}

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-badge-new {
  font-size: 10px;
  font-weight: 800;
  background: #a855f7;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: 0.05em;
}

.mobile-menu-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-dropdown { position: relative; display: flex; align-items: center; height: 70px; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: rgba(18,12,30,0.95); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 8px; min-width: 160px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 10000;
}
.nav-dropdown-menu::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  border-width: 0 6px 6px 6px; border-style: solid; border-color: transparent transparent rgba(255,255,255,0.1) transparent;
}
.nav-dropdown-menu::after {
  content: ''; position: absolute; top: -20px; left: 0; width: 100%; height: 20px; background: transparent;
}
.nav-dropdown:hover .nav-dropdown-menu { display: flex; flex-direction: column; gap: 4px; }
.nav-dropdown-menu a {
  color: rgba(255,255,255,0.7); text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 10px 14px; border-radius: 8px; transition: all 0.2s; white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .mobile-nav-controls { display: flex; }
}


