/* ==========================================
   HEADER / NAVBAR
   ========================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  margin-top: 0;
  background: var(--bg-nav, rgba(18, 20, 29, 0.95));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark, #232736);
  z-index: 1000;
  padding: 12px 16px;
  box-sizing: border-box;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

/* 브랜드 로고 */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary, #ffffff);
  font-weight: 800;
  font-size: 1.1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo {
  height: 36px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
}

.brand-title {
  letter-spacing: -0.3px;
}

/* 오늘의 접속자 수 뱃지 */
/* 방문자 카운터 캡슐 뱃지 스타일 */
.visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #12141d;
  border: 1px solid #232736;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8e95a5;
  white-space: nowrap;
}

.visitor-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.visitor-item strong {
  font-family: inherit;
  font-weight: 800;
}

/* TODAY 숫자는 핑크색 */
.visitor-item.today strong {
  color: #ff2a6d;
}

/* TOTAL 숫자는 시안(민트/파랑)색 */
.visitor-item.total strong {
  color: #00e5ff;
}

/* 구분선 */
.visitor-divider {
  color: #232736;
}

/* 네비게이션 메뉴 */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted, #8e95a5);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-pink, #ff2a6d);
}

/* ==========================================
   반응형 미디어 쿼리 (Mobile & Tablet)
   ========================================== */
@media (max-width: 850px) {
  .navbar {
    padding: 8px 12px;
  }

  .nav-container {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: 
      "brand visitor"
      "menu  menu";
    gap: 8px 6px;
    align-items: center;
  }

  .brand {
    grid-area: brand;
    justify-self: start;
  }

  .visitor-counter {
    grid-area: visitor;
    justify-self: end;
    padding: 4px 8px;
    font-size: 0.68rem;
    gap: 4px;
  }

  .nav-menu {
    grid-area: menu;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
    margin-top: 2px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-around;
    gap: 8px;
  }
}

/* 소형 모바일 화면 (가로 폭 410px 이하) 최적화 */
@media (max-width: 410px) {
  .brand-title {
    font-size: 0.92rem;
  }

  .nav-logo {
    height: 30px;
  }

  .visitor-counter {
    padding: 3px 6px;
    font-size: 0.62rem;
    gap: 3px;
  }

  .visitor-item .label {
    font-size: 0.6rem;
  }
}