/* 공통 네비게이션 바 - 홈과 동일 (캡처 화면 기준) */
.header {
  background: #28468f;
  color: #ffffff;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
}

.header .header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.header .logo-icon {
  font-size: 2rem;
}
.header .logo-icon.logo-img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  display: block;
}

.header .logo-text {
  font-family: "Noto Sans KR", "Heebo", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.header .logo-tam {
  color: #ffffff;
}
.header .logo-q {
  color: #f2a900;
}

.header-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.service-status {
  cursor: default;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.service-status .status-icon {
  font-size: 1rem;
  line-height: 1;
}

.service-status.active {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.35) 0%, rgba(74, 222, 128, 0.2) 100%);
  border-color: rgba(74, 222, 128, 0.7);
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.service-status.grace {
  background: #5b6f83;
  border: 2px solid #f2a900;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.service-status.inactive {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35) 0%, rgba(239, 68, 68, 0.2) 100%);
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  opacity: 0.95;
}

.nav-link.nav-subscribe-btn,
.nav-link.nav-subscribe-btn.cancel-subscription {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: #4168c2;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-family: "Noto Sans KR", "Heebo", sans-serif;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.nav-link.nav-subscribe-btn:hover {
  background: #5075d4;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logout-btn {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: #4168c2;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Noto Sans KR", "Heebo", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: #5075d4;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logout-btn:active,
.nav-link.nav-subscribe-btn:active {
  transform: translateY(0);
}

/* roadmap_mindmap 페이지에서도 동일한 파란 헤더 적용 (기존 흰 배경 덮어쓰기) */
body.roadmap-mindmap-page .header {
  background: linear-gradient(180deg, #2c469d 0%, #2a4395 100%);
  color: #ffffff;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border-bottom: none;
}

body.roadmap-mindmap-page .header .logo-tam {
  color: #ffffff;
}
body.roadmap-mindmap-page .header .logo-q {
  color: #f2a900;
}
