/**
 * 테스트 페이지 상단 헤더 - 좌: 메인 버튼, 우: 카테고리 링크
 * 이미지: tests/images/header-main.png 추가 시 자동 적용
 * #navbar-container: 공통 컴포넌트 주입 시 내비 높이만큼 공간 확보(레이아웃 밀림 방지)
 */
#navbar-container {
  min-height: 64px; /* .test-header padding 0.5rem*2 + .test-header-main 48px */
}

.test-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.test-header-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 4px;
  text-decoration: none;
  color: #333;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  background: #f5f0ed;
  transition: background 0.2s;
}

.test-header-main:hover {
  background: #e8e0db;
  color: #5d4e47;
}

.test-header-main img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.test-header-main-fallback {
  font-size: 0.8rem;
}

.test-header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.test-header-nav a {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  color: #555;
  text-decoration: none;
  border-radius: 8px;
  background: #f0ebe8;
  transition: all 0.2s;
}

.test-header-nav a:hover {
  background: #8D6E63;
  color: #fff;
}

.test-header-nav .sticker {
  font-size: 0.55rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  margin-right: 4px;
}

.test-header-nav .sticker.hit {
  background: linear-gradient(135deg, #e53935, #c62828);
  color: #fff;
}

.test-header-nav .sticker.new {
  background: linear-gradient(135deg, #43a047, #2e7d32);
  color: #fff;
}
