/* Modern Navbar Styles */
.navbar-modern {
  background: #212233;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(98, 77, 227, 0.2);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(98, 77, 227, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar-modern .container-fluid {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
}

/* Navbar Menu Toggle Button */
.navbar-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(98, 77, 227, 0.25);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  margin-left: -0.5rem;
}

.navbar-menu-toggle:hover {
  background: rgba(98, 77, 227, 0.15);
  border-color: rgba(98, 77, 227, 0.4);
  color: rgba(98, 77, 227, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(98, 77, 227, 0.2);
}

.navbar-menu-toggle svg {
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  display: block;
}

.navbar-menu-toggle:hover svg {
  transform: scale(1.1);
}

.menu-icon-open {
  display: block;
}

.menu-icon-close {
  display: none;
}

[data-theme="light"] .navbar-menu-toggle {
  background: rgba(98, 77, 227, 0.08);
  border-color: rgba(98, 77, 227, 0.2);
  color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .navbar-menu-toggle:hover {
  background: rgba(98, 77, 227, 0.15);
  border-color: rgba(98, 77, 227, 0.4);
  color: rgba(98, 77, 227, 1);
  box-shadow: 0 8px 24px rgba(98, 77, 227, 0.15);
}

/* Logo Section */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  position: relative;
  margin-left: 0.5rem;
}

.navbar-logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(98, 77, 227, 0.8), transparent);
  transition: width 0.3s ease;
}

.navbar-logo:hover::after {
  width: 100%;
}

.navbar-logo:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 12px rgba(98, 77, 227, 0.3));
}

.navbar-logo img {
  height: 32px;
  width: auto;
  transition: filter 0.3s ease;
}

.navbar-logo:hover img {
  filter: brightness(1.1);
}

/* Search Bar */
.navbar-search {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  justify-self: center;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #383948;
  border: 1.5px solid rgba(98, 77, 227, 0.25);
  border-radius: 20px;
  padding: 0.5rem 1.2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  height: 40px;
}

/* Background image inside search box */
.search-input-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 150px;
  height: 150%;
  background-image: url('/assets/static/logo_header_new.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-50%) scale(1.1);
    opacity: 0.5;
  }
}

.search-input-wrapper:focus-within::before {
  opacity: 0.2;
}

.search-input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(98, 77, 227, 0.6);
  box-shadow: 0 0 30px rgba(98, 77, 227, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.search-input-wrapper svg {
  width: 18px;
  height: 18px;
  color: rgba(98, 77, 227, 0.7);
  margin-right: 0.75rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.search-input-wrapper:focus-within svg {
  color: rgba(98, 77, 227, 1);
}

.search-input-wrapper input {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  width: 100%;
  outline: none;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.search-input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Navbar Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.navbar-actions li {
  position: relative;
  overflow: visible;
}

.nav-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(98, 77, 227, 0.25);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: visible;
}

.nav-action-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(98, 77, 227, 0.4) 0%, rgba(98, 77, 227, 0.1) 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}

.nav-action-btn:hover::before {
  width: 120px;
  height: 120px;
}

.nav-action-btn:hover {
  background: rgba(98, 77, 227, 0.15);
  border-color: rgba(98, 77, 227, 0.4);
  color: rgba(98, 77, 227, 1);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(98, 77, 227, 0.2);
}

.nav-action-btn:active {
  transform: translateY(-1px);
}

.nav-action-btn img {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
  transition: filter 0.3s ease;
}

.nav-action-btn:hover img {
  filter: brightness(1.2);
}

.nav-action-btn.online-users {
  width: auto;
  min-width: 140px;
  padding: 0.5rem 1rem;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(98, 77, 227, 0.15) 0%, rgba(98, 77, 227, 0.08) 100%);
  border: 1px solid rgba(98, 77, 227, 0.35);
  justify-content: center;
}

.nav-action-btn.online-users:hover {
  background: linear-gradient(135deg, rgba(98, 77, 227, 0.25) 0%, rgba(98, 77, 227, 0.15) 100%);
  border-color: rgba(98, 77, 227, 0.5);
}

.online-users-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-2px);
  }
}

.online-users-count {
  min-width: 60px;
  width: 60px;
  text-align: center;
  position: relative;
  z-index: 1;
  font-weight: 700;
  color: rgba(98, 77, 227, 1);
  font-variant-numeric: tabular-nums;
}

