:root {
  --bg: #ffffff;
  --text: #111;
  --icon-bg: rgba(240, 240, 245, 0.8);  /* iOS 스타일 배경 */
  --icon-color: #1c1c1e;                /* iOS dark text color */
}

.dark-mode {
  --bg: #1e1e1e;
  --text: #f0f0f0;
  --icon-bg: #333;
  --icon-color: #ddd;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

.jg-navbar-modern {
  position: fixed;
  top: 10px;
  /* 화면 양쪽에서 16px씩 띄우기 */
  left: 8px;
  right: 8px;
  /* 가운데 정렬을 위한 auto 마진 */
  margin: 0 auto;
  /* 최대 너비는 1200px, 그 이상은 늘어나지 않음 */
  max-width: 1300px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg, #fff);
  border-radius: 40px;
  /* 기존 패딩 유지 */
  padding: 8px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),  /* 아주 얇은 외곽선 */
    0 4px 6px rgba(0, 0, 0, 0.08);   /* 살짝 퍼지는 그림자 */
  height: 64px;
  /* width 설정 제거 (left/right로 크기 결정) */
  /* width: 100%; */
  z-index: 1001;
}

.jg-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-weight: bold;
  font-size: clamp(16px, 4vw, 24px);;
  color: var(--text);
}

.jg-logo img {
  width: 32px;
  height: 32px;
}

.jg-menu {
  display: flex;
  gap: 30px;
  font-weight: 500;
  font-size: 15px;
  align-items: center;
}

.jg-menu a {
  color: var(--text);
  text-decoration: none;
}

.jg-dropdown {
  position: relative;
}

.jg-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  z-index: 999;
  min-width: 160px;
  flex-direction: column;
}

.jg-dropdown:hover .jg-dropdown-menu {
  display: flex;
}

.jg-dropdown-menu a {
  padding: 5px 10px;
  white-space: nowrap;
  color: var(--text);
  text-decoration: none;
  transition: 0.2s;
}

.jg-dropdown-menu a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.jg-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.jg-icon-circle {
  width: 44px;
  height: 44px;
  background: var(--icon-bg);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  stroke-width: 1.5;

  box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* 미세한 입체감 */
  border: 0.5px solid rgba(0,0,0,0.05);   /* 섬세한 외곽선 */
  backdrop-filter: blur(6px);             /* 유리처럼 뿌옇게 */
  -webkit-backdrop-filter: blur(6px);     /* Safari 대응 */
}

.jg-icon-circle i {
  color: var(--icon-color);
}

.jg-icon-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;      /* 원형 클리핑 */
  object-fit: cover;       /* 꽉 채우기 */
  display: block;
}

.jg-profile {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #ccc;
}

.jg-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jg-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.jg-menu-toggle div {
  width: 22px;
  height: 2px;
  background: var(--text);
}

.jg-mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 70%;
  background: var(--bg);
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  flex-direction: column;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.jg-mobile-menu-drawer.active {
  transform: translateX(0%);
}

.jg-mobile-icons-tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.jg-mobile-icons-tab .jg-icon-group {
  display: flex;
  gap: 10px;
}

.jg-mobile-icons-tab .jg-close-btn {
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

.jg-mobile-menu-drawer .jg-menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.jg-mobile-menu-drawer .jg-menu a {
  padding: 10px 5px;
  font-size: 16px;
}

.jg-mobile-menu-drawer .jg-dropdown-menu {
  display: none;
  padding-left: 10px;
  flex-direction: column;
  box-shadow: none;
  position: static;
}

.jg-mobile-menu-drawer .jg-dropdown.open .jg-dropdown-menu {
  display: flex;
}

@media (max-width: 768px) {
  .jg-pc-menu {
    display: none;
  }
  .jg-menu-toggle {
    display: flex;
  }
}


.detail-button {
  border-radius: 8px;
  transition: all 0.2s ease;
}
.detail-button:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}