/* Steam 2013 Navbar Styles - Isolated to prevent conflicts */

/* Main navbar container */
#global_header {
    background-image: url("/img/globalheader_bg.jpg");
    background-color: #000000;
    border-bottom: 1px solid #4d4b48;
    background-position: center top;
    padding-left: 16px;
    padding-right: 16px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#global_header .content {
    background-image: url("/img/globalheader_bg.jpg");
    background-position: center top;
    position: relative;
    width: 940px;
    height: 104px;
    margin: 0px auto;
    z-index: 402;
}

/* Reset to prevent page styles from affecting navbar */
#global_header * {
    box-sizing: border-box;
}

#global_header a {
    color: #b8b6b4;
    text-decoration: none;
}

#global_header img {
    border: none;
    display: block;
}

/* Global actions (top right area) */
#global_actions {
    position: absolute;
    right: 0px;
    top: 6px;
    height: 21px;
    line-height: 21px;
    color: #b8b6b4;
    font-size: 11px;
    z-index: 401;
}

#global_actions a.global_action_link {
    padding: 0px 4px;
    color: #b8b6b4;
    text-decoration: none;
}

#global_actions .global_action_link:hover {
    text-decoration: none;
    color: #ffffff;
}

#global_actions #global_action_menu {
    float: right;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Logo */
#global_header div.logo {
    float: left;
    padding-top: 30px;
    margin-right: 40px;
    width: 176px;
    height: 44px;
}

/* Menu items */
#global_header .menuitem {
    display: block;
    position: relative;
    padding: 40px 7px 7px;
    line-height: 16px;
    float: left;
    font-size: 14px;
    color: #b8b6b4;
    text-transform: uppercase;
    text-decoration: none;
}

#global_header .menuitem.active,
#global_header .menuitem:hover {
    color: #ffffff;
    text-decoration: none;
}

#global_header .menuitem.active {
    background-image: url("/img/globalheader_highlight.png");
    background-repeat: repeat-x;
}

/* Install/Launcher button */
.header_installsteam_btn {
    float: left;
    position: relative;
    height: 21px;
    margin-right: 3px;
}

.header_installsteam_btn_green .header_installsteam_btn_leftcap,
.header_installsteam_btn_green .header_installsteam_btn_rightcap,
.header_installsteam_btn_green .header_installsteam_btn_content {
    background-image: url("/img/btn_header_installsteam_green.png");
}

.header_installsteam_btn_leftcap {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 24px;
    height: 21px;
    background-position: 0px 0px;
}

.header_installsteam_btn_rightcap {
    position: absolute;
    right: 0px;
    top: 0px;
    width: 1px;
    height: 21px;
}

.header_installsteam_btn_content {
    display: inline-block;
    padding-left: 27px;
    padding-right: 7px;
    height: 21px;
    line-height: 21px;
    background-position: 0px -21px;
    background-repeat: repeat-x;
    text-decoration: none;
    color: #e5e4dc;
    font-weight: normal;
}

.header_installsteam_btn_content:hover {
    text-decoration: none;
    color: #ffffff;
}

/* Pulldown menus */
.pulldown {
    padding-left: 5px;
    padding-right: 18px;
    background-image: url("/img/btn_arrow_down_padded.png");
    background-position: right center;
    background-repeat: no-repeat;
    cursor: pointer;
    display: inline-block;
}

.popup_block {
    z-index: 9999 !important;
    position: absolute;
    box-shadow: 0px 0px 12px #000000;
}

#currency_dropdown {
    top: 27px;
    right: auto;
}

#language_dropdown {
    top: 27px;
    right: auto;
}

.popup_block .popup_body {
    border: 1px solid #82807c;
    position: relative;
    background-color: #3b3938;
    background-image: url("/img/bg_popup.png");
    background-repeat: repeat-x;
    background-position: center top;
}

.popup_menu .popup_menu_item {
    display: block;
    padding: 5px 12px;
    color: #e5e4dc;
    text-transform: none;
    font-size: 11px;
    font-weight: bold;
    line-height: normal;
    text-decoration: none;
}

.popup_menu a.popup_menu_item {
    text-decoration: none;
}

.popup_menu .popup_menu_item:hover {
    text-decoration: none;
    background-color: #212d3d;
}

/* Shadow elements */
.shadow_ul, .shadow_top, .shadow_ur, .shadow_left, .shadow_right, .shadow_bl, .shadow_bottom, .shadow_br {
    position: absolute;
    pointer-events: none;
}

/* Supernav styles */
#supernav {
    display: inline-block;
}

#supernav .menuitem {
    float: left;
}

/* Steam 2013 Profile Login Styles */
.steam2013_profile_link {
    position: relative;
    transition: all 0.2s ease;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.steam2013_username {
    color: #c6d4df;
    font-size: 11px;
    font-family: Arial, Helvetica, sans-serif;
    transition: color 0.2s ease;
}

.steam2013_profile_link:hover .steam2013_username {
    color: #fff;
}

.user_pulldown {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    cursor: pointer;
}

.steam2013_balance {
    font-size: 11px;
    color: #8f98a0;
    font-style: italic;
}

.steam2013_avatar_container {
    width: 45px;
    height: 45px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-sizing: border-box;
}

.steam2013_avatar {
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    display: block;
    object-fit: cover;
    border-radius: 2px;
}

.steam2013_profile_link:hover .steam2013_avatar_container {
    transform: scale(1.05);
}

/* Dividers between menu items */
#global_action_menu > * {
    display: inline-block;
    vertical-align: middle;
}

/* Fix spacing for dividers */
.navbar-divider {
    display: inline-block;
    padding: 0 3px;
    color: #b8b6b4;
}

.header_login_text {
    padding: 0 6px;
    color: #b8b6b4;
    text-decoration: none;
}

.header_login_text:hover {
    color: #ffffff;
    text-decoration: none;
}

#user_dropdown {
    top: 27px;
    right: 0;
}
