/* /public/css/topbar.css */

/* /public/css/topbar.css */

#top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 32px;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* =========================
   공통 영역
========================= */

#top-bar .left,
#top-bar .center,
#top-bar .right {
  display: flex;
  align-items: center;
}

#top-bar span {
  margin-right: 14px;
  color: #374151;
  font-weight: 500;
}

#top-bar span:first-child {
  font-weight: 600;
  color: #111827;
}

/* 버튼 */
.topbar-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #4f7cff, #6a5cff);
  color: #ffffff;
  transition: all 0.2s ease;
}

.topbar-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* 로고 */
#top-bar .logo {
  display: flex;
  align-items: center;
}

#top-bar .logo img {
  height: 36px;       /* ⭐ 핵심: topbar(64px)에 가장 잘 맞음 */
  width: auto;        /* 비율 유지 */
  display: block;
}

/* 데스크탑 메뉴 */
#top-bar .center {
  gap: 28px;
}

#top-bar .center a {
  text-decoration: none;
  font-weight: 600;
  color: #444;
}

#top-bar .center a:hover {
  color: #4f46e5;
}

#top-bar .center .highlight {
  color: #4f46e5;
}

/* 오른쪽 영역 */
#top-bar .right {
  gap: 12px;
}

/* body 밀기 */
body {
  padding-top: 64px;
}

/* =========================
   햄버거 버튼
========================= */

.hamburger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* =========================
   모바일 메뉴
========================= */

#mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: #fff;
  display: none;
  flex-direction: column;
  border-top: 1px solid #eee;
  z-index: 999;
}

#mobile-menu a {
  padding: 16px 24px;
  border-bottom: 1px solid #f1f1f1;
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

/* =========================
   📱 모바일 전용 레이아웃
========================= */

@media (max-width: 768px) {

  /* 데스크탑 메뉴 숨김 */
  .desktop-only {
    display: none !important;
  }

   #top-bar .logo img {
    height: 30px;
  }

  .level-text {
    display: none;
  }

  /* ⭐ top-bar를 grid로 전환 */
  #top-bar {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    padding: 0 12px;
  }

  /* 햄버거: 왼쪽 */
  .hamburger {
    display: block;
    grid-column: 1;
    grid-row: 1;          /* ⭐ 이 줄이 핵심 */
    justify-self: start;
    align-self: center;
    margin: 0;        
  }

  /* 로고: 중앙 */
  #top-bar .left {
    grid-column: 2;
    justify-self: center;
  }

  /* 오른쪽: 로그인 / 아이콘 */
  #top-bar .right {
    grid-column: 3;
    justify-self: end;
  }
}

.header .depth1>li>a {
  font-size: 16px !important;
}

#top-bar nav.center a {
  font-size: 16px !important;
}

