/* ==========================================================================
   nav.css — 공통 상단 네비 (전 화면 공유)
   포함: .nav-bar, .nav-inner, .nav-logo, .nav-tabs, .nav-tab(+변형),
         .nav-right, .nav-register, .nav-child-selector, .child-avatar
   의존: --teal-dark (variables 또는 wordlist/workbook.css :root 에서 정의)
   ========================================================================== */

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--teal-dark);
  height: 56px;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 로고 */
.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: white;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo span { font-weight: 400; opacity: 0.85; }

/* 탭 */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-tab {
  padding: 8px 16px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s;
}
.nav-tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav-tab.active {
  color: var(--teal-dark);
  font-weight: 700;
  background: #fff;
}
.nav-tab.nav-tab-coming {
  color: rgba(255,255,255,0.45);
}
.nav-tab.nav-tab-coming:hover {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
}

/* 우측 영역 */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-register {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  font-family: inherit;
  transition: all 0.15s;
}
.nav-register:hover {
  background: rgba(255,255,255,0.25);
}

/* 아이 선택자 + 아바타 (예약) */
.nav-child-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
  font-weight: 500;
}
.child-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
