/* ===== 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: rgba(27, 19, 56, 0.72);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--v5-line-soft);
}

.site-header__inner {
  max-width: 720px;
  margin: 0 auto;
  min-height: 66px;
  padding: 10px clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.site-header__spacer { flex: 1; }

/* Logged-in nickname */
.site-header__nickname {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 600;
  color: var(--v5-lavender);
  margin-right: 4px;
  white-space: nowrap;
}

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

.site-header__hamburger-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(196, 181, 253, 0.08);
  border: 1px solid var(--v5-line-soft);
  color: var(--v5-lavender);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(13, 9, 24, 0.24);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-header__hamburger-btn:hover {
  background: rgba(196, 181, 253, 0.13);
  border-color: var(--v5-line);
  color: var(--v5-text);
}

.site-header__auth-dropdown {
  display: none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(var(--app-mobile-width, 390px) - 24px), calc(100vw - 24px));
  top: 76px;
  max-height: min(620px, calc(100dvh - 92px));
  overflow-y: auto;
  background: linear-gradient(172deg, rgba(34, 25, 82, 0.98), rgba(21, 15, 40, 0.96));
  border: 1px solid var(--v5-line);
  border-radius: 24px;
  z-index: 200;
  box-shadow: 0 24px 70px rgba(13, 9, 24, 0.68);
  padding: 8px;
}
.site-header__auth-dropdown.open { display: block; }
.site-header__auth-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: var(--v5-text-dim);
  text-decoration: none;
  font-size: 14px;
  border-radius: 10px;
  font-family: var(--font-kr);
  font-weight: 500;
  white-space: nowrap;
}
.site-header__auth-dropdown a:hover {
  background: var(--v5-surface-strong);
  color: var(--v5-text);
}
.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: var(--v5-line-soft);
  margin: 8px 0;
}

/* 섹션 레이블 */
.sh-section-label {
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v5-text-faint);
  font-family: var(--font-kr);
}

/* 언어 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: var(--v5-text-dim);
  text-decoration: none;
  font-size: 12px;
  border-radius: 8px;
  font-family: var(--font-kr);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-lang-grid a:hover {
  background: var(--v5-surface-strong);
  color: var(--v5-text);
}

.v5-site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--v5-line-soft);
  padding: 42px 24px 48px;
  background: rgba(13, 9, 24, 0.35);
  text-align: center;
}

.v5-site-footer__halo {
  position: absolute;
  left: 50%;
  bottom: -120px;
  width: 280px;
  height: 280px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.26), transparent 68%);
  pointer-events: none;
}

.v5-site-footer__inner { position: relative; z-index: 1; }

.v5-site-footer__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--v5-text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.v5-site-footer__brand em { color: var(--v5-lavender); font-style: normal; }
.v5-site-footer__logo { width: 112px; height: auto; }
.v5-site-footer__tag { margin: 16px auto 0; color: var(--v5-text-dim); font-size: 13px; }
.v5-site-footer__partners { margin: 8px auto 0; color: var(--v5-text-faint); font-size: 12px; line-height: 1.6; }
.v5-site-footer__links { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: var(--v5-text-faint); font-size: 12px; }
.v5-site-footer__links a { color: var(--v5-text-dim); text-decoration: none; }
.v5-site-footer__links a:hover { color: var(--v5-text); text-decoration: underline; }
