/* ================================================================
   RideLink — 공유 상단 네비게이션 (단일 소스)
   ================================================================
   모든 페이지가 이 파일을 로드한다. index.css / common.css 의 옛 nav 규칙은
   이 파일이 나중에 로드되며 덮어쓴다. 네비 스타일은 여기서만 수정할 것.
   (과거엔 index.css / common.css 가 nav 를 각자 정의해 페이지마다 달라졌다.)

   스타일 기준: linklabs 상단 메뉴 — 불투명 솔리드 배경(반투명 아님),
   넓은 링크 간격, 큰 로고, 현재 위치 하단 밑줄.
   ================================================================ */

.navbar {
    position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 1000;
    /* 불투명 솔리드: 히어로/본문이 네비 뒤로 비쳐 보이지 않도록(과거 반투명 문제 해결) */
    background: #0a0a0f;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 24px rgba(0, 0, 0, 0.4);
    transition: background 0.3s;
}
.nav-inner {
    max-width: var(--container-max); margin: 0 auto;
    padding: 0 24px; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
}

/* 로고: linklabs 처럼 크게. 아이콘 + 워드마크 */
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; overflow: hidden; border: 1.5px solid rgba(255,255,255,0.15); flex-shrink: 0; }
.brand-icon img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.5px; line-height: 1; color: var(--text-primary); }

/* 링크: 넓은 간격, 큰 폰트, 현재 위치 하단 밑줄 */
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a { position: relative; font-size: 1.05rem; font-weight: 600; color: rgba(255,255,255,0.7); text-decoration: none; padding: 4px 0; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--primary); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* CTA */
.nav-cta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.25rem; border-radius: 100px; font-size: 0.9rem; font-weight: 700; background: var(--gradient-brand); color: #000; text-decoration: none; white-space: nowrap; transition: transform 0.3s, box-shadow 0.3s; }
.nav-cta:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(0, 229, 255, 0.35); }

/* 모바일 */
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 0.5rem; }
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: #0a0a0f; z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { position: relative; font-size: 1.3rem; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--primary); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-cta { display: none; } /* 모바일에선 드로어에 '곧 출시' 항목이 있으므로 숨김 */
    .brand-name { font-size: 1.3rem; }
}
