/* =============================================
 * SmallVerse - Header Styles
 * Version: 1.0.0
 * Last Updated: 03/30/2025
 * ============================================= */

.header {
    background-color: #1e304d;
    border-bottom: 4px solid #5574a7;
    height: 35px;
    position: relative;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 10px;
    height: 100%;
}

.nav-left {
    display: flex;
    gap: 8px;
    position: absolute;
    left: 49%;
    transform: translateX(calc(-50% - 280px));
}

.logo-container {
    flex: 0 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 2px;
    z-index: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
    margin: 60%;
    padding-left: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.player-balance {
    display: flex;
    align-items: center;
    background-color: #5574a7;
    border-radius: 50px;
    padding: 2px 6px 2px 2px;
    height: 20px;
    min-width: 0;
    flex-shrink: 1;
}

.balance-item {
    display: flex;
    align-items: center;
    position: relative;
    min-width: 0;
    flex-shrink: 0;
    padding-right: 4px;
}

.level-item {
    max-width: 60px;
    overflow: visible;
    padding-left: 8px;
}

.level-progress {
    position: absolute;
    left: 10px;
    max-width: 80px;
    height: 8px;
    background-color: #32c0c9;
    border-radius: 4px;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
}

.balance-icon {
    width: 48px;
    height: 31px;
    z-index: 2;
    position: relative;
    flex-shrink: 0;
    margin-right: -6px;
}

.level-icon {
    left: -28px;
    margin-right: -18px;
}

.balance-value {
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
    min-width: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.level-value {
    margin-left: 0.05rem;
    color: #eeecec;
    position: relative;
}

.gold-value { color: #f3d43a; }
.token-value { margin-left: -5px; color: #eeecec; }

.vip-icon {
    width: 44px;
    height: 24px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
}

.nav-button {
    font-family: 'Varela Round', sans-serif;
    font-weight: 450;
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 2px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.homespace-button {
    font-weight: bold;
    background-color: #47a403;
    box-shadow: 0 3px 0 #2d6a02,
                0 4px 4px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.homespace-button:hover {
    background-color: #3e8f03;
}

.homespace-button:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #2d6a02;
}

.logo {
    height: 60px;
    display: block;
}

@media only screen and (max-width: 768px) {
    .nav-left,
    .nav-right {
        display: none;
    }
}