:root {
  --container: 1400px;
  --ink: #0f172a;
  --muted: #6b7280;
  --line: #e9edf3;
  --white: #fff;
  --clover-green: #2d5f3f;
  --clover-light: #4ade80;
  --clover-dark: #1e4a2f;
}

/* 공통 컨테이너 */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* 헤더 전체 래퍼 (sticky) */
.site-header-wrap {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #9566cd;
  color: #fff;
  border-bottom: 1px solid rgba(74, 222, 128, 0.2);
  backdrop-filter: saturate(150%) blur(6px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* 헤더 내부 컨테이너 */
.site-header {
  width: 100%;
}

.header-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 20px; /* 위아래 조금 줄임 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* 로고 + 검색 + 유저영역 정렬 */
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 로고 */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 60px;
  display: block;
}

@media (max-width: 1024px) {
  .logo img {
    height: 48px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .logo {
    flex: 1 0 100%;
    justify-content: center;
  }
}

/* 검색 (PC) */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(163, 9, 183, 0.3);
  padding: 10px 4px 10px 12px;
  border-radius: 10px;
  min-width: 240px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.search-wrap:focus-within {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(126, 3, 167, 0.5);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.search-wrap input {
  border: 0;
  outline: 0;
  flex: 1;
  background: transparent;
  color: #746f6f;
}

.search-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-ic {
  position: absolute;
  right: 12px;
  opacity: 0.7;
  font-size: 16px;
}

/* 유저 박스 */
.user-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 버튼들 */
.login-btn,
.user-name {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  width: fit-content;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.signup-btn,
.user-logout {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  white-space: nowrap;
  width: fit-content;
  border-radius: 5px;
  text-decoration: none;

  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.signup-btn:hover,
.user-logout:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* 카테고리 네비게이션 */
.nav-container.cat-nav {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cat-nav ul {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  list-style: none;
  color: #cfe0ff;
  overflow-x: auto;
  align-items: center;
}

.cat-nav a {
  padding: 6px 12px;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-weight: 500;
}

@media (max-width: 900px) {
  .search-wrap {
    display: none; /* 모바일에서 검색 숨김 */
  }

  .header-inner {
    justify-content: space-between;
  }

  .user-box {
    margin-left: auto;
  }
}
