/* Casino UX — back button, hot games, search, recent panel */

.wm-header {
  position: relative;
}

.global-back-btn {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 22px;
  z-index: 1001;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.global-back-btn:hover {
  color: #ffd700;
  background: rgba(212, 175, 55, 0.2);
}

.wm-header--has-back .wm-header__menu-btn {
  margin-left: 36px;
}

#hot-games-section {
  margin-bottom: 1.25rem;
}

.wm-hot-games__title {
  font-family: 'Urbanist', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #ffd700;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wm-hot-games__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wm-hot-games__grid .game-card-item {
  border: 1px solid rgba(255, 215, 0, 0.45);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.18);
}

.search-box-wrapper {
  position: relative;
  margin-bottom: 12px;
}

.search-box-wrapper .game-search-input {
  width: 100%;
  background: #202020 !important;
  border: 1px solid #3a3a3a !important;
  color: #fff !important;
  padding-left: 40px !important;
  border-radius: 20px !important;
  font-family: 'Urbanist', sans-serif;
  min-height: 42px;
}

.search-box-wrapper .game-search-input:focus {
  border-color: rgba(212, 175, 55, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12) !important;
}

.search-box-wrapper .las.la-search {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 18px;
  pointer-events: none;
}

.game-card-item.is-search-hidden {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

#wmGamesAjaxGrid.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.wm-recent-sidebar {
  position: fixed;
  right: -280px;
  top: 0;
  width: 280px;
  height: 100%;
  height: 100dvh;
  background: #151515;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 20px 16px;
  overflow-y: auto;
  font-family: 'Urbanist', sans-serif;
}

.wm-recent-sidebar__title {
  color: #ffdf00;
  font-size: 15px;
  font-weight: 800;
  margin: 0 32px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wm-recent-sidebar__close {
  position: absolute;
  top: 14px;
  right: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.wm-recent-sidebar__empty {
  color: #94a3b8;
  font-size: 13px;
  margin: 0;
}

.wm-recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.wm-recent-item img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.wm-recent-item span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wm-recent-trigger-wrap {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  touch-action: none;
}

.wm-recent-trigger {
  position: relative;
  right: auto;
  top: auto;
  transform: none;
  width: 44px;
  height: 52px;
  border: none;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(135deg, #d4af37, #ffdf00);
  color: #1a1004;
  font-size: 22px;
  cursor: grab;
  box-shadow: -4px 0 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wm-recent-trigger-wrap:active .wm-recent-trigger {
  cursor: grabbing;
}

.wm-recent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wm-recent-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 575px) {
  .wm-hot-games__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}
