.game-categories {
  margin-bottom: 20px;
}

.category-tabs {
  display: flex;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #6b7280;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.category-tab.active {
  background: #22c55e;
  color: white;
  font-weight: 600;
}

.category-tab:hover:not(.active) {
  background: #f3f4f6;
  color: #374151;
}

/* Games Container with Sliding Animation */
.games-container {
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 12px 0;
  padding: 0 4px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.section-title img {
  width: 20px;
  height: 20px;
}

/* Sliding Games Row Container */
.games-row-container {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 8px;
}

.games-row {
  display: flex;
  gap: 8px;
  transition: transform 0.5s ease;
  will-change: transform;
  padding: 4px 0;
}

.games-row.sliding {
  animation: slideGames 20s linear infinite;
}

.games-row.paused {
  animation-play-state: paused;
}

/* Smaller Game Cards - Reference Match */
.game-card {
  flex: 0 0 auto;
  width: 80px;
  height: 100px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
  border: 1px solid #e5e7eb;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: #22c55e;
}

.game-card img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 600;
}

/* Colorful Game Cards - Reference Style */
.game-card.colorful {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: none;
}

.game-card.colorful:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.game-thumbnail {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 12px;
}

.game-thumbnail .game-title {
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  line-height: 1.1;
  padding: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-info {
  padding: 4px 6px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: #fff;
}

.game-title {
  font-size: 9px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1px;
  text-transform: uppercase;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-players {
  font-size: 8px;
  color: #22c55e;
  font-weight: 500;
  line-height: 1;
}

/* Infinite Sliding Animation */
@keyframes slideGames {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover */
.games-row-container:hover .games-row {
  animation-play-state: paused;
}

/* Featured Games Row - First row with different styling */
.games-row.featured {
  gap: 12px;
}

.games-row.featured .game-card {
  width: 90px;
  height: 110px;
}

.games-row.featured .game-card img {
  height: 80px;
}

.games-row.featured .game-info {
  height: 30px;
  padding: 4px 8px;
}

.games-row.featured .game-title {
  font-size: 10px;
}

.games-row.featured .game-players {
  font-size: 9px;
}

/* Search bar integration */
.search-bar {
  display: flex;
  align-items: center;
  margin: 16px 0;
  padding: 10px 16px;
  background: #fff;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px #e5e7eb;
  transition: box-shadow 0.2s ease;
}

.search-bar:focus-within {
  box-shadow: inset 0 0 0 2px #22c55e;
}

.search-bar .search-icon {
  width: 20px;
  height: 20px;
  opacity: 0.6;
  margin-right: 8px;
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: #334155;
  background: transparent;
}

.search-bar input::placeholder {
  color: #94a3b8;
}

/* Game Sections with Promotional Images - Reference Style */
.game-section {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.section-promo {
  flex: 0 0 300px;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.section-promo:hover {
  transform: scale(1.02);
}

.promo-image {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
}

.promo-content {
  z-index: 2;
  position: relative;
}

.promo-content h3 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.promo-arrow {
  background: rgba(255,255,255,0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  transition: all 0.3s ease;
}

.section-promo:hover .promo-arrow {
  background: rgba(255,255,255,0.3);
  transform: translateX(4px);
}

/* Live Casino Section */
.live-casino-section .promo-image {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.live-casino-section .dealer-image {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="35" r="15" fill="%23fff" opacity="0.8"/><path d="M25 85c0-15 10-25 25-25s25 10 25 25" fill="%23fff" opacity="0.8"/></svg>') center/contain no-repeat;
  opacity: 0.8;
}

/* Tembak Ikan Section */
.tembak-ikan-section .promo-image {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
}

.tembak-ikan-section .shark-image {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 80px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 80"><path d="M10 40c0-10 20-20 40-15s30 5 40 10c10 5 20 15 10 25s-30 5-40 0-30-5-40-10c-10-5-10-10-10-10z" fill="%23fff" opacity="0.8"/></svg>') center/contain no-repeat;
  opacity: 0.8;
}

/* Lotre Section */
.lotre-section .promo-image {
  background: linear-gradient(135deg, #dc2626, #f59e0b);
}

.lotre-section .lottery-balls {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 80px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 80"><circle cx="30" cy="25" r="12" fill="%23fff" opacity="0.8"/><circle cx="60" cy="40" r="12" fill="%23fff" opacity="0.7"/><circle cx="90" cy="25" r="12" fill="%23fff" opacity="0.8"/></svg>') center/contain no-repeat;
  opacity: 0.8;
}

/* Virtual Section */
.virtual-section .promo-image {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.virtual-section .virtual-image {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 80px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 80"><rect x="20" y="20" width="80" height="40" rx="8" fill="%23fff" opacity="0.8"/><circle cx="40" cy="40" r="8" fill="%23000" opacity="0.3"/><circle cx="80" cy="40" r="8" fill="%23000" opacity="0.3"/></svg>') center/contain no-repeat;
  opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .game-card {
    width: 75px;
    height: 95px;
  }
  
  .game-card img {
    height: 65px;
  }
  
  .games-row {
    gap: 6px;
  }
  
  .section-promo {
    flex: 0 0 250px;
    height: 140px;
  }
  
  .promo-content h3 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .game-card {
    width: 70px;
    height: 90px;
  }
  
  .game-card img {
    height: 60px;
  }
  
  .games-row {
    gap: 4px;
  }
  
  .game-title {
    font-size: 8px;
  }
  
  .game-players {
    font-size: 7px;
  }
  
  .game-section {
    flex-direction: column;
    gap: 12px;
  }
  
  .section-promo {
    flex: 1;
    height: 120px;
  }
  
  .promo-content h3 {
    font-size: 18px;
  }
  
  .promo-image {
    padding: 16px;
  }
}
