/* new-header-styles.css */

.new-header {
    background-color: #0f1420;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.new-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.new-logo-link {
    display: flex;
    align-items: center;
}

.new-logo {
    height: 30px;
    width: auto;
}

.new-menu-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 30px;
    padding: 0;
    z-index: 1002;
}

.new-menu-button span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #fff;
    transition: all 0.3s ease;
}

.new-menu-button-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.new-menu-button-active span:nth-child(2) {
    opacity: 0;
}

.new-menu-button-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.new-dropdown-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    background-color: #0f1420;
    width: 250px;
    height: 100vh;
    padding: 80px 20px 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    z-index: 1001;
    overflow-y: auto;
}

.new-dropdown-menu.new-menu-active {
    display: block;
}

.new-dropdown-menu a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 15px 0 15px 60px; /* 기본 왼쪽 패딩 증가 */
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative; /* 아이콘 위치 조정을 위해 */
}

.new-dropdown-menu a:last-child {
    border-bottom: none;
}

.new-dropdown-menu a:hover {
    background-color: rgba(255,255,255,0.1);
    padding-left: 65px; /* hover 시 오른쪽으로 이동 */
    padding-right: 5px; /* 오른쪽 여백 살짝 줄임 */
}

.new-dropdown-menu a::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    position: absolute;
    left: 25px; /* 아이콘 위치 조정 */
    top: 50%;
    transform: translateY(-50%);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease; /* 아이콘 이동에 트랜지션 추가 */
}

.new-dropdown-menu a:hover::before {
    left: 30px; /* hover 시 아이콘도 오른쪽으로 이동 */
}

.new-dropdown-menu a[href*="metalive"]::before {
    background-image: url('../images/icon_metalive.png');
}

.new-dropdown-menu a[href*="trend"]::before {
    background-image: url('../images/icon_trend.png');
}

.new-dropdown-menu a[href*="ailab"]::before {
    background-image: url('../images/icon_ailab.png');
}

.new-dropdown-menu a[href*="visualize"]::before {
    background-image: url('../images/icon_visualize.png');
}

.new-dropdown-menu a[href*="newsgen"]::before {
    background-image: url('../images/icon_newsgen.png');
}

.new-dropdown-menu a[href*="graphicgen"]::before {
    background-image: url('../images/icon_graphicgen.png');
}

.new-dropdown-menu a[href*="metaai"]::before {
    background-image: url('../images/icon_metaai.png');
}

.new-dropdown-menu a[href*="json"]::before {
    background-image: url('../images/icon_json.png');
}

.new-dropdown-menu a[href*="finance"]::before {
    background-image: url('../images/icon_datalab.png');
}

.new-dropdown-menu a[href*="finance_crypto"]::before {
    background-image: url('../images/icon_datalab.png');
}
.new-dropdown-menu a[href*="weather"]::before {
    background-image: url('../images/icon_datalab.png');
}

.new-dropdown-menu a[href*="gpt_is"]::before {
    background-image: url('../images/icon_datalab.png');
}
@media (max-width: 768px) {
    .new-header {
        padding: 10px 15px;
    }

    .new-logo {
        height: 25px;
    }
}
/* new-header-styles.css에 추가 또는 수정 */
@media (max-width: 768px) {
    .new-dropdown-menu {
        width: 100%;
        padding: 60px 15px 20px;
    }

    .new-dropdown-menu a {
        font-size: 16px;
        padding: 15px 0 15px 60px; /* 모바일에서 왼쪽 패딩 더 증가 */
    }

    .new-dropdown-menu a:hover {
        padding-left: 65px; /* 모바일에서 hover 시 약간 오른쪽으로 이동 */
    }

    .new-dropdown-menu a::before {
        width: 24px;
        height: 24px;
        left: 25px; /* 모바일에서 아이콘 위치 조정 */
    }

    .new-dropdown-menu a:hover::before {
        left: 30px; /* 모바일에서 hover 시 아이콘도 오른쪽으로 이동 */
    }
}

/* close menu button 추가 */
.close-menu-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 1003;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.3s ease;
}

.close-menu-button:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .close-menu-button {
        top: 15px;
        left: 15px;
        font-size: 24px;
        width: 30px;
        height: 30px;
    }
}

