/* TOP NAVBAR BASE STYLES */
.top-navbar {
    width: 100%;
    z-index: 1000;
  }

  .navbar-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #1C1C2E;
    color: white;
    height: 60px;
    font-family: 'Poppins', sans-serif;
    z-index: 999;
    position: fixed;
    top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    width: calc(100% - 40px);
}
  
  .nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  /* LOGO */
  .logo-link img.logo-img {
    height: 40px;
    width: auto;
  }
  
  /* NAV LINKS */
  .top-navbar a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 10px;
    transition: all 0.2s ease;
  }
  
  .top-navbar a:hover {
    color: #b65eff;
    text-shadow: 0 0 5px #b65eff;
  }
  
  /* DROPDOWN MENUS */
  .dropdown {
    position: relative;
  }
  
  .dropbtn {
    background: none;
    border: none;
    color: white;
    font-size: 15px;
    cursor: pointer;
    padding: 8px 10px;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2A2A3D;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 999;
    padding: 10px;
    border-radius: 4px;
  }
  
  .dropdown-content a {
    display: flex;
    padding: 6px 10px;
    color: white;
    text-decoration: none;
    font-size: 14px;
  }
  
  .dropdown-content a:hover {
    background-color: #3b3b52;
    color: #b65eff;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  /* NOTIFICATION */
  .notification-icon {
    position: relative;
    font-size: 18px;
  }
  
  .notification-icon i {
    color: white;
  }
  
  .notification-icon span#notif-badge,
  .notification-icon .badge {
      position: absolute;
      top: -1px;
      right: -6px;
      background-color: red;
      color: white;
      font-size: 11px;
      padding: 2px 6px;
      border-radius: 50%;
      line-height: 1;
      min-width: 16px;
      text-align: center;
      font-weight: bold;
      z-index: 10;
  }  
  
  /* DISCORD ICON */
  .nav-discord-icon img,
  .discord-img {
    width: 32px;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #6C00FF;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 0 5px rgba(108, 0, 255, 0.6);
  }
  .discord-icon img:hover,
  .discord-img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px #b65eff);
  }
  
  /* USER INFO (USERNAME, DROPDOWNS) */
  .user-info-container, .logged-in .action-container {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .username-display {
    font-size: 14px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 8px #FFD700, 0 0 12px #FFD700;
    margin-bottom: 10px;
  }
  
  .username-display:hover {
    color: #FFB800;
    text-shadow: 0 0 12px #FFB800, 0 0 16px #FFB800;
  }
  
  .logged-out .action-container {
    display: block;
    text-align: center;
  }
  
  .custom-dropdown-menu {
    display: none;
    position: absolute;
    background-color: #444;
    border-radius: 5px;
    margin-top: 5px;
    z-index: 1000;
  }
  
  .custom-dropdown-item {
    padding: 10px 15px;
    color: white;
    display: block;
    text-decoration: none;
    font-size: 14px;
  }
  
  .custom-dropdown-item:hover {
    background-color: #555;
  }
  
  .dropdown.show .custom-dropdown-menu {
    display: block;
  }
  
  .fa-envelope:before {
    position: relative;
    color: white;
  }

  .dropdown-content hr {
    margin: 6px 0;
    border: 0;
    border-top: 1px solid #666;
  }  

  /* Group label for games */
.team-dropdown-game {
    padding: 6px 10px;
    font-weight: bold;
    color: #b65eff;
    text-transform: uppercase;
    font-size: 13px;
}

/* Divider between game sections */
.team-dropdown-divider {
    margin: 6px 0;
    border: 0;
    border-top: 1px solid #555;
}

/* Team link entry */
.team-dropdown-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: background 0.2s ease;
}

.team-dropdown-entry:hover {
    background-color: #3b3b52;
    color: #b65eff;
}

/* Logo inside the team entry */
.team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 3px;
}

/* Game Dropdown Styling */
.games-dropdown {
    padding: 10px;
    background-color: #2A2A3D;
    border-radius: 5px;
}

