/* All Games Section */
.all-games-section {
  padding: 2rem 0;
  background-color: #f5f0ff;
  border-radius: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.all-games-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.all-games-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.all-games-filters {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Category Dropdown */
.category-dropdown {
  position: relative;
}

.category-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background-color: #fce7ec;
  border: none;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-dropdown-btn:hover,
.category-dropdown-btn.active {
  background-color: #ffd0dc;
}

.category-dropdown-btn svg {
  transition: transform 0.2s ease;
}

.category-dropdown-btn.active svg {
  transform: rotate(180deg);
}

.category-dropdown-content {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.75rem;
  min-width: 200px;
  z-index: 10;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

.category-dropdown-content.show {
  display: block;
}

.category-option {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.category-option:hover {
  background-color: #f5f0ff;
}

.category-checkbox {
  margin-right: 0.75rem;
}

/* Active Filters */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background-color: #ff4d79;
  color: white;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.remove-filter {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Games Grid */
.all-games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  padding: 0 1rem;
  position: relative;
  min-height: 200px;
}

.all-games-grid.loading {
  opacity: 0.6;
}

.all-games-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.all-game-card {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background-color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  aspect-ratio: 1 / 1;
}

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

.all-game-thumbnail {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

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

.all-game-card.hover .all-game-thumbnail img {
  transform: scale(1.05);
}

.all-game-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

/* Error Message */
.error-message {
  text-align: center;
  padding: 2rem;
  color: #ff4d79;
  font-weight: 600;
  grid-column: 1 / -1;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .all-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .all-games-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .all-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .category-dropdown-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}