/* Tooltip */
.nav-tooltip {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: rgba(33, 34, 51, 0.98);
  color: rgba(255, 255, 255, 0.95);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  border: 1px solid rgba(98, 77, 227, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.nav-action-btn:hover .nav-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  bottom: -50px;
}

[data-theme="light"] .nav-tooltip {
  background: rgba(0, 0, 0, 0.9);
  color: white;
  border-color: rgba(98, 77, 227, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Notification Badge */
.nav-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ff006e 0%, #ff4081 100%);
  color: white;
  border-radius: 50%;
  width: 23px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  border: 2px solid rgba(18, 18, 23, 0.98);
  box-shadow: 0 4px 12px rgba(255, 0, 110, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  animation: pulse-badge 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  z-index: 100;
  pointer-events: none;
}

@keyframes pulse-badge {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
  }
}

[data-theme="light"] .nav-badge {
  border-color: rgba(255, 255, 255, 0.98);
}

/* Favorites Badge - Pink/Purple gradient */
.favorites-badge {
  background: linear-gradient(135deg, #ff006e 0%, #d946ef 100%) !important;
  box-shadow: 0 4px 12px rgba(255, 0, 110, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
}

@keyframes pulse-favorites-badge {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 20px rgba(217, 70, 239, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
  }
}

.favorites-badge {
  animation: pulse-favorites-badge 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}

/* Recent Games Badge - Blue gradient */
.recent-badge {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
}

@keyframes pulse-recent-badge {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
  }
}

.recent-badge {
  animation: pulse-recent-badge 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}

/* Mobile Menu Toggle */
.navbar-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(98, 77, 227, 0.2);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.navbar-mobile-toggle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(98, 77, 227, 0.3) 0%, rgba(98, 77, 227, 0.1) 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.navbar-mobile-toggle:hover::before {
  width: 100px;
  height: 100px;
}

.navbar-mobile-toggle:hover {
  background: rgba(98, 77, 227, 0.15);
  border-color: rgba(98, 77, 227, 0.4);
  color: rgba(98, 77, 227, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(98, 77, 227, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .navbar-search {
    max-width: 300px;
    margin: 0 0.5rem;
  }

  .navbar-actions {
    gap: 0.25rem;
  }

  .nav-action-btn.online-users {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .online-users-count {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar-modern {
    padding: 0.5rem 0;
  }

  .navbar-modern .container-fluid {
    gap: 0.5rem;
    padding: 0 0.75rem;
  }

  .navbar-search {
    max-width: none;
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
  }

  .search-input-wrapper {
    padding: 0.4rem 0.75rem;
  }

  .search-input-wrapper svg {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
  }

  .search-input-wrapper input {
    font-size: 0.9rem;
  }

  .navbar-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-actions {
    gap: 0.2rem;
  }

  .nav-action-btn {
    width: 36px;
    height: 36px;
  }

  .nav-action-btn img {
    width: 18px;
    height: 18px;
  }

  .nav-action-btn.online-users {
    width: 36px;
    padding: 0;
    gap: 0;
  }

  .online-users-count {
    display: none;
  }

  .navbar-logo img {
    height: 28px;
  }
}

@media (max-width: 480px) {
  .navbar-modern .container-fluid {
    gap: 0.5rem;
  }

  .nav-action-btn {
    width: 32px;
    height: 32px;
  }

  .nav-action-btn img {
    width: 16px;
    height: 16px;
  }

  .navbar-logo img {
    height: 24px;
  }
}

/* Dark Theme Support */
[data-theme="dark"] .navbar-modern {
  background: #212233;
}

[data-theme="light"] .navbar-modern {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(98, 77, 227, 0.05) 100%);
  border-bottom-color: rgba(98, 77, 227, 0.2);
  box-shadow: 0 8px 32px rgba(98, 77, 227, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .search-input-wrapper {
  background: #383948 !important;
}

[data-theme="light"] .search-input-wrapper {
  background: rgba(98, 77, 227, 0.05);
  border-color: rgba(98, 77, 227, 0.2);
}

[data-theme="light"] .search-input-wrapper:focus-within {
  background: rgba(98, 77, 227, 0.1);
  border-color: rgba(98, 77, 227, 0.5);
  box-shadow: 0 0 30px rgba(98, 77, 227, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .search-input-wrapper input {
  color: rgba(0, 0, 0, 0.95);
}

[data-theme="light"] .search-input-wrapper input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .search-input-wrapper svg {
  color: rgba(98, 77, 227, 0.6);
}

[data-theme="light"] .search-input-wrapper:focus-within svg {
  color: rgba(98, 77, 227, 1);
}

[data-theme="light"] .nav-action-btn {
  background: rgba(98, 77, 227, 0.08);
  border-color: rgba(98, 77, 227, 0.2);
  color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .nav-action-btn:hover {
  background: rgba(98, 77, 227, 0.15);
  border-color: rgba(98, 77, 227, 0.4);
  color: rgba(98, 77, 227, 1);
  box-shadow: 0 8px 24px rgba(98, 77, 227, 0.15);
}

[data-theme="light"] .nav-action-btn.online-users {
  background: linear-gradient(135deg, rgba(98, 77, 227, 0.1) 0%, rgba(98, 77, 227, 0.05) 100%);
  border-color: rgba(98, 77, 227, 0.25);
}

[data-theme="light"] .nav-action-btn.online-users:hover {
  background: linear-gradient(135deg, rgba(98, 77, 227, 0.18) 0%, rgba(98, 77, 227, 0.1) 100%);
  border-color: rgba(98, 77, 227, 0.4);
}

[data-theme="light"] .navbar-mobile-toggle {
  background: rgba(98, 77, 227, 0.08);
  border-color: rgba(98, 77, 227, 0.2);
  color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .navbar-mobile-toggle:hover {
  background: rgba(98, 77, 227, 0.15);
  border-color: rgba(98, 77, 227, 0.4);
  color: rgba(98, 77, 227, 1);
  box-shadow: 0 8px 24px rgba(98, 77, 227, 0.15);
}


/* Logo Theme Toggle */
.navbar-logo .dark-logo {
  display: block;
}

.navbar-logo .light-logo {
  display: none;
}

[data-theme="light"] .navbar-logo .dark-logo {
  display: none;
}

[data-theme="light"] .navbar-logo .light-logo {
  display: block;
}

/* Icon Theme Toggle */
.online-users-icon .sun-icon {
  display: none;
}

.online-users-icon .moon-icon {
  display: block;
  filter: brightness(0) invert(1);
}

[data-theme="light"] .online-users-icon .sun-icon {
  display: block;
  filter: brightness(0);
}

[data-theme="light"] .online-users-icon .moon-icon {
  display: none;
}

/* Favorites Button */
#favoriteDrawerIcon {
  color: #ff006e;
  transition: all 0.3s ease;
}

.nav-action-btn:hover #favoriteDrawerIcon {
  color: #ff4081;
  filter: drop-shadow(0 0 8px rgba(255, 0, 110, 0.5));
}

[data-theme="light"] #favoriteDrawerIcon {
  color: #ff006e;
}

[data-theme="light"] .nav-action-btn:hover #favoriteDrawerIcon {
  color: #ff4081;
}


/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Fade Out Animation */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* Smooth Transitions */
* {
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Live Search Dropdown - Now uses search-results-dropdown class */


/* Favorites Drawer - Modern Dropdown Style */
.favorites-drawer {
  position: fixed !important;
  top: 70px !important;
  right: 20px !important;
  width: 380px !important;
  max-height: 500px !important;
  background: linear-gradient(135deg, rgba(40, 40, 50, 0.98) 0%, rgba(50, 45, 70, 0.98) 100%) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 48px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(15px) !important;
  z-index: 10000 !important;
  animation: slideDown 0.3s ease-out !important;
  overflow: hidden !important;
  transform: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}

.favorites-drawer.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.favorites-drawer-title {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%) !important;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2) !important;
  padding: 16px 18px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  letter-spacing: 0.3px !important;
  margin: 0 !important;
}

.favorites-list-container {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 12px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
}

.favorites-list-container::-webkit-scrollbar {
  width: 6px;
}

.favorites-list-container::-webkit-scrollbar-track {
  background: transparent;
}

.favorites-list-container::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 3px;
}

.favorites-list-container::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.5);
}

.favorites-masonry-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
}

.favourite-game-card {
  display: flex !important;
  flex-direction: column !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(59, 130, 246, 0.15) !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer !important;
}

.favourite-game-card:hover {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2) !important;
}

.favourite-game-link {
  display: flex !important;
  flex-direction: column !important;
  text-decoration: none !important;
  color: inherit !important;
  width: 100% !important;
  height: 100% !important;
}

.favourite-game-image-container {
  width: 100% !important;
  aspect-ratio: 1 !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%) !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.favourite-game-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
}

.favourite-game-card:hover .favourite-game-image {
  transform: scale(1.1) !important;
}

.favourite-game-placeholder {
  background: rgba(59, 130, 246, 0.15) !important;
  color: rgba(59, 130, 246, 0.8) !important;
  font-size: 32px !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.favourite-game-info {
  padding: 8px !important;
  text-align: center !important;
}

.favourite-game-title {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word !important;
}

.favorites-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 14px;
}

/* Light Theme */
[data-theme="light"] .favorites-drawer {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 255, 0.98) 100%) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
  box-shadow: 0 12px 48px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .favorites-drawer-title {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%) !important;
  border-bottom-color: rgba(59, 130, 246, 0.15) !important;
  color: rgba(0, 0, 0, 0.95) !important;
}

