/* Navbar.css */

/* --- 기본 네비게이션 바 스타일 (PC) --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.navbar-logo {
  height: 60px;
  width: auto;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.navbar-menu li a {
  text-decoration: none;
  color: #000000;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s ease;
  font-family: 'Helvetica Neue', 'Apple SD Gothic Neo', 'Pretendard', sans-serif;
  letter-spacing: 0.5px;
}

.navbar-menu li a:hover {
  color: #888888;
}

/* 닫기 버튼과 햄버거 버튼은 PC에서 항상 숨김 */
.navbar-close-btn { display: none; }
.navbar-toggle-btn { display: none; }

/* --- 반응형 스타일 (768px 이하) --- */
@media (max-width: 768px) {
  /* 햄버거 버튼은 모바일에서 보이기 */
  .navbar-toggle-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
  }
  .navbar-toggle-btn .line {
    width: 24px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
  }
  
  /* PC용 메뉴는 숨기고, 슬라이드 메뉴 스타일 적용 */
  .navbar-menu {
    /* 기본 상태 (숨겨진 상태) */
    position: fixed;
    top: 0;
    right: 0;
    width: 50vw;
    max-width: 280px;
    height: 100vh;
    background-color: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem; /* 간격 조정 */
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }
  
  .navbar-logo {
    height: 45px;
    width: auto;
  }

  /* active 클래스가 붙었을 때 (보이는 상태) */
  .navbar-menu.active {
    transform: translateX(0);
  }
  
  .navbar-menu li a {
    /* ✨ [수정] 요청하신 대로 폰트 크기 조정 */
    font-size: 1.1rem; 
  }
  
  /* 닫기 버튼은 모바일에서 보이기 */
  .navbar-close-btn {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }
  .navbar-close-btn a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
  }
}