.game-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  margin: 30px 0;
}

.game-slider-wrapper {
  overflow: hidden;
  position: relative;
}

.game-slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Game Card */
.game-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 250px;
  background: linear-gradient(135deg, rgba(30, 39, 46, 0.95), rgba(47, 53, 66, 0.95));
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 165, 2, 0.1), rgba(255, 215, 0, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 165, 2, 0.3);
}

.game-card:hover::before {
  opacity: 1;
}

/* Game Image */
.game-card-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #2f3542, #1e272e);
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-card-image img {
  transform: scale(1.1);
}

/* Play Overlay */
.game-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.game-card:hover .game-play-overlay {
  opacity: 1;
}

.play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a8bb1, #06405e);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 238, 255, 0.6);
}

.play-btn i {
  font-size: 30px;
  color: #ffffff;
  margin-left: 3px;
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 238, 255, 0.6);
}

/* Game Info */
.game-card-info {
  padding: 5px;
  position: relative;
  z-index: 2;
}

.game-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-provider {
  font-size: 12px;
  color: #1a8bb1;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Game Badge */
.game-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
  animation: pulse 2s infinite;
}

.game-badge.new {
  background: linear-gradient(135deg, #1a8bb1, #06405e);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 195, 255, 0.4);
}

.game-badge.hot {
  top: 10px;
  right: 10px;
  width: 45px;
  height: 25px;
  background: linear-gradient(135deg, #ff0000, #970000);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Slider Navigation */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(30, 39, 46, 0.95);
  border: 2px solid #1a8bb1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slider-nav:hover {
  background: linear-gradient(135deg, #1a8bb1, #06405e);
  transform: translateY(-50%) scale(1.1);
  border-color: #06405e;
}

.slider-nav:hover i {
  color: #2f3542;
}

.slider-nav i {
  font-size: 20px;
  color: #1a8bb1;
  transition: color 0.3s ease;
}

.slider-prev {
  left: -25px;
}

.slider-next {
  right: -25px;
}

/* Slider Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.slider-dot.active {
  background: linear-gradient(135deg, #1a8bb1, #06405e);
  width: 30px;
  border-radius: 6px;
}

/* Section Headers */
.games-section {
  margin: 60px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(0, 225, 255, 0.3);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-title i {
  color: #1a8bb1;
  font-size: 32px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #1a8bb1, #06405e);
  border-radius: 2px;
}

.view-all-btn {
  padding: 10px 25px;
  background: linear-gradient(135deg, rgba(0, 204, 255, 0.2), rgba(2, 103, 255, 0.2));
  border: 2px solid #1a8bb1;
  border-radius: 25px;
  color: #1a8bb1;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.view-all-btn:hover {
  background: linear-gradient(135deg, #1a8bb1, #06405e);
  color: #2f3542;
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .game-card {
    flex: 0 0 calc(33.333% - 14px);
  }

  .slider-prev {
    left: -15px;
  }

  .slider-next {
    right: -15px;
  }
}

@media (max-width: 992px) {
  .game-card {
    flex: 0 0 calc(50% - 10px);
    min-width: 200px;
  }

  .game-card-image {
    height: 150px;
  }

  .section-title {
    font-size: 24px;
  }

  .slider-nav {
    width: 40px;
    height: 40px;
  }

  .slider-nav i {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .game-card {
    flex: 0 0 calc(100% - 10px);
    min-width: 250px;
  }

  .slider-prev,
  .slider-next {
    display: none;
  }

  .section-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .view-all-btn {
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .game-card-image {
    height: 140px;
  }

  .game-card-title {
    font-size: 14px;
  }

  .play-btn {
    width: 50px;
    height: 50px;
  }

  .play-btn i {
    font-size: 20px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-title i {
    font-size: 24px;
  }
}

/* Loading State */
.game-slider.loading .game-card {
  opacity: 0.5;
  pointer-events: none;
}

.game-slider.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 225, 255, 0.3);
  border-top-color: #1a8bb1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