[data-theme="light"] .favourite-game-card {
  background: rgba(59, 130, 246, 0.05) !important;
  border-color: rgba(59, 130, 246, 0.15) !important;
}

[data-theme="light"] .favourite-game-card:hover {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.15) !important;
}

[data-theme="light"] .favourite-game-image-container {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(6, 182, 212, 0.03) 100%) !important;
}

[data-theme="light"] .favourite-game-placeholder {
  background: rgba(59, 130, 246, 0.1) !important;
  color: rgba(59, 130, 246, 0.7) !important;
}

[data-theme="light"] .favourite-game-title {
  color: rgba(0, 0, 0, 0.9) !important;
}

[data-theme="light"] .favorites-empty-state {
  color: rgba(0, 0, 0, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .favorites-drawer {
    width: 300px !important;
    right: 10px !important;
  }
  
  .favorites-masonry-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  
  .favourite-game-title {
    font-size: 10px !important;
  }
  
  .favourite-game-info {
    padding: 6px !important;
  }
}

@media (max-width: 480px) {
  .favorites-drawer {
    width: 280px !important;
  }
}


/* Theme Toggle Button */
#theme-toggle-btn {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
  border-color: rgba(255, 193, 7, 0.3);
}

#theme-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.1) 100%);
  border-color: rgba(255, 193, 7, 0.5);
}