.game-dropdown-group {
    padding-bottom: 10px;
}

.game-dropdown-title {
    font-weight: bold;
    color: #b65eff;
    margin-bottom: 5px;
    font-size: 14px;
}

.games-dropdown a {
    display: block;
    padding: 4px 0 4px 10px;
    color: white;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.games-dropdown a:hover {
    background-color: #3b3b52;
    color: #b65eff;
    border-radius: 3px;
}

.dropdown-divider {
    margin: 6px 0;
    border: 0;
    border-top: 1px solid #555;
}
  
  /* RESPONSIVE */
  @media (max-width: 768px) {
    .top-navbar {
      flex-direction: column;
      align-items: flex-start;
      height: auto;
      z-index: 1000;
    }
  
    .nav-left, .nav-right {
      flex-direction: row;
      align-items: center;
      width: 100%;
      gap: 10px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
    }
  
    .dropdown-content {
      position: static;
      box-shadow: none;
      background-color: #2A2A3D;
      width: 100%;
    }
  
    .dropbtn {
      width: 100%;
      text-align: left;
    }
  }  

  /* Hide mobile navbar on desktop */
.navbar-mobile {
  display: none;
}

  /* Twitch-style Mobile Navbar Additions */
@media (max-width: 768px) {
  .navbar-desktop {
    display: none;
  }

  .user-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #6C00FF;
  }

  .navuser-info {
    display: flex;
    gap: 5px;
    align-items: center;
}

  .navbar-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .mobile-top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #1C1C2E;
    border-bottom: 1px solid #333;
  }

  .mobile-home-icon {
    font-size: 20px;
    color: white;
    padding-left: 10px;
  }

  .mobile-dropdown {
    flex: 1;
    margin: 0 5px;
  }

  .mobile-dropdown button {
    width: 100%;
    background: none;
    color: #b65eff;
    border: none;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-radius: 4px;
  }

  .mobile-bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #1C1C2E;
    border-top: 1px solid #333;
    z-index: 1000;
  }

  .mobile-bottom-navbar a,
  .mobile-bottom-navbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: white;
    font-size: 12px;
    flex: 1;
    height: 100%;
  }

  .mobile-bottom-navbar i {
    font-size: 18px;
    margin-bottom: 2px;
  }

  .mobile-profile-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90%;
    background-color: #2A2A3D;
    color: white;
    padding: 20px;
    z-index: 1100;
    display: none;
    flex-direction: column;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  .mobile-profile-drawer.open {
    display: flex;
  }

  .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    margin-bottom: 15px;
  }

  .drawer-close {
    background: none;
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
  }

  .drawer-content a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 0;
    display: block;
  }

  .drawer-content a:hover {
    color: #b65eff;
  }

  .notif-wrapper {
    position: relative;
  }
  
  .badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: red;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
    line-height: 1;
    min-width: 16px;
    text-align: center;
  } 

.collapsible-content {
  display: none;
  flex-direction: column;
  background-color: #2A2A3D;
  margin-top: 5px;
  border-radius: 6px;
  padding: 8px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.collapsible-content a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: white;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.collapsible-content a:hover {
  background-color: #3b3b52;
  color: #b65eff;
}

.collapsible-header {
  padding: 10px 16px;
  font-size: 16px;
}

.mobile-floating-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 15px;
  padding: 10px;
  cursor: pointer;
}

.floating-drawer {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  background-color: #1C1C2E;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
  padding: 10px 0;
  border-top: 1px solid #333;
}

.floating-drawer a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: white;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.floating-drawer a:hover {
  background-color: #2a2a3d;
  color: #b65eff;
}

.team-dropdown-game {
  padding: 6px 10px;
  font-weight: bold;
  color: #b65eff;
  text-transform: uppercase;
  font-size: 13px;
  margin-top: 10px;
}

.team-dropdown-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  text-decoration: none;
  color: white;
  font-size: 14px;
}

.team-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 3px;
}

#notif-badge {
  top: -6px !important;
  right: -16px !important;
}

}