/* 기본 스타일 */
.hy-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #eee;
}

.hy-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

/* 로고 스타일 */
.hy-logo img {
    height: 20px;
    width: auto;
}

/* 데스크탑 네비게이션 */
.hy-desktop-nav {
    display: flex;
    flex-grow: 1;
    justify-content: center;
}

.hy-main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.hy-menu-item {
    position: relative;
}

.hy-menu-item > a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
}

.hy-menu-item > a:hover {
    color: #e67e22;
}

.hy-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    z-index: 100;
}

.hy-submenu li a {
    display: block;
    padding: 8px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.hy-submenu li a:hover {
    background: #f5f5f5;
    color: #e67e22;
}

/* 인증 영역 */
.hy-auth-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hy-auth-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.hy-auth-link:hover {
    color: #e67e22;
}

.hy-signup {
    background: #e67e22;
    color: white !important;
    padding: 8px 15px;
    border-radius: 20px;
}

.hy-signup:hover {
    background: #d35400;
    color: white !important;
}

.hy-username {
    font-size: 14px;
    color: #333;
    margin-right: 5px;
}

/* 모바일 토글 버튼 */
.hy-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hy-toggle-bar {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s;
}

/* 모바일 메뉴 */
.hy-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 2000;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.hy-mobile-menu.hy-show {
    transform: translateX(0);
}

.hy-mobile-container {
    padding: 20px;
}

.hy-mobile-header {
    display: flex;
    justify-content: flex-end;
    padding: 10px 0;
}

.hy-mobile-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.hy-mobile-auth {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.hy-mobile-auth-btn {
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
}

.hy-mobile-auth-btn:not(.hy-signup) {
    border: 1px solid #ddd;
    color: #333;
}

.hy-mobile-auth-btn.hy-signup {
    background: #e67e22;
    color: white;
}

.hy-mobile-nav {
    margin-top: 20px;
}

.hy-mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hy-mobile-menu-btn {
    width: 100%;
    text-align: left;
    padding: 15px;
    background: none;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hy-mobile-menu-btn:after {
    content: '+';
    font-size: 18px;
}

.hy-mobile-menu-btn.hy-open:after {
    content: '-';
}

.hy-mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9f9f9;
}

.hy-mobile-submenu li a {
    display: block;
    padding: 12px 25px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

/* 반응형 디자인 */
@media (max-width: 992px) {
    .hy-desktop-nav,
    .hy-auth-area {
        display: none;
    }
    
    .hy-mobile-toggle {
        display: block;
    }
    
    .hy-container {
        padding: 10px 15px;
    }
}

@media (min-width: 993px) {
    .hy-mobile-menu {
        display: none;
    }
}