/* Common Header Styles */
:root {
    --bg-primary: #0f1724;
    --bg-secondary: #1a2332;
    --bg-card: #1e2a3a;
    --bg-hover: #253447;
    --gold: #c9a227;
    --gold-light: #d4af37;
    --gold-dark: #b8960f;
    --text-white: #ffffff;
    --text-gray: #8b9cb5;
    --text-muted: #5a6a7e;
    --border-color: #2a3a4a;
    --green: #28a745;
    --red: #dc3545;
}

/* Top Header */
.top-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-icon {
    /* Show hamburger icon on PC only */
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.menu-icon:hover {
    background: var(--bg-hover);
}

.menu-icon span {
    width: 22px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hide hamburger on mobile (below 768px) - use bottom nav instead */
@media (max-width: 768px) {
    .menu-icon.pc-only {
        display: none !important;
    }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
}

.btn-deposit {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--gold), #f39c12);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-deposit:hover {
    transform: scale(1.05);
}

.btn-login, .btn-register {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-login {
    background: var(--bg-card);
    color: var(--text-white);
}

.btn-register {
    background: linear-gradient(135deg, var(--gold), #f39c12);
    color: #000;
}

/* Navigation Menu */
.nav-menu {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 60px;
    z-index: 999;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-scroll {
    display: flex;
    align-items: center;
    padding: 0 40px;
    gap: 8px;
    white-space: nowrap;
}

.nav-item {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    position: relative;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-white);
}

.nav-item.hot::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
}

/* Sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 2001;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 0 0 0 1px var(--border-color);
}

/* Hide scrollbar */
.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-search {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-search input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    outline: none;
}

.sidebar-search input::placeholder {
    color: var(--text-gray);
}

.sidebar-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

.sidebar-menu {
    padding: 16px 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text-gray);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-item:hover, .sidebar-item.active {
    background: rgba(255,255,255,0.06);
    color: var(--text-white);
}

.sidebar-item.active {
    border-left: 4px solid var(--gold);
}

.sidebar-item span {
    font-size: 14px;
    font-weight: 500;
}

.sidebar-item .si-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-item .si-right {
    opacity: 0.6;
    font-size: 16px;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 20px;
}

/* Mobile */
@media (max-width: 768px) {
    .top-header-inner {
        padding: 12px 16px;
    }
    
    .nav-scroll {
        padding: 0 16px;
    }
}