#theme-icon-sun {
  color: rgba(255, 193, 7, 1);
  animation: rotate 20s linear infinite;
}

#theme-icon-moon {
  color: rgba(139, 92, 246, 1);
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

[data-theme="light"] #theme-toggle-btn {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
  border-color: rgba(139, 92, 246, 0.3);
}

[data-theme="light"] #theme-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.1) 100%);
  border-color: rgba(139, 92, 246, 0.5);
}


/* Online Users Dropdown */
.online-users-dropdown {
  position: fixed;
  width: 320px;
  background: linear-gradient(135deg, rgba(40, 40, 50, 0.98) 0%, rgba(50, 45, 70, 0.98) 100%);
  border: 1px solid rgba(98, 77, 227, 0.3);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(98, 77, 227, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  z-index: 10000;
  animation: slideDown 0.3s ease-out;
  overflow: hidden;
}

.online-users-dropdown-header {
  background: linear-gradient(135deg, rgba(98, 77, 227, 0.15) 0%, rgba(98, 77, 227, 0.08) 100%);
  padding: 16px 18px;
  border-bottom: 1px solid rgba(98, 77, 227, 0.2);
}

.online-users-dropdown-title {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.online-users-dropdown-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.online-users-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(98, 77, 227, 0.3) transparent;
}

.online-users-list::-webkit-scrollbar {
  width: 6px;
}

.online-users-list::-webkit-scrollbar-track {
  background: transparent;
}

.online-users-list::-webkit-scrollbar-thumb {
  background: rgba(98, 77, 227, 0.3);
  border-radius: 3px;
}

.online-users-list::-webkit-scrollbar-thumb:hover {
  background: rgba(98, 77, 227, 0.5);
}

.online-users-country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  margin-bottom: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(98, 77, 227, 0.08);
  transition: background 0.2s ease;
  cursor: default;
}

.online-users-country-item:last-child {
  border-bottom: none;
}

.online-users-country-item:hover {
  background: rgba(98, 77, 227, 0.08);
}

.country-flag {
  font-size: 24px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.country-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.country-count {
  font-size: 14px;
  font-weight: 700;
  color: rgba(98, 77, 227, 1);
  background: rgba(98, 77, 227, 0.15);
  padding: 4px 10px;
  border-radius: 8px;
  min-width: 50px;
  text-align: center;
}

/* Light Theme */
[data-theme="light"] .online-users-dropdown {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 255, 0.98) 100%);
  border-color: rgba(98, 77, 227, 0.25);
  box-shadow: 0 12px 48px rgba(98, 77, 227, 0.15), inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .online-users-dropdown-header {
  background: linear-gradient(135deg, rgba(98, 77, 227, 0.1) 0%, rgba(98, 77, 227, 0.05) 100%);
  border-bottom-color: rgba(98, 77, 227, 0.15);
}

[data-theme="light"] .online-users-dropdown-title {
  color: rgba(0, 0, 0, 0.95);
}

