/* =========================================================
   Shared public navbar (desktop baseline)
   Mobile overrides live ONLY in mobile-responsive.css
   ========================================================= */

.sg-navbar {
    height: 70px;
    display: flex;
    align-items: center;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-wrapper-main {
    width: 100%;
    max-width: 1850px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px 24px;
}

.nav-group-left {
    display: contents;
}

.sg-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    min-width: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.sg-user-chip.user-nav-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #16161a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 14px 5px 5px;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
}

/* Keep dropdown open while moving mouse into it (no dead gap) */
.sg-user-chip .user-profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    max-width: calc(100vw - 24px);
    padding-top: 12px; /* invisible bridge under the chip */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: none;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    z-index: 10050;
    text-align: left;
}

.sg-user-chip .user-profile-dropdown .sg-drop-inner {
    background: linear-gradient(160deg, #16161b 0%, #0e0e12 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 95, 109, 0.08);
}

.sg-user-chip:hover .user-profile-dropdown,
.sg-user-chip:focus-within .user-profile-dropdown,
.sg-user-chip.is-open .user-profile-dropdown {
    display: block;
}

.sg-brand,
.sg-navbar .brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sg-navbar .brand b,
.sg-brand b {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sg-navbar .brand span,
.sg-brand span {
    color: #ff5f6d;
    font-size: 1.45rem;
    font-weight: 900;
    text-transform: uppercase;
    background: none;
    -webkit-text-fill-color: #ff5f6d;
    filter: none;
}

.sg-nav-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 999px;
    transition: 0.2s ease;
}

.sg-nav-link:hover,
.sg-nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.sg-nav-link.active {
    border: 1px solid rgba(255, 95, 109, 0.35);
    box-shadow: 0 0 18px rgba(255, 95, 109, 0.15);
}

.sg-nav-link.c-pc { color: #00f2ff !important; }
.sg-nav-link.c-clans { color: #ffc371 !important; }
.sg-nav-link.c-acp { color: #ff5f6d !important; }

.sg-user-chip .nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.sg-user-chip .nav-username {
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-user-chevron {
    font-size: 0.65rem;
    color: #666;
}

.sg-drop-head {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sg-drop-name {
    font-weight: 900;
    color: #fff;
    font-size: 1.15rem;
    letter-spacing: 0.2px;
}

.sg-drop-steamid {
    font-size: 0.7rem;
    color: #555;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    margin-top: 6px;
    word-break: break-all;
}

.sg-drop-sep {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 12px 0;
}

/* Stats — 2x2 card grid */
.sg-user-chip .drop-stats,
.user-profile-dropdown .drop-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 0 0 14px !important;
    width: 100%;
}

.sg-user-chip .drop-stat-box,
.user-profile-dropdown .drop-stat-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-bottom: 2px solid rgba(255, 95, 109, 0.35) !important;
    border-radius: 14px !important;
    padding: 12px 8px !important;
    min-height: 64px;
    text-align: center !important;
}

.sg-user-chip .drop-stat-box b,
.user-profile-dropdown .drop-stat-box b {
    display: block !important;
    color: #ff5f6d !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

.sg-user-chip .drop-stat-box span,
.user-profile-dropdown .drop-stat-box span {
    display: block !important;
    font-size: 0.62rem !important;
    color: #777 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.vip-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.07);
    border: 1px solid rgba(255, 215, 0, 0.28);
    color: #ffd700;
    padding: 11px 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 800;
    font-size: 0.78rem;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.vip-banner--off {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: #777;
}

.vip-banner--off i { opacity: 0.4; }

.sg-user-chip .drop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    color: #aaa;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: 0.2s;
}

.sg-user-chip .drop-item i {
    width: 18px;
    text-align: center;
    opacity: 0.9;
}

.sg-user-chip .drop-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sg-steam-btn.steam-btn {
    text-decoration: none;
}

/* Hamburger: hidden on desktop */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    transition: 0.2s;
}

.mobile-menu-toggle:hover {
    border-color: rgba(255, 95, 109, 0.45);
    background: rgba(255, 95, 109, 0.12);
}

/* Drawer base (off-canvas; shown via .is-active) */
.sg-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
}

.sg-mobile-overlay.is-active {
    display: block;
}

.sg-mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100%;
    height: 100dvh;
    background: #0a0a0a;
    z-index: 10001;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    border-left: 3px solid #ff5f6d;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.65);
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sg-mobile-panel.is-active {
    transform: translateX(0);
}

.sg-mobile-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

.sg-mobile-brand {
    text-align: center;
    margin: 10px 0 20px;
}

.sg-mobile-brand img {
    width: 72px;
    height: auto;
    margin-bottom: 10px;
}

.sg-mobile-brand-text {
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: #fff;
}

.sg-mobile-brand-text span { color: #ff5f6d; }

.sg-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
    border-radius: 10px;
}

.mobile-nav-link i {
    color: #ff5f6d;
    width: 22px;
    text-align: center;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    background: rgba(255, 95, 109, 0.08);
}

.sg-mobile-auth {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sg-mobile-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px 4px;
}

.sg-mobile-user img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.sg-mobile-user strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
}

.sg-mobile-user a {
    color: #ff5f6d;
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 700;
}

/* Space for fixed navbar on pages that don't already pad */
body.has-sg-navbar,
body:has(#sgPublicNavbar) {
    padding-top: 70px;
}
