/* ==========================================================================
   전역 헤더(#global_header) + 상점 서브 내비게이션(#store_header)
   값 출처: 스팀 shared_global.css / store.css 실측값 재작성 (복붙 아님)
   ========================================================================== */

/* --------------------------------------------------------------------------
   전역 헤더 — 104px, #171d25
   -------------------------------------------------------------------------- */
#global_header {
  background: var(--color-header);
  min-width: 940px;
  padding-left: 16px;
  padding-right: 16px;
  font-size: 14px;
}

#global_header .content {
  position: relative;
  background: var(--color-header);
  height: 104px;
  min-width: 940px;
  margin: 0 auto;
  max-width: max(var(--store-page-width, 940px), 1100px);
  z-index: 402;
}

/* 로고 — 스팀 로고 자리(폭 176, 높이 44, padding-top 30)의 텍스트 로고 */
#global_header .logo {
  float: left;
  padding-top: 30px;
  margin-right: 40px;
  width: 176px;
  height: 44px;
}

.header_logo_text {
  display: inline-block;
  font-size: 26px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
}

.header_logo_text:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   슈퍼내비 (상점/커뮤니티/정보/지원)
   -------------------------------------------------------------------------- */
#global_header .supernav_container {
  position: absolute;
  left: 200px;
  top: 0;
}

.supernav_item {
  float: left;
  position: relative;
}

#global_header .menuitem {
  display: block;
  position: relative;
  padding: 45px 7px 7px;
  line-height: 16px;
  font-size: 16px; /* shared_global.css: 같은 블록 내 후행 16px 선언이 최종 적용값 */
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-header-menu-text);
}

#global_header .menuitem:hover {
  color: #fff;
  text-decoration: none;
}

#global_header .menuitem.supernav_active {
  color: #1a9fff;
}

#global_header .menuitem.supernav_active::after {
  content: "";
  display: block;
  width: 100%;
  height: 2.5px;
  margin-top: 2px;
  background: #1a9fff;
  border-radius: 3px;
}

/* 상점 드롭다운 — CSS hover 플라이아웃 (.popup_menu_item 스타일) */
.supernav_flyout {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  z-index: 500;
  box-shadow: 0 0 12px #000;
}

.supernav_item:hover .supernav_flyout {
  display: block;
}

.supernav_flyout .popup_body {
  background-color: #3d4450;
  border: 1px solid #3d4450;
}

.supernav_flyout .popup_menu_item {
  display: block;
  padding: 5px 12px;
  color: #dcdedf;
  font-size: 12px;
  font-weight: normal;
  line-height: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.supernav_flyout .popup_menu_item:hover {
  color: #171d25;
  background: #dcdedf;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   우상단 전역 액션 (게임 다운로드 / 로그인 | 언어)
   -------------------------------------------------------------------------- */
#global_actions {
  position: absolute;
  right: 0;
  top: 6px;
  height: 21px;
  line-height: 21px;
  color: #b8b6b4;
  font-size: 11px;
  z-index: 401;
}

#global_action_menu {
  display: inline-block;
  line-height: 24px;
  vertical-align: top;
}

#global_action_menu > * {
  vertical-align: top;
}

#global_actions a.global_action_link,
#global_actions span.global_action_link {
  padding: 0 4px;
  color: #b8b6b4;
}

#global_actions a.global_action_link:hover,
#global_actions span.global_action_link:hover {
  color: #fff;
  text-decoration: none;
}

/* 초록 다운로드 필 버튼 (스팀 Install Steam 버튼: #5c7e10 → hover #6c9018) */
.header_installsteam_btn {
  display: inline-block;
  position: relative;
  height: 21px;
  margin-right: 3px;
  border-radius: 1px;
}

.header_installsteam_btn_content {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 21px;
  padding-left: 10px;
  padding-right: 9px;
  background-color: #5c7e10;
  border-radius: 1px;
  color: #e5e4dc;
  font-weight: normal;
  transition: background 250ms;
}

