/* Games Section Styles */

#panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}

.panel-btn {
  padding: 12px 24px;
  background: var(--bg-card, #1c2128);
  border: 1px solid var(--border-color, #30363d);
  border-radius: 25px;
  color: var(--text-secondary, #8b949e);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.panel-btn:hover {
  background: rgba(46, 204, 113, 0.1);
  border-color: var(--primary-green, #2ecc71);
  color: var(--text-primary, #fff);
}

.panel-btn.active {
  background: var(--primary-green, #2ecc71);
  border-color: var(--primary-green, #2ecc71);
  color: #fff;
}

#block_big {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.game-card {
  position: relative;
  background: var(--bg-card, #1c2128);
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(46, 204, 113, 0.25);
}

.game-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

.game-card-title {
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.game-card-provider {
  color: #2ecc71;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.game-card-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 56px;
  height: 56px;
  background: var(--primary-green, #2ecc71);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.game-card:hover .game-card-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.game-card-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 14px solid white;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}

/* Badge стили */
.game-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

.game-badge.new {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
}

.game-badge.hot {
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: white;
}

.game-badge.jackpot {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #1a1a1a;
}

/* Список провайдеров */
.providers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.provider-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card, #1c2128);
  border: 1px solid var(--border-color, #30363d);
  border-radius: 8px;
  color: var(--text-secondary, #8b949e);
  font-size: 13px;
  transition: all 0.3s ease;
}

.provider-item:hover {
  border-color: var(--primary-green, #2ecc71);
  color: var(--text-primary, #ffffff);
}

.provider-item img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

/* Загрузка игр */
.games-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--text-secondary, #8b949e);
}

.games-loading::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color, #30363d);
  border-top-color: var(--primary-green, #2ecc71);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Кнопка "Показать больше" */
.load-more-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 32px auto 0;
  padding: 14px 32px;
  background: transparent;
  border: 2px solid var(--primary-green, #2ecc71);
  border-radius: 10px;
  color: var(--primary-green, #2ecc71);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: var(--primary-green, #2ecc71);
  color: white;
}

/* Responsive */
@media (max-width: 1024px) {
  #block_big {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
  }
}

@media (max-width: 768px) {
  #block_big {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  
  #panel {
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  
  .panel-btn {
    padding: 10px 16px;
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  .game-card-overlay {
    padding: 12px;
  }
  
  .game-card-title {
    font-size: 12px;
    margin-bottom: 4px;
  }
  
  .game-card-provider {
    font-size: 10px;
  }
  
  .game-card-play-btn {
    width: 44px;
    height: 44px;
  }
  
  .game-card-play-btn::after {
    border-left: 10px solid white;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    margin-left: 3px;
  }
  
  .game-badge {
    padding: 3px 8px;
    font-size: 9px;
    top: 8px;
    left: 8px;
  }
}

@media (max-width: 480px) {
  #block_big {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  #panel {
    gap: 6px;
  }
  
  .panel-btn {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 20px;
  }
  
  .game-card {
    border-radius: 12px;
  }
  
  .game-card-overlay {
    padding: 10px;
  }
  
  .game-card-title {
    font-size: 11px;
  }
  
  .game-card-provider {
    font-size: 9px;
  }
  
  .game-card-play-btn {
    width: 38px;
    height: 38px;
  }
  
  .game-badge {
    padding: 2px 6px;
    font-size: 8px;
    border-radius: 4px;
  }
  
  .load-more-btn {
    padding: 12px 24px;
    font-size: 14px;
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  #block_big {
    gap: 8px;
  }
  
  .panel-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .game-card-play-btn {
    width: 32px;
    height: 32px;
  }
  
  .game-card-play-btn::after {
    border-left: 8px solid white;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    margin-left: 2px;
  }
}

