.header {
  width: 100%;
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  width: var(--inner-width);
  margin: 0 auto;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  width: 160px;
  height: 50px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  text-decoration: none;
}

.gnb {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  height: 100%;
}

.gnb-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.gnb-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  cursor: pointer;
}

.gnb-item:hover .gnb-link {
  color: var(--color-primary);
}

.dropdown {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-primary);
  min-width: 140px;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
  pointer-events: none;
}

.gnb-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--color-text-sub);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
}

.dropdown a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-login {
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;

  text-decoration: none;
}

.btn-signup {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

/* ── 햄버거 버튼 (PC에서는 숨김) ── */
.ham-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.ham-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  transform-origin: center;
}

.ham-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.ham-btn.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.ham-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── 오버레이 ── */
.mob-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.mob-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* ── 드로어 ── */
.mob-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: var(--color-bg-white);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mob-drawer.is-open {
  transform: translateX(0);
}

/* 드로어 — 유저 영역 */
.mob-user {
  padding: 36px 24px 24px;
  border-bottom: 1px solid var(--color-border);
}

.mob-user-label {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
}

.mob-user-actions {
  display: flex;
  gap: 10px;
}

.mob-user-actions a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 10px 0;
  border-radius: 8px;
}

/* 드로어 — 메뉴 */
.mob-nav {
  flex: 1;
}

.mob-nav-item {
  border-bottom: 1px solid var(--color-border);
}

.mob-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-text);
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.mob-nav-item.has-sub .arrow {
  font-size: 20px;
  line-height: 1;
  color: var(--color-text-muted);
  transition: transform 0.25s ease;
}

.mob-nav-item.has-sub.is-open .arrow {
  transform: rotate(90deg);
}

/* 드로어 — 서브메뉴 아코디언 */
.mob-subnav {
  max-height: 0;
  overflow: hidden;
  background: #fafafa;
  transition: max-height 0.3s ease;
}

.mob-nav-item.is-open .mob-subnav {
  max-height: 300px;
}

.mob-subnav a {
  display: block;
  padding: 13px 24px 13px 36px;
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  text-decoration: none;
  transition: color 0.15s;
}

.mob-subnav a:hover {
  color: var(--color-primary);
}
