﻿/*최상단메뉴*/
/* ================= HEADER ================= */
#ht-header-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 70px;
    padding: 0 40px;
    background: linear-gradient(to right, #081823, #050f17);
    color: #fff;
    z-index: 9999;
	margin-left: -10cm;
}
/* ================= MAIN MENU ================= */
#ht-main-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#ht-main-menu > li {
    position: relative;
}

/* MAIN MENU LINK */
#ht-main-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 6px 6px;
    color: #d6e4f0;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
}

/* MAIN ICON */
#ht-main-menu > li > a::before {
    content: "";
    width: 50px;
    height: 30px;
    margin-right: 6px;
    background: url("/images/icon-menu.png") center no-repeat;
    background-size: contain;
}

/* HOVER */
#ht-main-menu > li > a:hover {
    color: #6cf;
}

/* ================= LOGO MENU EXCEPTION ================= */
#ht-main-menu > li.ht-logo-item > a::before {
    content: none !important;
}

#ht-main-menu > li.ht-logo-item > a {
    padding: 0;
    min-width: auto;
}

#ht-main-menu > li.ht-logo-item img {
    height: 42px;
    display: block;
}

/* ================= SUB MENU ================= */
.ht-sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: linear-gradient(to bottom, #0b1f2c, #07131d);
    padding: 14px 0;
    border: 1px solid rgba(80,160,200,0.25);
    box-shadow: 0 12px 30px rgba(0,0,0,0.55);
    z-index: 10000;
}

.ht-has-sub:hover > .ht-sub-menu {
    display: block;
}

/* SUB MENU LINK (아이콘 핵심) */
.ht-sub-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: #d6e4f0;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

/* SUB ICON (절대 유지) */
.ht-sub-menu li a::before {
    content: "";
    width: 26px;
    height: 26px;
    background: url("/images/icon-menu.png") center no-repeat;
    background-size: contain;
    flex-shrink: 0;
    display: inline-block;
}

.ht-sub-menu li a:hover {
    background: linear-gradient(to right, rgba(100,180,230,0.15), rgba(100,180,230,0));
    color: #fff;
}

/* ================= USER AREA ================= */
#ht-user-area {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
}

#ht-user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

#ht-user-btn img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

/* ================= USER PANEL (정답 위치) ================= */
#ht-user-btn-wrap{
    position: relative; /* 기준 */
}

#ht-user-panel{
    display:none;
    position:absolute;

    top: calc(100% + 10px); /* 버튼 바로 아래 */
    right: -20px;           /* ← 여기로 우측 미세조정 */

    width:320px;
    background:linear-gradient(180deg,#0b1f2c,#061822);
    border:1px solid rgba(120,180,220,.25);
    border-radius:10px;
    box-shadow:0 20px 40px rgba(0,0,0,.6);
    padding:16px;
    z-index:10000;
}

#ht-user-panel.open{
    display:block;
}



/* LOGIN BTN */
.ht-login-btn, .ht-join-btn {
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.ht-login-btn { background: #f0c040; color: #000; }
.ht-join-btn { background: #333; color: #fff; }




/*최상단메뉴*/

/* ================= USER PANEL UI ================= */
#ht-user-panel{
    display:none;
    position:fixed;
    top:72px;
    right:40px;

    width:320px;
    background:linear-gradient(180deg,#0b1f2c,#061822);
    border:1px solid rgba(120,180,220,.25);
    border-radius:10px;
    box-shadow:0 20px 40px rgba(0,0,0,.6);
    padding:16px;
    z-index:10000;
}

#ht-user-panel.open{
    display:block;
}

/* 상단 유저 정보 */
.ht-user-info{
    display:flex;
    align-items:center;
    gap:12px;
    padding-bottom:14px;
    border-bottom:1px solid rgba(255,255,255,.08);
    margin-bottom:14px;
}

.ht-user-info strong{
    font-size:16px;
    color:#fff;
    display:block;
}

.ht-user-info span{
    font-size:12px;
    color:#9bb6c9;
}

/* 마이페이지 마우스올리면 자동펼침 */
#ht-user-btn-wrap:hover #ht-user-panel {
    display: block;
}
.ht-user-info {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #2f3136;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.ht-user-info strong {
    color: #fff;
    font-size: 16px;
}

.ht-user-info span {
    color: #b9bbbe;
    font-size: 12px;
    margin-top: 4px;
}

/* 리스트 */
.ht-user-list{
    list-style:none;
    padding:0;
    margin:0;
}

.ht-user-list li{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 0;
    font-size:14px;
    color:#cfe7f7;
}

/* 숫자 강조 */
.ht-user-list b{
    font-size:15px;
    font-weight:700;
    color:#ffd44d;
}
/* 리스트 - tow */
.ht-user-list-tow{
    display:flex;              /* ⭐ 핵심 */
    gap:14px;                  /* 항목 사이 간격 */
    list-style:none;
    padding:0;
    margin:0;
}

.ht-user-list-tow li{
    display:flex;
    align-items:center;
    gap:6px;                   /* 텍스트와 숫자 간격 */
    font-size:14px;
    color:#cfe7f7;
    white-space:nowrap;        /* 줄바꿈 방지 */
}

/* 숫자 강조 */
.ht-user-list-tow b{
    font-size:15px;
    font-weight:700;
    color:#ffd44d;
}


/* 액션 버튼 */
.ht-user-actions{
    display:flex;
    gap:10px;
    margin-top:16px;
}

.ht-user-actions a{
    flex:1;
    text-align:center;
    padding:8px 0;
    font-size:14px;
    font-weight:600;
    text-decoration:none;
    border-radius:6px;
}

/* 마이페이지 */
.ht-user-actions a:first-child{
    background:linear-gradient(to right,#1e90ff,#4db8ff);
    color:#fff;
}

/* 로그아웃 */
.ht-user-actions a:last-child{
    background:#2a2a2a;
    color:#ccc;
}

.ht-user-actions a:hover{
    filter:brightness(1.15);
}

#ht-user-btn{
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
    padding:4px 8px;
    border-radius:20px;
    transition:background .2s;
}

#ht-user-btn:hover{
    background:rgba(255,255,255,.08);
}

