/* Game Sections Styles */
.game-section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  position: relative;
  padding-left: 15px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 24px;
  width: 5px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

.view-all-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-all-link:hover {
  color: var(--secondary-color);
  transform: translateX(3px);
}

.view-all-link svg {
  transition: transform 0.3s ease;
}

.view-all-link:hover svg {
  transform: translateX(3px);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.game-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  background-color: var(--card-background);
  height: 100%;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.game-card-link {
  display: block;
  text-decoration: none;
  color: var(--text-color);
  height: 100%;
}

.game-thumbnail-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.game-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-thumbnail {
  transform: scale(1.1);
}

.game-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.play-now-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.game-card:hover .play-now-btn {
  transform: translateY(0);
}

.game-info {
  padding: 15px;
}

.game-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-color);
}

.game-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.no-games-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px;
  background-color: var(--card-background);
  border-radius: var(--card-radius);
  box-shadow: var(--box-shadow);
}

/* Category-specific styles */
.new-games-section .section-title::before {
  background: linear-gradient(to bottom, #30c9c9, #26c9c3);
}

.girl-games-section .section-title::before {
  background: linear-gradient(to bottom, #ff85a2, #ff4d7d);
}

.trending-games-section .section-title::before {
  background: linear-gradient(to bottom, #8c52ff, #7b68ee);
}

/* Responsive styles */
@media (max-width: 992px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .game-title {
    font-size: 0.9rem;
  }

  .game-summary {
    font-size: 0.8rem;
  }
}