.header_installsteam_btn_content .download_icon {
  flex: 0 0 auto;
}

.header_installsteam_btn:hover .header_installsteam_btn_content {
  background-color: #6c9018;
  color: #fff;
  cursor: pointer;
}

/* 언어 풀다운 (장식용) */
#language_pulldown {
  padding-left: 5px;
  padding-right: 6px;
  cursor: pointer;
}

#language_pulldown .caret {
  margin-left: 4px;
  vertical-align: middle;
  opacity: 0.7;
}

.header_pipe {
  color: #b8b6b4;
}

/* --------------------------------------------------------------------------
   상점 서브 내비게이션 — 66px 스트립 + 35px 그라디언트 바
   -------------------------------------------------------------------------- */
#store_header {
  height: 66px;
  min-width: 940px;
  margin-bottom: 16px;
  padding-left: 16px;
  padding-right: 16px;
}

#store_header .content {
  position: relative;
  height: 66px;
  max-width: var(--store-page-width, 1200px);
  width: 100%;
  margin: 0 auto;
  z-index: 300;
}

#store_nav_area {
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  height: 49px;
}

#store_nav_area .store_nav_bg {
  height: 35px;
  margin: 7px 0;
  background: var(--gradient-storenav);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

.store_nav {
  display: flex;
  height: 35px;
}

.store_nav .tab {
  display: inline-block;
  padding: 1px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.store_nav .tab > span {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: #e5e5e5;
  line-height: 33px;
  padding: 0 15px;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

.store_nav .tab:hover,
.store_nav .tab:hover > span {
  color: #fff;
  background: linear-gradient(90deg, rgba(33, 162, 255, 0.25) 0%, rgba(33, 162, 255, 0.15) 50%, rgba(50, 50, 51, 0) 100%);
}

/* 검색 영역 */
.store_nav .search_flex_spacer {
  flex: 1;
  width: 20px;
}

.store_nav .search_area {
  flex-grow: 1;
  flex-shrink: 0;
  max-width: 210px;
  align-self: center;
}

#store_search {
  margin: 0;
}

.searchbox {
  position: relative;
  height: 30px;
  padding: 0 6px;
  background-color: #316282;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: text;
  z-index: 150;
}

.searchbox:hover {
  border: 1px solid #4c9acc;
  box-shadow: 1px 1px 0 rgba(255, 255, 255, 0);
}

.searchbox input {
  border: none;
  background: transparent;
  color: #eee;
  width: calc(100% - 30px);
  height: 28px;
  line-height: 26px;
  margin-left: 2px;
  outline: none;
  font-size: 14px;
  font-weight: 300;
}

.searchbox input::placeholder {
  color: #0e1c25;
}

.searchbox input:focus::placeholder {
  color: transparent;
}

#store_search_link {
  position: absolute;
  top: 1px;
  right: 2px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0e1c25;
}

#store_search_link:hover {
  color: #4c9acc;
}

/* --------------------------------------------------------------------------
   반응형
   -------------------------------------------------------------------------- */
@media (max-width: 910px) {
  #global_header,
  #global_header .content,
  #store_header {
    min-width: 0;
  }

  #global_header,
  #store_header {
    padding-left: 2vw;
    padding-right: 2vw;
  }

  #global_header .supernav_container {
    display: none;
  }

  /* 탭 단계적 숨김: 양끝 탭부터 */
  .store_nav .tab:nth-child(1),
  .store_nav .tab:nth-child(6) {
    display: none;
  }
}

@media (max-width: 600px) {
  #global_header .content {
    height: 66px;
  }

  #global_header .logo {
    padding-top: 21px;
    margin-right: 16px;
    width: auto;
    height: auto;
  }

  .header_logo_text {
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 2px;
  }

  /* 로고 + 검색만 유지 */
  .store_nav .tab {
    display: none;
  }

  .header_installsteam_btn,
  #language_pulldown,
  .header_pipe {
    display: none;
  }
}
