:root {
  --ink: #0f172a;
  --muted: #6b7280;
  --line: #e9edf3;
  --white: #fff;
  --blue: #2563eb;
  --bg-dark: #0b0b0c;
  --container: 1400px;
  /* Added clover theme colors */
  --clover-green: #2d5f3f;
  --clover-light: #4ade80;
  --clover-dark: #1e4a2f;
}

/* SR 전용 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 헤더 */
.site-header-wrap {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #203a24;
  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);
  margin: 0 auto;
}

.header-container {
  max-width: var(--container);
  padding: 0px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-container {
  display: flex;
}

.site-header {
  width: 70%;
  display: flex;
  flex-direction: column;
  margin: auto;
}

.header-inner {
  max-width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px 0;
}

/* 로고 */
.logo img {
  height: 80px;
  display: block;
}

@media (max-width: 1024px) {
  .logo img {
    height: 60px;
    display: block;
  }
}
@media (max-width: 800px) {
  .logo img {
    height: 40px;
    display: block;
  }
}
/* 검색 (PC) */
.search-wrap {
  position: relative;
  display: flex;
  width: 60%;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 12px 4px 12px 12px;
  border-radius: 10px;
  min-width: 320px;
  margin: auto;
  transition: all 0.3s ease;
}

.search-wrap:focus-within {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(74, 222, 128, 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: #fff;
}

.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: 12px;
}

.path {
  cursor: pointer;
  padding: 10px 20px;
}

/* .user-name {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 24px;
  cursor: pointer;
  background: rgba(74, 222, 128, 0.2);
  border: 1.5px solid rgba(74, 222, 128, 0.4);
  transition: all 0.3s ease;
}

.user-name:hover {
  background: rgba(74, 222, 128, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(74, 222, 128, 0.3);
  border-color: rgba(74, 222, 128, 0.6);
} */

/* .user-logout {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 24px;
  cursor: pointer;
  background: rgba(239, 68, 68, 0.15);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  transition: all 0.3s ease;
}

.user-logout:hover {
  background: rgba(239, 68, 68, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  border-color: rgba(239, 68, 68, 0.8);
} */

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

/* .login-btn:hover,
.user-name:hover {
  background: #4a7856;
  border: 2px solid transparent;
  opacity: 0.8;
  transform: translateY(-2px);
} */

.signup-btn,
.user-logout {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  white-space: nowrap;
  width: fit-content;
  border-radius: 5px;
  text-decoration: none;
  background: #4a7856;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

/* 카테고리 내비 */
.cat-nav {
  max-width: 100%;
  background: #203a24;
  padding: 10px 0px;
}

.cat-nav ul {
  display: flex;
  justify-content: start;
  gap: 18px;
  list-style: none;
  color: #cfe0ff;
  overflow-x: auto;
  min-height: 35px;
  align-items: center;
}

.cat-nav a {
  padding: 8px 14px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-weight: 500;
}

/* .cat-nav a:hover {
  background: rgba(74, 222, 128, 0.15);
  color: #fff;
}

.cat-nav .active a {
  /* background: rgba(74, 222, 128, 0.25); */
/* border: 1px solid rgba(74, 222, 128, 0.4); */
/* color: #fff;
  font-weight: 600;
}  */

#mypageMenu {
  display: none;
  border: none;
  background: none;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
}

/* 반응형: 900 이하에서 헤더 내 검색 숨김 */
@media (max-width: 800px) {
  .cat-nav ul {
    gap: 0px;
  }
}

@media (min-width: 800px) {
  #mypageMenu {
    display: none;
  }
}
@media (max-width: 900px) {
  .search-wrap {
    display: none;
  }
}
