/* 다랑파이어 공통 상단 헤더 — index.html / news.html / insurance.html / portal.html에서 공유
   화면(페이지) 이동 후에도 동일한 상단 메뉴가 유지되도록 header.css + 아래 header markup을 그대로 재사용할 것 */
.header {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    overflow-x: auto;
    overflow-y: hidden;
    transition: left .1s, width .1s;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    box-sizing: border-box;
}

.header *,
.header *::before,
.header *::after {
    box-sizing: border-box;
}

.header-container {
    width: 95%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.logo-area,
.nav-menu,
.header-btns {
    flex-shrink: 0;
}

.logo-area {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

.logo-area span {
    color: #ff6b35;
}

.logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: inline-block;
}

.nav-menu {
    display: flex;
    gap: 22px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #ff6b35;
}

/* 다랑킵 포인트 컬러 스타일 */
.nav-menu .keep-highlight {
    color: #ff6b35;
    font-weight: 700;
}

.header-btns {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-text-login {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 15px;
}

.btn-top-signup {
    background-color: #ff6b35;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-top-signup:hover {
    background-color: #e0531f;
}

.btn-text-logout {
    display: none;
    text-decoration: none;
    color: #8b94a8;
    font-weight: 600;
    font-size: 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 9px 16px;
    cursor: pointer;
    font-family: inherit;
}

.btn-text-logout:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

/* 플랜별 뱃지(로고) 스타일 */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: -0.2px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.plan-badge .plan-icon { font-size: 13px; line-height: 1; }

.plan-free_trial {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.35);
}

.plan-basic {
    background: rgba(56, 139, 253, 0.15);
    color: #7cb2ff;
    border-color: rgba(56, 139, 253, 0.4);
}

.plan-pro {
    background: rgba(45, 212, 191, 0.15);
    color: #5eead4;
    border-color: rgba(45, 212, 191, 0.4);
}

.plan-premium {
    background: linear-gradient(90deg, rgba(255, 176, 32, 0.2), rgba(255, 107, 53, 0.2));
    color: #ffc35c;
    border-color: rgba(255, 176, 32, 0.45);
}

.plan-special {
    background: rgba(236, 72, 153, 0.15);
    color: #f9a8d4;
    border-color: rgba(236, 72, 153, 0.4);
}

.plan-master {
    background: linear-gradient(90deg, #ff6b35, #ffb020);
    color: #1a0e00;
    border-color: transparent;
}

/* 로그인 시 노출되는 좌측 사이드 네비게이션과 헤더 위치 맞춤 */
body.has-sidenav {
    padding-left: 220px;
}

body.has-sidenav .header {
    left: 220px;
    width: calc(100% - 220px);
}

@media (max-width: 968px) {
    body.has-sidenav { padding-left: 0; }
    body.has-sidenav .header { left: 0; width: 100%; }
}
