/* Game Animation and Effects */

/* Game Box Enhancement */
.list-game {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, #f5f5f5);
}

.list-game:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

/* Thumbnail Enhancement */
.list-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.list-thumbnail img {
  transition: transform 0.5s ease;
  width: 100%;
}

.list-game:hover .list-thumbnail img {
  transform: scale(1.05);
}

/* Play Button Overlay */
.list-thumbnail::after {
  content: "\f04b"; /* Font Awesome play icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 50px;
  height: 50px;
  background-color: rgba(20, 170, 255, 0.85);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}

.list-game:hover .list-thumbnail::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Water Wave Effect */
.list-thumbnail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.3) 0%, rgba(0,75,140,0.1) 100%);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.list-game:hover .list-thumbnail::before {
  opacity: 1;
  animation: waterwave 2s infinite;
}

@keyframes waterwave {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Game Title Enhancement */
.list-title {
  padding: 12px 15px;
  font-weight: 600;
  color: #333;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-game:hover .list-title {
  color: #0080ff;
}

/* Star Rating Enhancement */
.star-rating {
  padding: 8px 0;
  transition: all 0.3s ease;
}

.list-game:hover .star-rating {
  transform: scale(1.1);
}

/* Loading Animation for Games */
.item-grid {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add animation delay for each game to create a cascade effect */
.item-grid:nth-child(1) { animation-delay: 0.1s; }
.item-grid:nth-child(2) { animation-delay: 0.2s; }
.item-grid:nth-child(3) { animation-delay: 0.3s; }
.item-grid:nth-child(4) { animation-delay: 0.4s; }
.item-grid:nth-child(5) { animation-delay: 0.5s; }
.item-grid:nth-child(6) { animation-delay: 0.6s; }
.item-grid:nth-child(7) { animation-delay: 0.7s; }
.item-grid:nth-child(8) { animation-delay: 0.8s; }
.item-grid:nth-child(9) { animation-delay: 0.9s; }
.item-grid:nth-child(10) { animation-delay: 1.0s; }
.item-grid:nth-child(11) { animation-delay: 1.1s; }
.item-grid:nth-child(12) { animation-delay: 1.2s; }

/* Load More Button Enhancement */
.btn-load-more-games {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #0099ff, #006bb3);
  border: none;
  box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.btn-load-more-games::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.6s ease;
}

.btn-load-more-games:hover::before {
  left: 100%;
}

.btn-load-more-games:hover {
  box-shadow: 0 6px 12px rgba(0,123,255,0.5);
  transform: translateY(-2px);
} 