[data-theme="light"] .online-users-dropdown-subtitle {
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .online-users-country-item {
  background: transparent;
  border-bottom-color: rgba(98, 77, 227, 0.1);
}

[data-theme="light"] .online-users-country-item:hover {
  background: rgba(98, 77, 227, 0.08);
}

[data-theme="light"] .country-name {
  color: rgba(0, 0, 0, 0.85);
}

[data-theme="light"] .country-count {
  color: rgba(98, 77, 227, 1);
  background: rgba(98, 77, 227, 0.12);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .online-users-dropdown {
    width: 280px;
    right: 10px !important;
  }
  
  .country-name {
    font-size: 12px;
  }
  
  .country-count {
    font-size: 12px;
    padding: 3px 8px;
    min-width: 45px;
  }
}


/* Server Dropdown */
.server-dropdown {
  position: fixed;
  width: 360px;
  background: linear-gradient(135deg, rgba(40, 40, 50, 0.98) 0%, rgba(50, 45, 70, 0.98) 100%);
  border: 1px solid rgba(98, 77, 227, 0.3);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(98, 77, 227, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  z-index: 10000;
  animation: slideDown 0.3s ease-out;
  overflow: hidden;
}

.server-dropdown-header {
  background: linear-gradient(135deg, rgba(98, 77, 227, 0.15) 0%, rgba(98, 77, 227, 0.08) 100%);
  padding: 16px 18px;
  border-bottom: 1px solid rgba(98, 77, 227, 0.2);
}

.server-dropdown-title {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.server-dropdown-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.server-dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(98, 77, 227, 0.08);
  border-top: 1px solid rgba(98, 77, 227, 0.15);
}

.server-footer-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-footer-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.server-footer-value {
  font-size: 14px;
  font-weight: 700;
  color: rgba(98, 77, 227, 1);
  background: rgba(98, 77, 227, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
}

.server-expand-btn {
  background: rgba(98, 77, 227, 0.15);
  border: 1px solid rgba(98, 77, 227, 0.3);
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-expand-btn:hover {
  background: rgba(98, 77, 227, 0.25);
  transform: translateY(2px);
}

.server-expand-btn svg {
  stroke: rgba(255, 255, 255, 0.8);
}

.server-list {
  padding: 8px 0;
}

.server-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(98, 77, 227, 0.08);
  transition: all 0.2s ease;
  cursor: pointer;
}

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

.server-item:hover {
  background: rgba(98, 77, 227, 0.12);
  padding-left: 22px;
}

.server-item.boss {
  background: rgba(255, 215, 0, 0.08);
  border-left: 3px solid rgba(255, 215, 0, 0.6);
}

.server-item.boss:hover {
  background: rgba(255, 215, 0, 0.15);
}

.server-info {
  flex: 1;
}

.server-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.boss-badge {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 215, 0, 1);
  background: rgba(255, 215, 0, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.server-description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.server-arrow {
  flex-shrink: 0;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.server-item:hover .server-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* Light Theme */
[data-theme="light"] .server-dropdown {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 255, 0.98) 100%);
  border-color: rgba(98, 77, 227, 0.25);
  box-shadow: 0 12px 48px rgba(98, 77, 227, 0.15), inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .server-dropdown-header {
  background: linear-gradient(135deg, rgba(98, 77, 227, 0.1) 0%, rgba(98, 77, 227, 0.05) 100%);
  border-bottom-color: rgba(98, 77, 227, 0.15);
}

[data-theme="light"] .server-dropdown-title {
  color: rgba(0, 0, 0, 0.95);
}

[data-theme="light"] .server-dropdown-subtitle {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .server-dropdown-footer {
  background: rgba(98, 77, 227, 0.05);
  border-top-color: rgba(98, 77, 227, 0.12);
}

[data-theme="light"] .server-footer-label {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .server-footer-value {
  color: rgba(98, 77, 227, 1);
  background: rgba(98, 77, 227, 0.12);
}

[data-theme="light"] .server-expand-btn {
  background: rgba(98, 77, 227, 0.1);
  border-color: rgba(98, 77, 227, 0.25);
}

[data-theme="light"] .server-expand-btn:hover {
  background: rgba(98, 77, 227, 0.18);
}

[data-theme="light"] .server-expand-btn svg {
  stroke: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .server-item {
  border-bottom-color: rgba(98, 77, 227, 0.1);
}

[data-theme="light"] .server-item:hover {
  background: rgba(98, 77, 227, 0.08);
}

[data-theme="light"] .server-item.boss {
  background: rgba(255, 215, 0, 0.1);
  border-left-color: rgba(255, 215, 0, 0.8);
}

[data-theme="light"] .server-item.boss:hover {
  background: rgba(255, 215, 0, 0.18);
}

[data-theme="light"] .server-name {
  color: rgba(0, 0, 0, 0.95);
}

[data-theme="light"] .server-description {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .boss-badge {
  color: rgba(184, 134, 11, 1);
  background: rgba(255, 215, 0, 0.25);
}

[data-theme="light"] .server-arrow {
  stroke: rgba(0, 0, 0, 0.5);
}

/* Server List Message */
.server-list-message {
  padding: 14px 18px;
  background: rgba(255, 193, 7, 0.12);
  border-top: 1px solid rgba(255, 193, 7, 0.3);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideInMessage 0.3s ease-out;
}

.server-list-message.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

@keyframes slideInMessage {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.server-message-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.server-message-content {
  flex: 1;
}

.server-message-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 193, 7, 1);
  margin-bottom: 4px;
}

.server-message-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.server-message-close {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-message-close:hover {
  opacity: 1;
}

.server-message-close svg {
  stroke: rgba(255, 255, 255, 0.8);
}

/* Light Theme */
[data-theme="light"] .server-list-message {
  background: rgba(255, 193, 7, 0.15);
  border-top-color: rgba(255, 193, 7, 0.4);
}

[data-theme="light"] .server-message-title {
  color: rgba(184, 134, 11, 1);
}

[data-theme="light"] .server-message-text {
  color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .server-message-close svg {
  stroke: rgba(0, 0, 0, 0.6);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .server-dropdown {
    width: 300px;
    right: 10px !important;
  }
  
  .server-name {
    font-size: 13px;
  }
  
  .server-description {
    font-size: 11px;
  }
  
  .server-list-message {
    padding: 12px 14px;
  }
  
  .server-message-title {
    font-size: 12px;
  }
  
  .server-message-text {
    font-size: 11px;
  }
}


/* Recent Games Drawer - Same style as Favorites */
.recent-games-drawer {
  position: fixed !important;
  top: 70px !important;
  right: 20px !important;
  width: 380px !important;
  max-height: 500px !important;
  background: linear-gradient(135deg, rgba(40, 40, 50, 0.98) 0%, rgba(50, 45, 70, 0.98) 100%) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 48px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(15px) !important;
  z-index: 10000 !important;
  animation: slideDown 0.3s ease-out !important;
  overflow: hidden !important;
  transform: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}

.recent-games-drawer.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.recent-games-drawer-title {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%) !important;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2) !important;
  padding: 16px 18px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  letter-spacing: 0.3px !important;
  margin: 0 !important;
}

.recent-games-list-container {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 12px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
}

.recent-games-list-container::-webkit-scrollbar {
  width: 6px;
}

.recent-games-list-container::-webkit-scrollbar-track {
  background: transparent;
}

.recent-games-list-container::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 3px;
}

.recent-games-list-container::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.5);
}

.recent-games-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
}

.recent-game-card {
  display: flex !important;
  flex-direction: column !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(59, 130, 246, 0.15) !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer !important;
}

.recent-game-card:hover {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2) !important;
}

.recent-game-link {
  display: flex !important;
  flex-direction: column !important;
  text-decoration: none !important;
  color: inherit !important;
  width: 100% !important;
  height: 100% !important;
}

.recent-game-image-container {
  width: 100% !important;
  aspect-ratio: 1 !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%) !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.recent-game-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
}

.recent-game-card:hover .recent-game-image {
  transform: scale(1.1) !important;
}

.recent-game-placeholder {
  background: rgba(59, 130, 246, 0.15) !important;
  color: rgba(59, 130, 246, 0.8) !important;
  font-size: 32px !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.recent-game-info {
  padding: 8px !important;
  text-align: center !important;
}

.recent-game-title {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word !important;
}

.recent-games-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 14px;
}

/* Light Theme */
[data-theme="light"] .recent-games-drawer {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 255, 0.98) 100%) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
  box-shadow: 0 12px 48px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .recent-games-drawer-title {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%) !important;
  border-bottom-color: rgba(59, 130, 246, 0.15) !important;
  color: rgba(0, 0, 0, 0.95) !important;
}

