/* ========== 공통 헤더 컴포넌트 스타일 ========== */

/* 헤더 기본 스타일 */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #4E63D9;
    box-shadow: 0 1px 3px rgba(29, 38, 89, 0.1);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 로고 스타일 */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.logo-mark {
    background: #4E63D9;
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    border: 2px solid #4E63D9;
    box-shadow: 0 2px 8px rgba(78, 99, 217, 0.3);
}

.logo-text {
    font-size: 1.1rem;
    color: #1D2659;
    font-weight: 700;
    display: none;
}

/* 네비게이션 메뉴 */
.nav {
    display: flex;
    gap: 1rem;
    flex: 1;
    justify-content: center;
    margin-left: 3rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav a {
    color: #2E3C8C;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
    font-size: 0.85rem;
    text-decoration: none;
}

.nav a:hover {
    color: #4E63D9;
}

/* 모바일 토글 버튼 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #1D2659;
    border-radius: 2px;
    transition: all 0.3s;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 60px);
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        transition: right 0.3s;
        gap: 1.5rem;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    .nav a {
        font-size: 1rem;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .header-inner {
        padding: 1rem;
    }

    .logo-mark {
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
    }
}
