/* Recent Games Dropdown Styles */
.recent-games-dropdown {
  position: relative;
  display: inline-block;
}

.recent-games-trigger {
  cursor: pointer;
  transition: all 0.3s ease;
}

.recent-games-trigger:hover {
  opacity: 0.8;
}

.recent-games-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 520px;
  max-width: 580px;
  background: linear-gradient(135deg, #333333 0%, #2a2a2a 100%);
  border: 2px solid var(--color);
  border-radius: 12px;
  padding: 0;
  margin-top: 8px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-height: 450px;
  overflow-y: auto;
}

.recent-games-dropdown.active .recent-games-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.recent-games-header {
  background: var(--color);
  color: white;
  padding: 12px 15px;
  border-radius: 6px 6px 0 0;
}

.recent-games-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.recent-games-list {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 580px;
}

.recent-game-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 15px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 1px solid #444;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 100px;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}

.recent-game-item:hover {
  background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
  transform: translateY(-2px);
  border-color: var(--color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.recent-game-item:last-child {
  margin-bottom: 0;
}

.recent-game-image {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.recent-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-game-image .no-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color) 0%, #444 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.recent-game-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recent-game-name {
  color: #ffff96;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.5px;
}

.recent-game-provider {
  color: #00d4ff;
  font-size: 12px;
  margin-bottom: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.recent-game-time {
  color: #999;
  font-size: 11px;
  font-weight: 500;
  font-style: italic;
}

.recent-game-play {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: var(--color);
  font-size: 18px;
  opacity: 0;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--color) 0%, #ff6b35 100%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.recent-game-item:hover .recent-game-play {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* Add a subtle shine effect */
.recent-game-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.recent-game-item:hover::before {
  left: 100%;
}

/* Responsive adjustments for recent games */
@media (max-width: 768px) {
  .recent-games-menu {
    right: -20px;
    min-width: 280px;
  }
}

/* History Menu Dropdown Styles */

menu li:has([data-icon="history"]) ul.game-list li {
  border-bottom: 1px solid #444;
  transition: background-color 0.3s ease;
  flex-basis: 13% !important;
}

menu li:has([data-icon="history"]) ul.game-list li:hover {
  background-color: #3a3a3a;
}

menu li:has([data-icon="history"]) ul.game-list li a {
  display: flex;
  padding: 10px 15px !important;
  text-decoration: none;
  color: #ffff96;
  flex-direction: column;
  align-items: center;
}

menu li:has([data-icon="history"]) ul.game-list li img {
  width: 100px;
  height: 100px;
  border-radius: 4px;
  margin-right: 10px;
  object-fit: cover;
  position: unset;
}

menu li:has([data-icon="history"]) ul.game-list li span {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

menu li:has([data-icon="history"]) ul.game-list li small {
  font-size: 11px;
  color: #999;
  margin-left: 10px;
}
menu li:has([data-icon="history"]) ul.game-list li .game-image {
  position: relative;
  display: block;
  margin: 0 auto;
  z-index: 1;
  width: 110px;
  height: 110px;
  border-radius: 10px;
  object-fit: cover;
  background: #181f37;
  box-shadow: 0 0 0 3px #ffe877, 0 2px 10px #000c;
  border: 2px solid #151a2b;
  transition: box-shadow 0.2s;
}