[data-theme="light"] .recent-game-card {
  background: rgba(59, 130, 246, 0.05) !important;
  border-color: rgba(59, 130, 246, 0.15) !important;
}

[data-theme="light"] .recent-game-card:hover {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.15) !important;
}

[data-theme="light"] .recent-game-image-container {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(6, 182, 212, 0.03) 100%) !important;
}

[data-theme="light"] .recent-game-placeholder {
  background: rgba(59, 130, 246, 0.1) !important;
  color: rgba(59, 130, 246, 0.7) !important;
}

[data-theme="light"] .recent-game-title {
  color: rgba(0, 0, 0, 0.9) !important;
}

[data-theme="light"] .recent-games-empty-state {
  color: rgba(0, 0, 0, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .recent-games-drawer {
    width: 300px !important;
    right: 10px !important;
  }
  
  .recent-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  
  .recent-game-title {
    font-size: 10px !important;
  }
  
  .recent-game-info {
    padding: 6px !important;
  }
}

@media (max-width: 480px) {
  .recent-games-drawer {
    width: 280px !important;
  }
}


/* Sidebar Light Theme Support */
[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 255, 0.98) 100%);
  border-right: 1px solid rgba(98, 77, 227, 0.15);
  box-shadow: 2px 0 20px rgba(98, 77, 227, 0.08);
}

[data-theme="light"] .sidebar-item {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .sidebar-item:hover {
  background-color: transparent;
  color: rgba(0, 0, 0, 0.85);
}

[data-theme="light"] .sidebar-item.active {
  background-color: transparent;
  color: rgba(0, 0, 0, 0.95);
}

[data-theme="light"] .sidebar-text {
  color: inherit;
}

[data-theme="light"] .sidebar-item:hover .sidebar-text {
  color: inherit;
}

[data-theme="light"] .sidebar-footer-link {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .sidebar-footer-link:hover {
  color: rgba(98, 77, 227, 1);
}

[data-theme="light"] .mobile-menu-btn {
  background: rgba(98, 77, 227, 0.1);
  color: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(98, 77, 227, 0.2);
}

[data-theme="light"] .mobile-menu-btn:hover {
  background: rgba(98, 77, 227, 0.2);
  color: rgba(98, 77, 227, 1);
}


/* Modern Sidebar - Enhanced Design */
.sidebar {
  background: #000000 !important;
  border-right: 1px solid rgba(98, 77, 227, 0.2) !important;
  box-shadow: 4px 0 32px rgba(98, 77, 227, 0.15) !important;
  backdrop-filter: blur(10px) !important;
  opacity: 1;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), left 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
}

/* Sidebar expanded state - triggered by JavaScript */
.sidebar.sidebar-expanded {
  width: 250px !important;
}

.sidebar-menu {
  padding: 9px 4px 4px 4px !important;
}

.sidebar .sidebar-menu .sidebar-item {
  margin-bottom: 0px !important;
  padding: 0px 6px !important;
  border-radius: 6px !important;
  transition: transform 0.3s ease, color 0.3s ease !important;
  border: 1px solid transparent !important;
  position: relative !important;
  overflow: visible !important;
  color: rgba(255, 255, 255, 0.7) !important;
  background: transparent !important;
}

.sidebar .sidebar-menu .sidebar-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, rgba(98, 77, 227, 1) 0%, rgba(98, 77, 227, 0.6) 100%);
  border-radius: 0 4px 4px 0;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.sidebar .sidebar-menu .sidebar-item:hover::before {
  transform: scaleY(0);
}

