/* 헤더 컨테이너 */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    background-color: #fff;
    z-index: 1000;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* 헤더 내용 */
.header-content {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(20px, 3vh, 30px) clamp(25px, 5vw, 40px);
    color: #000;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0; /* flex shrink 허용 */
}

/* 로고 스타일 */
.logo {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.5vw, 15px);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0; /* 로고는 절대 축소되지 않음 */
    min-width: auto;
    width: auto; /* 컨텐츠에 맞게 자동 크기 */
}

.logo:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.logo-img {
    height: clamp(35px, 4vw, 40px);
    width: auto;
    display: block;
}

.logo-text {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 600;
    color: #000 !important;
    line-height: 1;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: visible; /* 텍스트가 보이도록 */
    flex-shrink: 0; /* 텍스트 절대 축소 안됨 */
    width: auto;
}

/* 헤더 버튼 */
.header-btn {
    background-color: #6A5AE0;
    color: #fff !important;
    border: none;
    padding: clamp(0.6rem, 1vh, 0.75rem) clamp(1.2rem, 2vw, 1.5rem);
    border-radius: 50px; /* 타원형을 위한 큰 값 */
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 8px);
    flex-shrink: 0;
    white-space: nowrap;
    /* max-width 제거 - 컨텐츠에 맞게 자동 조정 */
    width: auto;
    height: auto;
    min-height: clamp(32px, 4vh, 40px);
    box-sizing: border-box;
}

.download-img {
    height: clamp(14px, 1.5vw, 16px);
    width: auto;
}

.header-btn:hover {
    transform: scale(1.05);
}

.header-btn:active {
    transform: scale(0.98);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .header-container {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .header-content {
        width: 100%;
        padding: 15px 20px !important;
        max-width: 100%;
        box-sizing: border-box;
        gap: 10px;
    }
    
    .logo {
        gap: 8px !important;
        width: auto !important; /* 컨텐츠에 맞게 자동 크기 */
        flex-shrink: 0 !important; /* 절대 축소 안됨 */
    }
    
    .logo-img {
        height: 32px !important;
        width: 32px;
        object-fit: contain;
        flex-shrink: 0;
    }
    
    .logo-text {
        font-size: 0.85rem !important;
        line-height: 1.1;
        width: auto !important; /* 텍스트 길이에 맞게 자동 */
        word-break: keep-all !important;
        white-space: nowrap !important;
        overflow: visible !important; /* 절대 잘리지 않음 */
        flex-shrink: 0 !important; /* 절대 축소 안됨 */
    }
    
    .header-btn {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
        width: auto !important;
        flex-shrink: 1 !important; /* 버튼만 필요시 축소 가능 */
        gap: 4px !important;
        border-radius: 50px !important;
        min-height: 28px !important;
        box-sizing: border-box !important;
    }
    
    .download-img {
        height: 12px !important;
        width: auto;
    }
}

