/* ═══════════════════════════════════════════════════════════
   LIQUID ANIMATED NAVBAR — dark obsidian + gold theme
   Adapted from liquid active tab design to Virus Cards aesthetic
   ═══════════════════════════════════════════════════════════ */

/* ── Nav bar shell — Apple glassmorphism ── */
.navbar-mainbg {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; padding: 0 1.5rem; height: 68px;
  background: rgba(13, 13, 20, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.nav-brand-container { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav-logo {
  font-size: 1rem; font-weight: 800; letter-spacing: 0.02em;
  color: #e8b84b; text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem; white-space: nowrap;
}
.nav-logo span { color: #b8b8d0; font-weight: 400; }
.nav-logo img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid #e8b84b;
  box-shadow: 0 0 10px rgba(232,184,75,0.35);
}
.nav-role-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 0.2rem 0.55rem; border-radius: 5px;
  text-decoration: none; transition: all 0.2s; cursor: pointer;
}
.nav-role-badge.badge-admin {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #07070f; box-shadow: 0 0 10px rgba(232,184,75,0.4);
}
.nav-role-badge.badge-staff {
  background: linear-gradient(135deg, #7b4dbf, #b5179e);
  color: #fff; box-shadow: 0 0 10px rgba(123,77,191,0.4);
}

/* ── Navbar collapse container ── */
#navbarSupportedContent {
  display: flex; align-items: center; justify-content: flex-end;
  flex: 1; margin-left: 1rem;
}
#navbarSupportedContent ul.navbar-nav {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 2px; flex-wrap: nowrap;
  list-style: none; margin: 0; padding: 0;
  position: relative;
}



/* ── Nav items ── */
#navbarSupportedContent ul li.nav-item {
  position: relative;
  z-index: 1;
  list-style: none;
}
#navbarSupportedContent ul li.nav-item a.nav-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600; line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 8px;
  white-space: nowrap; cursor: pointer; font-family: inherit;
  transition: color 0.3s ease;
  position: relative;
}
#navbarSupportedContent ul li.nav-item a.nav-link i {
  font-size: 0.85rem;
}
#navbarSupportedContent ul li.nav-item:hover a.nav-link {
  color: rgba(255,255,255,0.85);
}
#navbarSupportedContent ul li.nav-item.active a.nav-link {
  color: #e8b84b;
  background: rgba(232, 184, 75, 0.12);
  border: 1px solid rgba(232, 184, 75, 0.3);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
#navbarSupportedContent ul li.nav-item.active {
  background: transparent;
}

/* Premium shop special — keep gold but visible on liquid */
#navbarSupportedContent ul li.nav-item.nav-shop a.nav-link {
  color: #ffd700;
}
#navbarSupportedContent ul li.nav-item.nav-shop.active a.nav-link {
  color: #e8b84b;
}

/* ── Mobile controls ── */
.mobile-nav-controls { display: none; align-items: center; gap: 0.75rem; z-index: 102; }
.mobile-menu-checkbox { display: none; }
.mobile-menu-toggle {
  width: 34px; height: 34px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.bars { width: 22px; height: 2.5px; background: #fff; border-radius: 5px; transition: .3s; }
.mobile-menu-checkbox:checked + .mobile-menu-toggle #bar2 { transform: rotate(135deg); margin-bottom: -7px; }
.mobile-menu-checkbox:checked + .mobile-menu-toggle #bar1 { transform: rotate(45deg) translate(3px,3px); }
.mobile-menu-checkbox:checked + .mobile-menu-toggle #bar3 { opacity: 0; }

@media (max-width: 1150px) {
  #navbarSupportedContent { display: none; }
  .mobile-nav-controls { display: flex; }
  .navbar-mainbg { padding: 0 1rem; }
  #navbarSupportedContent.active {
    display: flex !important;
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(13, 13, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 1rem 1.25rem; gap: 0.6rem;
    max-height: calc(100vh - 68px); overflow-y: auto;
    box-sizing: border-box;
    flex-direction: column;
  }
  #navbarSupportedContent.active ul.navbar-nav {
    flex-direction: column; align-items: stretch; width: 100%;
  }
  #navbarSupportedContent.active ul li.nav-item a.nav-link {
    width: 100%; justify-content: flex-start; padding: 12px 16px;
    border: 1px solid #1c1c26; border-radius: 8px; background: rgba(255,255,255,0.02);
  }
  #navbarSupportedContent.active ul li.nav-item.active a.nav-link {
    background: #1c1c26; border-color: #e8b84b;
  }
}
@media (max-width: 480px) {
  .nav-logo { font-size: 0.82rem; }
  .nav-logo img { width: 26px; height: 26px; }
  .navbar-mainbg { height: 60px; }
  #navbarSupportedContent.active { top: 60px; max-height: calc(100vh - 60px); }
}