.sidebar .sidebar-menu .sidebar-item:hover {
  background: transparent !important;
  border-color: transparent !important;
  transform: none !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.sidebar .sidebar-menu .sidebar-item.active {
  background: transparent !important;
  border-color: transparent !important;
  color: rgba(255, 255, 255, 0.95) !important;
  transform: none !important;
}

.sidebar .sidebar-menu .sidebar-item.active::before {
  transform: scaleY(1);
}

.sidebar .sidebar-menu .sidebar-icon {
  font-size: 18px !important;
  width: auto !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  opacity: 1 !important;
  
  color: rgba(255, 255, 255, 1) !important;
}

.sidebar .sidebar-menu .sidebar-icon img {
  width: auto !important;
  height: 28px !important;
  object-fit: contain !important;
  opacity: 1 !important;

}

.sidebar .sidebar-menu .sidebar-item:hover .sidebar-icon {
  transform: scale(1) !important;
  opacity: 1 !important;
}

.sidebar .sidebar-menu .sidebar-item:hover .sidebar-icon img {
  opacity: 1 !important;
  filter: brightness(1) !important;
}

.sidebar .sidebar-menu .sidebar-item.active .sidebar-icon {
  transform: scale(1) !important;
  opacity: 1 !important;
}

.sidebar .sidebar-menu .sidebar-item.active .sidebar-icon img {
  opacity: 1 !important;
  filter: brightness(1) !important;
}

.sidebar-text {
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0.1px !important;
  color: inherit !important;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.3 !important;
  transform: translateX(0);
}

.sidebar-item:hover .sidebar-text {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  transform: translateX(10px) !important;
}

.sidebar-item.active .sidebar-text {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600 !important;
}

.sidebar hr {
  border: none !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(98, 77, 227, 0.3), transparent) !important;
  margin: 4px 4px !important;
}

.sidebar-footer-links {
  margin-top: 8px !important;
  padding: 0 4px !important;
}

.sidebar-footer-link {
  display: block !important;
  padding: 4px 8px !important;
  margin-bottom: 0px !important;
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none !important;
  border-radius: 5px !important;
  transition: all 0.2s ease !important;
  line-height: 1.3 !important;
}

.sidebar-footer-link:hover {
  background: rgba(98, 77, 227, 0.1) !important;
  color: rgba(98, 77, 227, 1) !important;
  transform: translateX(2px) !important;
}

/* Mobile Menu Button - Hidden (using navbar button instead) */
.mobile-menu-btn {
  display: none !important;
}

/* Sidebar collapsed state */
.sidebar.collapsed {
  left: -280px !important;
  opacity: 0;
}

/* Sidebar open state */
.sidebar.open {
  left: 0 !important;
  opacity: 1;
  animation: slideInFromLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInFromLeft {
  from {
    left: -280px;
    opacity: 0;
  }
  to {
    left: 0;
    opacity: 1;
  }
}

/* Light Theme Sidebar Updates */
[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 255, 0.98) 100%) !important;
  border-right-color: rgba(98, 77, 227, 0.2) !important;
  box-shadow: 4px 0 32px rgba(98, 77, 227, 0.1) !important;
}

[data-theme="light"] .sidebar-item {
  color: rgba(0, 0, 0, 0.7) !important;
}

[data-theme="light"] .sidebar-item::before {
  background: linear-gradient(180deg, rgba(98, 77, 227, 0.9) 0%, rgba(98, 77, 227, 0.5) 100%);
}

[data-theme="light"] .sidebar-item:hover {
  background: transparent !important;
  border-color: transparent !important;
  color: rgba(0, 0, 0, 0.9) !important;
  transform: translateX(4px) !important;
}

[data-theme="light"] .sidebar-item.active {
  background: transparent !important;
  border-color: transparent !important;
  color: rgba(0, 0, 0, 0.95) !important;
  transform: translateX(8px) !important;
}

[data-theme="light"] .sidebar-text {
  color: rgba(0, 0, 0, 0.7) !important;
}

[data-theme="light"] .sidebar-item:hover .sidebar-text {
  color: rgba(0, 0, 0, 0.9) !important;
}

[data-theme="light"] .sidebar-item.active .sidebar-text {
  color: rgba(0, 0, 0, 0.95) !important;
  font-weight: 600 !important;
}

[data-theme="light"] .sidebar-footer-link {
  color: rgba(0, 0, 0, 0.7) !important;
}

[data-theme="light"] .sidebar-footer-link:hover {
  background: rgba(98, 77, 227, 0.1) !important;
  color: rgba(98, 77, 227, 1) !important;
}

[data-theme="light"] .mobile-menu-btn {
  background: linear-gradient(135deg, rgba(98, 77, 227, 0.12) 0%, rgba(98, 77, 227, 0.06) 100%) !important;
  border-color: rgba(98, 77, 227, 0.25) !important;
  color: rgba(0, 0, 0, 0.8) !important;
  box-shadow: 0 4px 12px rgba(98, 77, 227, 0.15) !important;
}

[data-theme="light"] .mobile-menu-btn:hover {
  background: linear-gradient(135deg, rgba(98, 77, 227, 0.2) 0%, rgba(98, 77, 227, 0.12) 100%) !important;
  border-color: rgba(98, 77, 227, 0.4) !important;
  color: rgba(98, 77, 227, 1) !important;
  box-shadow: 0 6px 20px rgba(98, 77, 227, 0.25) !important;
}