#ht-user-btn span{
    font-weight:600;
    color:#ffd44d;
}




/*로그인 전후*/
.ht-login-btn,
.ht-join-btn {
    display: inline-block;
    padding: 8px 14px;
    margin-left: 8px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
}

.ht-login-btn {
    background: #f0c040;
    color: #000;
}

.ht-join-btn {
    background: #333;
    color: #fff;
}


/* ================= MENU LINK (TEXT STRUCTURE) ================= */

/* a 태그를 flex로 유지 (아이콘/텍스트 공존 핵심) */
#ht-main-menu > li > a.ht-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 200px;
    padding: 8px 12px;

    background: linear-gradient(to bottom, #0b1f2c, #081823);
}

/* 텍스트 래퍼 */
.ht-menu-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

/* 타이틀 (큰 글자) */
.ht-menu-title {
    font-size: 18px;
    font-weight: 700;
    color: #bfe9ff;
    letter-spacing: -0.3px;
}

/* 설명 (작은 글자) */
.ht-menu-desc {
    font-size: 12px;
    font-weight: 400;
    color: #6fa3c5;
    margin-top: 2px;
}

/* 화살표 */
.ht-menu-arrow {
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid #8fbad6;
    border-bottom: 2px solid #8fbad6;
    transform: rotate(45deg);
}

/* hover 효과 */
#ht-main-menu > li > a.ht-menu-link:hover .ht-menu-title {
    color: #6cf;
}

#ht-main-menu > li > a.ht-menu-link:hover .ht-menu-desc {
    color: #bfe9ff;
}



/* ================================
   DARK INPUT FULL UNIFIED STYLE
   ================================ */
/* 입력 라인 전체 */
/* ============================
   Registration Modal 통일 스타일
   기존 템플릿 구조 유지
============================ */

/* 모든 input wrap 박스 공통 디자인 */
#registration-modal .input-wrap {
    width: 100%;
    height: 48px;                         /* ★ 통일된 높이 */
    background: #151515 !important;        /* ★ 검정 박스 통일 */
    border: 1px solid #303030 !important;  /* ★ 동일 테두리색 */
    border-radius: 4px;
    margin: 10px 0 22px 0;                 /* ★ 통일된 간격 */
    padding: 0 !important;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* input 필드 공통 스타일 */
#registration-modal .input-wrap input {
    width: 100%;
    height: 100%;
    background: transparent !important;  /* 내부 배경 제거 */
    border: none !important;
    outline: none !important;
    padding: 0 14px 0 54px !important;   /* ★ 아이콘 고려한 동일 패딩 */
    color: #ffffff !important;
    font-size: 15px;
}

/* Focus/hover 효과 */
#registration-modal .input-wrap:hover,
#registration-modal .input-wrap:focus-within {
    border-color: #f0c86d !important;    /* Gold highlight */
    background: #1f1f1f !important;
}

/* 아이콘 위치 보정 (기존 템플릿 방식 유지) */
#registration-modal .input-wrap.name input,
#registration-modal .input-wrap.password input {
    padding-left: 54px !important;        /* 아이콘 공간 확보 */
}

/* Email도 동일하게 적용 */
#registration-modal .input-wrap.email input {
    padding-left: 54px !important;
}



/* 최하단부 */
footer {
    background: #0d2228 url("../images/footer-bg.jpg") center bottom no-repeat;
    padding: 70px 0 30px;

    display: flex;
    flex-direction: column;
    align-items: center;   /* 가로 중앙 */
    text-align: center;    /* 텍스트 중앙 */
}

/* 컨테이너도 중앙 정렬 */
footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* footer 메뉴 */
.footer-menu {
    display: flex;
    justify-content: center; /* 가로 중앙 */
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-menu li {
    margin: 0 30px;
}

.footer-menu a {
    font-size: 18px;
    color: #4b646b;
    text-transform: uppercase;
}

.footer-menu a:hover {
    color: #86cee2;
}

/* 로고 */
.footer-logo {
    margin: 40px 0 35px;
}

.footer-logo img {
    width: 335px;
    display: block;
    margin: 0 auto; /* 이미지 확실한 중앙 */
}

/* 카피라이트 */
.copyright {
    font-family: 'Open Sans', sans-serif;
    color: #88bfab;
    text-align: center;
}