/* ═════════ TOP PLAYERS LEADERBOARD MODAL ═════════ */
.gn-lb-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 1rem;
}
.gn-lb-overlay.open { display: flex; }
.gn-lb-modal {
  width: min(620px, 100%); max-height: 88vh;
  background: rgba(10,10,22,0.96);
  border: 1px solid var(--border2, #2a2a52); border-radius: 20px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.8);
  animation: gn-modal-in .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes gn-modal-in { from { opacity:0; transform:scale(.94) translateY(12px); } to { opacity:1; transform:scale(1) translateY(0); } }
.gn-lb-header {
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border, #1c1c38);
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(7,7,15,.6);
}
.gn-lb-title { font-size: 1.25rem; font-weight: 900; color: var(--gold, #e8b84b); display: flex; align-items: center; gap: .6rem; }
.gn-lb-close {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid var(--border, #1c1c38);
  border-radius: 8px; color: var(--muted, #6868a0); font-size: 1.1rem;
  cursor: pointer; transition: all .2s; line-height: 1;
}
.gn-lb-close:hover { background: rgba(255,77,109,.15); border-color: rgba(255,77,109,.4); color: #ff4d6d; }
.gn-lb-top-card {
  margin: 1.25rem 1.5rem 0; padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(123,77,191,.2), rgba(232,184,75,.1));
  border: 1px solid rgba(168,85,247,.35); border-radius: 14px;
  display: none; align-items: center; gap: 1rem;
}
.gn-lb-top-card.show { display: flex; }
.gn-lb-diamond { font-size: 2rem; filter: drop-shadow(0 0 12px rgba(232,184,75,.5)); }
.gn-lb-top-label { color: var(--muted, #6868a0); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.gn-lb-top-val { font-weight: 800; font-size: 1.05rem; color: var(--text, #eeeef8); }
.gn-lb-list { padding: 1.25rem 1.5rem; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: .6rem; }
.gn-lb-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  background: rgba(7,7,15,.5); border: 1px solid var(--border, #1c1c38);
  border-radius: 14px; transition: all .2s;
}
.gn-lb-row:hover { background: rgba(255,255,255,.03); border-color: var(--border2, #2a2a52); }
.gn-lb-row.top-1 { border-color: rgba(255,215,0,.4); background: rgba(255,215,0,.06); }
.gn-lb-row.top-2 { border-color: rgba(192,192,192,.35); background: rgba(192,192,192,.04); }
.gn-lb-row.top-3 { border-color: rgba(205,127,50,.35); background: rgba(205,127,50,.04); }
.gn-lb-rank {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .85rem; flex-shrink: 0;
}
.gn-lb-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border2, #2a2a52); flex-shrink: 0; }
.gn-lb-info { flex: 1; min-width: 0; }
.gn-lb-name { font-weight: 800; font-size: .95rem; color: var(--text, #eeeef8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gn-lb-cards { font-size: .72rem; color: var(--muted, #6868a0); margin-top: 2px; }
.gn-lb-value-wrap { text-align: right; flex-shrink: 0; }
.gn-lb-value-label { font-size: .62rem; color: var(--gold, #e8b84b); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.gn-lb-value-num { font-size: 1.05rem; font-weight: 900; color: #fff; }

/* ═════════ VOTE READY PILL (gallery body widget) ═════════ */
.vote-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 800; letter-spacing: 0.02em;
  padding: 0.65rem 1.5rem; border-radius: 999px;
  border: 1px solid transparent; cursor: default;
  transition: all 0.25s;
}
.vote-pill.loading {
  color: var(--muted, #6868a0); border-color: var(--border, #1c1c38);
  background: rgba(255,255,255,0.03);
}
.vote-pill.ready {
  color: #0c0c14;
  background: linear-gradient(135deg, #ffd700, #c77dff);
  border-color: #ffd700;
  box-shadow: 0 0 24px rgba(255,215,0,0.45), 0 0 48px rgba(199,125,255,0.25);
  animation: vote-pulse 2s ease-in-out infinite;
}
.vote-pill.cooldown {
  color: var(--text2, #b8b8d0); border-color: var(--border, #1c1c38);
  background: rgba(255,255,255,0.04);
}
@keyframes vote-pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(255,215,0,0.35), 0 0 40px rgba(199,125,255,0.18); }
  50%      { box-shadow: 0 0 30px rgba(255,215,0,0.6), 0 0 64px rgba(199,125,255,0.35); }
}
