@charset "UTF-8";
/*
 *  File Name : /hub_common/css/gnb.css
 *  Description : 헤더 1단 공용 — 로고 · 버튼 네 종 · 프로필 · 드롭다운
 *  Page : 허브 · 플라자
 */

/*
 * 허브 layout.css 에서 값 그대로 옮긴 것임. 허브 쪽에는 같은 규칙을 남기지 않음
 *
 * 변수는 쓰는 쪽이 정함 — 허브는 base.css · layout.css, 플라자는 assets/css/gnb.css
 * 못 찾았을 때를 대비해 var() 에 허브 값을 적어 둠
 *
 * 여기 없는 것 — 틀 넓이 · 아래 선 · 워드마크
 * 아래 선은 허브가 2단 탭바에, 플라자가 제 .gnb__inner 에 가짐
 */

/* gnb — 글꼴을 여기서 못 박음. 허브는 body 에서 같은 값을 받지만 플라자는 못 받음 */
.gnb {background: var(--c-nav, #240075); font-family: var(--ft-body, 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif);}
.gnb__inner {display: flex; align-items: center; justify-content: space-between; height: var(--gnb-h, 60px);}
.gnb__left {display: flex; align-items: center;}

/* gnb__logo */
.gnb__logo {position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: var(--touch-min, 48px); height: var(--touch-min, 48px);}
.gnb__logo img {width: 42px; height: 44px; object-fit: contain;}
.gnb__logo::after {content: ''; position: absolute; top: 50%; left: 50%; width: var(--touch-min, 48px); height: var(--touch-min, 48px); transform: translate(-50%, -50%);}

/* gnb__actions */
.gnb__actions {display: flex; align-items: center; gap: 30px;}

/*
 * 버튼 네 종 — Create Shortcut(허브) · Check Out Hub(플라자) · LOG IN · PLAY NOW
 * back 은 아래로 비어져 나오는 밑판, front 는 윗판, ::before 는 윗광, ::after 는 밑그늘
 */
.gnb__shortcut,
.gnb__hublink,
.gnb__login,
.gnb__playnow {position: relative; border-radius: 8px; color: #fafafa; font-weight: 700;}
.gnb__shortcut-back,
.gnb__hublink-back,
.gnb__login-back,
.gnb__playnow-back {position: absolute; z-index: 0; left: 0; top: 0; width: 100%; height: 100%; border-radius: 8px;}
.gnb__shortcut-front,
.gnb__hublink-front,
.gnb__login-front,
.gnb__playnow-front {display: flex; align-items: center; justify-content: center; position: absolute; z-index: 1; left: 0; top: 0; width: 100%;}
.gnb__shortcut-front::before, .gnb__shortcut-front::after,
.gnb__hublink-front::before,  .gnb__hublink-front::after,
.gnb__login-front::before,    .gnb__login-front::after,
.gnb__playnow-front::before,  .gnb__playnow-front::after {content: ''; position: absolute; opacity: .3;}
.gnb__shortcut-front::before,
.gnb__hublink-front::before,
.gnb__login-front::before,
.gnb__playnow-front::before {border-radius: 6px 6px 0 0;}
.gnb__shortcut-front::after,
.gnb__hublink-front::after,
.gnb__login-front::after,
.gnb__playnow-front::after {border-radius: 0 0 6px 6px;}
.gnb__shortcut-txt,
.gnb__shortcut-ico,
.gnb__hublink-txt,
.gnb__login-txt,
.gnb__playnow-txt {position: relative;}
.gnb__shortcut-txt,
.gnb__hublink-txt,
.gnb__login-txt,
.gnb__playnow-txt {-webkit-text-stroke-width: 2px; paint-order: stroke fill;}

/* gnb__shortcut · gnb__hublink — 보라. 껍데기가 같고 폭만 다름 */
.gnb__shortcut,
.gnb__hublink {overflow: hidden; height: 38px; box-shadow: 0 1px 2px 1px rgba(28,31,38,.06), 0 1px 2px rgba(28,31,38,.1); font-size: 18px;}
.gnb__shortcut {width: 192px;}
.gnb__hublink {width: 259px;}
.gnb__shortcut-back,
.gnb__hublink-back {border: 1px solid transparent;
	background:
		linear-gradient(#2313af, #2313af) padding-box,
		linear-gradient(180deg, #7c5eff 0%, #2620d4 100%) border-box;}
.gnb__shortcut-front,
.gnb__hublink-front {gap: 4px; height: 36px; padding: 0 12px;
	background: linear-gradient(180deg, #6d4cff 0%, #3a1ce6 100%);}
.gnb__shortcut-front::before,
.gnb__shortcut-front::after,
.gnb__hublink-front::before,
.gnb__hublink-front::after {left: 3px; right: 2px; height: 15px;}
.gnb__shortcut-front::before,
.gnb__hublink-front::before {top: 2px; background: linear-gradient(180deg, #937bff 0%, rgba(255,255,255,0) 61.5%);}
.gnb__shortcut-front::after,
.gnb__hublink-front::after {bottom: 2px; background: linear-gradient(180deg, rgba(22,65,172,0) 0%, #15015c 100%);}
.gnb__shortcut-txt,
.gnb__hublink-txt {-webkit-text-stroke-color: #4728ec;}
.gnb__shortcut-ico {width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='20' viewBox='0 0 14 20' fill='none'%3E%3Cpath d='M1.40039 0.375H12.5996C12.869 0.375 13.1294 0.483921 13.3223 0.680664C13.5154 0.877692 13.625 1.14687 13.625 1.42871V19.3008L7.20703 15.0391L7 14.9004L6.79297 15.0391L0.375 19.3008V1.42871C0.375 1.14687 0.484647 0.877692 0.677734 0.680664C0.846527 0.508446 1.06688 0.403402 1.2998 0.379883L1.40039 0.375Z' fill='%23FAFAFA' stroke='%234728EC' stroke-width='0.75'/%3E%3C/svg%3E") center/14px 20px no-repeat;}

/* gnb__login */
.gnb__login {width: 130px; height: 40px; box-shadow: 0 2px 2px rgba(0,0,0,.3); font-size: 20px;}
.gnb__login-back {background: linear-gradient(180deg, #094099 91.28%, #0e60e5 122.67%);}
.gnb__login-front {height: 37px; border: 1px solid transparent; border-radius: 8px;
	background:
		linear-gradient(180deg, #00c9ff 0%, #0079ea 100%) padding-box,
		linear-gradient(180deg, #7dfbff 0%, #00aae3 100%) border-box;}
.gnb__login-front::before,
.gnb__login-front::after {left: 2px; right: 2px;}
.gnb__login-front::before {top: 2px; height: 15px; background: linear-gradient(180deg, #f3f9ff 0%, rgba(255,255,255,0) 61.5%);}
.gnb__login-front::after {bottom: 2px; height: 16px; background: linear-gradient(180deg, rgba(0,157,247,0) 0%, #0033d9 100%);}
.gnb__login-txt {line-height: 1; -webkit-text-stroke-color: #0084ff;}

/* gnb__playnow */
.gnb__playnow {width: 130px; height: 38px; box-shadow: 0 2px 2px rgba(0,0,0,.3); font-size: 19px;}
.gnb__playnow-back {background: linear-gradient(180deg, #004814 91.28%, #00b232 122.67%);}
.gnb__playnow-front {height: 36px; border: 1px solid transparent; border-radius: 8px;
	background:
		linear-gradient(180deg, #77e000 0%, #008626 100%) padding-box,
		linear-gradient(180deg, #7fff03 0%, #38af1a 100%) border-box;}
.gnb__playnow-front::before,
.gnb__playnow-front::after {left: 1px; right: 1px; height: 15px;}
.gnb__playnow-front::before {top: 1px; background: linear-gradient(180deg, #c3ff9d 0%, rgba(255,255,255,0) 61.5%);}
.gnb__playnow-front::after {bottom: 1px; background: linear-gradient(180deg, rgba(50,172,22,0) 0%, #015c1a 100%);}
.gnb__playnow-txt {line-height: .8; -webkit-text-stroke-color: #2b9a00;}

/* gnb__profile */
.gnb__profile {display: flex; align-items: center; gap: 8px; height: var(--touch-min, 48px); padding: 0 8px; border-radius: 999px;}
.gnb__avatar {overflow: hidden; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: #e4e6eb;}
.gnb__avatar img {width: 100%; height: 100%; object-fit: cover;}
.gnb__nickname {overflow: hidden; max-width: 137px; color: var(--c-on-tertiary, #edefff); font-weight: 700; font-size: 16px; text-overflow: ellipsis; white-space: nowrap;}

/* gnb__dropdown */
.gnb__user {position: relative;}
.gnb__dropdown {overflow: hidden; position: absolute; z-index: 10; left: -4px; top: calc(100% + 6px); width: 226px; border-radius: 0 0 8px 8px; background: #fff; box-shadow: 0 2px 6px 2px rgba(28,31,38,.08), 0 1px 2px rgba(28,31,38,.12); color: #1b1b1b; text-align: left;}
.gnb__dropdown[hidden] {display: none;}
.gnb__dropdown-user {display: flex; gap: 8px; padding: 14px 12px 0;}
.gnb__dropdown-avatar {overflow: hidden; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: #e4e6eb; box-shadow: 0 1px 3px 1px rgba(28,31,38,.06), 0 1px 2px rgba(28,31,38,.1);}
.gnb__dropdown-avatar img {width: 100%; height: 100%; object-fit: cover;}
.gnb__dropdown-info {overflow: hidden; line-height: 1.4;}
.gnb__dropdown-nickname {overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-weight: 700; font-size: 18px; line-height: 1.1;}
.gnb__dropdown-id {overflow: hidden; margin-top: 5px; color: #5b6069; font-weight: 500; font-size: 16px; line-height: 1; opacity: .85; text-overflow: ellipsis; white-space: nowrap;}
.gnb__dropdown-logout {box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; height: 48px; margin-top: 12px; padding: 0 12px; border-top: 1px solid #e8e8ed; color: #240075; font-weight: 500; font-size: 16px; transition: background-color var(--dur-fast, .15s) var(--ease-out, cubic-bezier(0, 0, .58, 1));}
@media (hover: hover) {
	.gnb__dropdown-logout:hover {background: #f5f5f8;}
}
.gnb__dropdown-logout-ico {flex-shrink: 0; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='15' viewBox='0 0 17 15' fill='none'%3E%3Cpath d='M12.5 3.33333L11.325 4.50833L13.475 6.66667H5V8.33333H13.475L11.325 10.4833L12.5 11.6667L16.6667 7.5L12.5 3.33333ZM1.66667 1.66667H8.33333V0H1.66667C0.75 0 0 0.75 0 1.66667V13.3333C0 14.25 0.75 15 1.66667 15H8.33333V13.3333H1.66667V1.66667Z' fill='%23240075'/%3E%3C/svg%3E") center/17px 15px no-repeat;}

@media all and (max-width: 860px) {
	.gnb__logo {width: 40px; height: 43px;}
	.gnb__logo img {width: 40px; height: 43px;}
	.gnb__actions {gap: 0; margin-right: 4px;}
	.gnb__actions--in .gnb__shortcut {margin-left: 15px;}
	/* Shortcut 과의 간격 — 로그인 전후가 다름 */
	.gnb__playnow {margin-left: 20px;}
	.gnb__login {margin-left: 17px;}

	/* Shortcut — 아이콘만 남김. 플라자의 Check Out Hub 는 글자를 그대로 두므로 여기 없음 */
	.gnb__shortcut {width: 33px; height: 33px; border-radius: 3px; box-shadow: 0 2px 1px rgba(0,0,0,.3);}
	.gnb__shortcut-back {display: none;}
	.gnb__shortcut-front {height: 100%; padding: 0; background: linear-gradient(180deg, #5f1aff 0%, #4507ff 100%);}
	.gnb__shortcut-front::before,
	.gnb__shortcut-front::after {display: none;}
	.gnb__shortcut-txt {display: none;}
	.gnb__shortcut-ico {width: 23px; height: 23px; background: url("data:image/svg+xml,%3Csvg width='23' height='22' viewBox='0 0 67.8153 64.7184' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M52.5028 64.7184C56.5639 64.7184 60.4587 63.1052 63.3303 60.2335C66.202 57.3619 67.8153 53.4671 67.8153 49.4059C67.8153 45.3448 66.202 41.45 63.3303 38.5784C60.4587 35.7067 56.5639 34.0934 52.5028 34.0934C48.4416 34.0934 44.5468 35.7067 41.6752 38.5784C38.8035 41.45 37.1903 45.3448 37.1903 49.4059C37.1903 53.4671 38.8035 57.3619 41.6752 60.2335C44.5468 63.1052 48.4416 64.7184 52.5028 64.7184ZM54.6903 42.8434V47.2184H59.0653C59.6454 47.2184 60.2018 47.4489 60.6121 47.8591C61.0223 48.2694 61.2528 48.8258 61.2528 49.4059C61.2528 49.9861 61.0223 50.5425 60.6121 50.9527C60.2018 51.363 59.6454 51.5934 59.0653 51.5934H54.6903V55.9684C54.6903 56.5486 54.4598 57.105 54.0496 57.5152C53.6393 57.9255 53.0829 58.1559 52.5028 58.1559C51.9226 58.1559 51.3662 57.9255 50.956 57.5152C50.5457 57.105 50.3153 56.5486 50.3153 55.9684V51.5934H45.9403C45.3601 51.5934 44.8037 51.363 44.3935 50.9527C43.9832 50.5425 43.7528 49.9861 43.7528 49.4059C43.7528 48.8258 43.9832 48.2694 44.3935 47.8591C44.8037 47.4489 45.3601 47.2184 45.9403 47.2184H50.3153V42.8434C50.3153 42.2633 50.5457 41.7069 50.956 41.2966C51.3662 40.8864 51.9226 40.6559 52.5028 40.6559C53.0829 40.6559 53.6393 40.8864 54.0496 41.2966C54.4598 41.7069 54.6903 42.2633 54.6903 42.8434Z' fill='%23FAFAFA'/%3E%3Cpath d='M35.9084 1.28094C35.0879 0.460755 33.9754 0 32.8153 0C31.6552 0 30.5426 0.460755 29.7221 1.28094L0.641513 30.3572C0.438129 30.5606 0.276795 30.802 0.166724 31.0678C0.0566529 31.3335 0 31.6183 0 31.9059C0 32.1936 0.0566529 32.4784 0.166724 32.7441C0.276795 33.0099 0.438129 33.2513 0.641513 33.4547C1.05227 33.8654 1.60937 34.0962 2.19026 34.0962C2.47789 34.0962 2.76271 34.0395 3.02844 33.9295C3.29418 33.8194 3.53563 33.6581 3.73901 33.4547L32.8153 4.37407L61.8915 33.4547C62.3023 33.8654 62.8594 34.0962 63.4403 34.0962C64.0211 34.0962 64.5783 33.8654 64.989 33.4547C65.3998 33.0439 65.6305 32.4868 65.6305 31.9059C65.6305 31.325 65.3998 30.7679 64.989 30.3572L54.6903 20.0628V5.65594C54.6903 5.07578 54.4598 4.51938 54.0496 4.10914C53.6393 3.69891 53.0829 3.46844 52.5028 3.46844H48.1278C47.5476 3.46844 46.9912 3.69891 46.581 4.10914C46.1707 4.51938 45.9403 5.07578 45.9403 5.65594V11.3128L35.9084 1.28094Z' fill='%23FAFAFA'/%3E%3Cpath d='M32.8153 9.12531L53.4303 29.7403C49.7903 29.5684 46.174 30.41 42.984 32.1716C39.794 33.9332 37.1555 36.5456 35.3623 39.7179C33.5691 42.8903 32.6916 46.498 32.8274 50.1396C32.9632 53.7811 34.107 57.3135 36.1315 60.3434H13.1278C11.3873 60.3434 9.71808 59.652 8.48738 58.4213C7.25667 57.1906 6.56526 55.5214 6.56526 53.7809V35.3753L32.8153 9.12531Z' fill='%23FAFAFA'/%3E%3C/svg%3E") center/23px 22px no-repeat;}

	.gnb__user {order: -1;}
	.gnb__profile {gap: 0; justify-content: center; width: 44px; height: 44px; padding: 0;}
	.gnb__avatar {width: 33px; height: 33px;}
	.gnb__nickname {display: none;}

	.gnb__dropdown {left: 50%; width: 121px; margin-left: -60px; top: calc(100% + 4px); border-radius: 0;
		box-shadow: 0 1px 3px 1px rgba(28,31,38,.05), 0 1px 1px rgba(28,31,38,.07);}
	.gnb__dropdown-user {gap: 4px; padding: 6px 6px 0;}
	.gnb__dropdown-id {margin-top: 3px;}
	.gnb__dropdown-avatar {width: 21px; height: 21px; box-shadow: 0 1px 2px 1px rgba(28,31,38,.06), 0 1px 1px rgba(28,31,38,.1);}
	.gnb__dropdown-nickname {font-size: 10px;}
	.gnb__dropdown-id {font-size: 9px;}
	.gnb__dropdown-logout {gap: 4px; height: 26px; margin-top: 6px; padding: 0 6px; font-size: 9px;}
	.gnb__dropdown-logout-ico {width: 11px; height: 11px; background-size: 9px 8px;}

	.gnb__login,
	.gnb__playnow {width: 107px; height: 33px; font-size: 15px;}
	.gnb__login-back,
	.gnb__playnow-back {border-radius: 3px;}
	.gnb__login-front,
	.gnb__playnow-front {height: 31px; border-radius: 3px;}
	.gnb__login-front::before,
	.gnb__login-front::after,
	.gnb__playnow-front::before,
	.gnb__playnow-front::after {left: 1px; right: 1px;}
	.gnb__login-front::before,
	.gnb__playnow-front::before {top: 1px; height: 13px; border-radius: 3px 3px 0 0;}
	.gnb__login-front::after,
	.gnb__playnow-front::after {bottom: 0; height: 14px; border-radius: 0 0 3px 3px;}
}

@media all and (min-width: 601px) and (max-width: 860px) {
	.gnb__profile {justify-content: flex-start; gap: 8px; width: auto;}
	.gnb__nickname {display: block; max-width: 137px; font-size: 14px;}
	.gnb__dropdown {left: 0; margin-left: 0;}
}
