/* ===== B★STAR unified site header ===== */
/* Uses hardcoded oklch() values — works with both global.css and bstar-design.css */

#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(0.10 0.05 290 / 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo */
.site-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-header__logo-img {
  height: 45px;
  width: auto;
  display: block;
}

.site-header__spacer { flex: 1; }

/* Logged-in nickname */
.site-header__nickname {
  font-size: 0.85rem;
  font-weight: 500;
  color: oklch(0.88 0.005 295);
  margin-right: 10px;
  white-space: nowrap;
}

/* Hamburger + dropdown */
.site-header__hamburger { position: relative; }

.site-header__hamburger-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: oklch(1 0 0 / 0.06);
  border: 1px solid oklch(1 0 0 / 0.10);
  color: oklch(0.985 0.005 295);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.site-header__auth-dropdown {
  display: none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, calc(100vw - 20px));
  top: 62px;
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  background: oklch(0.16 0.07 292);
  border: 1px solid oklch(1 0 0 / 0.12);
  border-radius: 14px;
  z-index: 200;
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.5);
  padding: 4px;
}
.site-header__auth-dropdown.open { display: block; }
.site-header__auth-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: oklch(0.72 0.02 295);
  text-decoration: none;
  font-size: 14px;
  border-radius: 10px;
  font-family: 'Pretendard Variable','Pretendard',system-ui,sans-serif;
  font-weight: 500;
  white-space: nowrap;
}
.site-header__auth-dropdown a:hover {
  background: oklch(1 0 0 / 0.06);
  color: oklch(0.985 0.005 295);
}
.site-header__auth-dropdown .sh-logout {
  color: oklch(0.70 0.22 25);
}
.site-header__auth-dropdown .sh-logout:hover {
  background: oklch(0.70 0.22 25 / 0.12);
  color: oklch(0.70 0.22 25);
}

/* 섹션 구분선 */
.sh-divider {
  height: 1px;
  background: oklch(1 0 0 / 0.08);
  margin: 4px 0;
}

/* 섹션 레이블 */
.sh-section-label {
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(0.5 0.02 295);
  font-family: 'Pretendard Variable','Pretendard',system-ui,sans-serif;
}

/* 언어 2열 그리드 */
.sh-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 0 4px 4px;
}
.sh-lang-grid a {
  display: block;
  padding: 7px 10px;
  color: oklch(0.65 0.02 295);
  text-decoration: none;
  font-size: 12px;
  border-radius: 8px;
  font-family: 'Pretendard Variable','Pretendard',system-ui,sans-serif;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-lang-grid a:hover {
  background: oklch(1 0 0 / 0.06);
  color: oklch(0.985 0.005 295);
}
