/* 상단 헤더 전용 CSS */

/* 헤더 컨테이너 */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    border-bottom: 1px solid rgb(51 65 85); /* panel-border */
    background-color: rgb(30 41 59); /* panel-bg */
    padding-left: 2rem; /* px-8 */
    padding-right: 2rem;
    padding-top: 0.75rem; /* py-3 */
    padding-bottom: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* 헤더 왼쪽 영역 */
.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* gap-6 */
}

/* 로고 영역 */
.header-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
}

.header-logo-icon {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1;
}

.header-logo-text {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.015em;
    margin: 0;
    padding: 0;
}

/* 네비게이션 메뉴 */
.header-nav {
    display: none; /* hidden md:flex */
}

@media (min-width: 768px) {
    .header-nav {
        display: flex;
        align-items: center;
        gap: 1.5rem; /* gap-6 */
        margin-left: 1rem; /* ml-4 */
    }
}

/* 네비게이션 링크 - 기본 */
.header-nav-link {
    color: rgb(148 163 184); /* slate-400 */
    font-weight: 500;
    transition: color 150ms;
    text-decoration: none;
}

.header-nav-link:hover {
    color: #3b82f6; /* primary */
}

/* 네비게이션 링크 - 활성화 */
.header-nav-link-active {
    color: #3b82f6; /* primary */
    font-weight: 600;
    border-bottom: 2px solid #3b82f6; /* border-b-2 border-primary */
    text-decoration: none;
}

/* 헤더 오른쪽 영역 */
.header-right {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    gap: 1rem; /* gap-4 */
    align-items: center;
}

/* 검색 영역 */
.header-search-container {
    display: flex;
    flex-direction: column;
    min-width: 10rem; /* min-w-40 */
    height: 2.5rem; /* h-10 */
    max-width: 16rem; /* max-w-64 */
}

.header-search-wrapper {
    display: flex;
    width: 100%;
    flex: 1;
    align-items: stretch;
    border-radius: 0.5rem; /* rounded-lg */
    height: 100%;
    overflow: hidden;
}

.header-search-icon {
    color: rgb(148 163 184); /* slate-500 */
    display: flex;
    background-color: rgb(30 41 59); /* slate-800 */
    align-items: center;
    justify-content: center;
    padding-left: 1rem; /* pl-4 */
}

.header-search-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: none;
    background-color: rgb(30 41 59); /* slate-800 */
    outline: none;
    height: 100%;
    padding-left: 0.5rem; /* pl-2 */
    padding-right: 1rem; /* px-4 */
    font-size: 0.875rem; /* text-sm */
    font-weight: 400;
    color: white;
}

.header-search-input::placeholder {
    color: rgb(148 163 184); /* slate-500 */
}

.header-search-input:focus {
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5); /* focus:ring-1 focus:ring-primary/50 */
}

/* 헤더 버튼 영역 */
.header-buttons {
    display: flex;
    gap: 0.5rem; /* gap-2 */
}

.header-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem; /* rounded-lg */
    height: 2.5rem; /* h-10 */
    width: 2.5rem; /* w-10 */
    background-color: rgb(30 41 59); /* slate-800 */
    color: rgb(203 213 225); /* slate-300 */
    transition: background-color 150ms;
    border: none;
    cursor: pointer;
}

.header-button:hover {
    background-color: rgb(51 65 85); /* slate-700 */
}

/* 사용자 아바타 */
.header-avatar {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 1;
    background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuCQCHFIV843ch5SX-11IKcqho00NWxIFClveilzW8WEq23WFxYpCsTANSUU9XEIFGFApVevc12tk1o8KtWsBqy1EN1SwK_W2fqs7Q4OG6eC08u9Smc8iyTsYYCCpAi4-jC2XocaQiNco72J9Hkip8NYaAKSolzfJt1gOpsrgdag9Z-ULRd_dFPKmgGho_RsXII2vmqYaWmPTQdnO0bdvgtfeKU-4aRPdwzgjA74rX0gsmSuW7p4wigzHUaQufYyGANdFiToeLXSa-X8");
    border-radius: 9999px; /* rounded-full */
    height: 2.5rem; /* h-10 */
    width: 2.5rem; /* w-10 */
    border: 1px solid rgb(51 65 85); /* border-panel-border */
}