/* Scrollbar for sidebar */
.sidebar-menu::-webkit-scrollbar {
  width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(98, 77, 227, 0.3);
  border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(98, 77, 227, 0.5);
}

.sidebar-menu {
  scrollbar-width: thin;
  scrollbar-color: rgba(98, 77, 227, 0.3) transparent;
}


/* Modern Search Results Dropdown */
.search-results-dropdown {
  position: absolute;
  top: 55px;
  left: 0;
  width: 600px;
  max-width: 90vw;
  max-height: 500px;
  background: linear-gradient(135deg, rgba(40, 40, 50, 0.98) 0%, rgba(50, 45, 70, 0.98) 100%);
  border: 1px solid rgba(98, 77, 227, 0.3);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(98, 77, 227, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.search-results-dropdown.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-results-header {
  background: linear-gradient(135deg, rgba(98, 77, 227, 0.15) 0%, rgba(98, 77, 227, 0.08) 100%);
  border-bottom: 1px solid rgba(98, 77, 227, 0.2);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.3px;
}

.search-results-count {
  font-size: 12px;
  font-weight: 500;
  color: rgba(98, 77, 227, 1);
  background: rgba(98, 77, 227, 0.15);
  padding: 4px 10px;
  border-radius: 8px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  max-height: 400px;
  scrollbar-width: thin;
  scrollbar-color: rgba(98, 77, 227, 0.3) transparent;
}

.search-results-grid::-webkit-scrollbar {
  width: 6px;
}

.search-results-grid::-webkit-scrollbar-track {
  background: transparent;
}

.search-results-grid::-webkit-scrollbar-thumb {
  background: rgba(98, 77, 227, 0.3);
  border-radius: 3px;
}

.search-results-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(98, 77, 227, 0.5);
}

/* Search results use recent-game-card classes from navbar-modern.css */

.search-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 14px;
}

.search-more-results {
  padding: 12px 18px;
  text-align: center;
  color: rgba(98, 77, 227, 1);
  font-size: 12px;
  font-weight: 600;
  background: rgba(98, 77, 227, 0.08);
  border-top: 1px solid rgba(98, 77, 227, 0.2);
}

/* Light Theme */
[data-theme="light"] .search-results-dropdown {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 255, 0.98) 100%);
  border-color: rgba(98, 77, 227, 0.25);
  box-shadow: 0 12px 48px rgba(98, 77, 227, 0.15), inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .search-results-header {
  background: linear-gradient(135deg, rgba(98, 77, 227, 0.1) 0%, rgba(98, 77, 227, 0.05) 100%);
  border-bottom-color: rgba(98, 77, 227, 0.15);
  color: rgba(0, 0, 0, 0.95);
}

/* Light theme styles for recent-game-card are already defined above */

[data-theme="light"] .search-empty-state {
  color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .search-more-results {
  color: rgba(98, 77, 227, 1);
  background: rgba(98, 77, 227, 0.08);
  border-top-color: rgba(98, 77, 227, 0.15);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .search-results-dropdown {
    width: 95vw;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
  }
  
  .search-results-dropdown.visible {
    transform: translateX(-50%) translateY(0);
  }
  
  .search-results-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* Online Users Stats */
.online-users-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 18px 12px;
  background: rgba(98, 77, 227, 0.05);
  border-top: 1px solid rgba(98, 77, 227, 0.15);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(98, 77, 227, 0.2);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(98, 77, 227, 0.1);
  border-color: rgba(98, 77, 227, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(98, 77, 227, 0.2);
}

.stat-value {
  font-size: 18px;
  font-weight: 800;
  color: rgba(98, 77, 227, 1);
  background: linear-gradient(135deg, rgba(98, 77, 227, 1) 0%, rgba(139, 92, 246, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.2;
}

/* Light Theme */
[data-theme="light"] .online-users-stats {
  background: rgba(98, 77, 227, 0.05);
  border-top-color: rgba(98, 77, 227, 0.15);
}

[data-theme="light"] .stat-item {
  background: rgba(98, 77, 227, 0.05);
  border-color: rgba(98, 77, 227, 0.2);
}

[data-theme="light"] .stat-item:hover {
  background: rgba(98, 77, 227, 0.12);
  border-color: rgba(98, 77, 227, 0.35);
  box-shadow: 0 4px 12px rgba(98, 77, 227, 0.15);
}

[data-theme="light"] .stat-label {
  color: rgba(0, 0, 0, 0.6);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .online-users-stats {
    gap: 8px;
    padding: 12px 14px 10px;
  }
  
  .stat-item {
    padding: 8px 6px;
  }
  
  .stat-value {
    font-size: 16px;
  }
  
  .stat-label {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .online-users-stats {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .stat-item {
    flex-direction: row;
    justify-content: space-between;
    padding: 8px 12px;
  }
  
  .stat-value {
    font-size: 18px;
  }
  
  .stat-label {
    font-size: 10px;
    text-align: right;
  }
}
