/* ======= Cursus Filters ======= */

.cursus-filters {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cursus-filters h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #333;
  font-weight: 600;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.filter-group label {
  font-size: 0.9rem;
  color: #555;
  font-weight: 500;
  margin-bottom: 0.3rem;
  display: block;
}

.filter-item {
  display: flex;
  flex-direction: column;
}

.filter-select {
  min-width: 180px;
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  background: white;
  font-size: 0.95rem;
  color: #444;
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-select:hover {
  border-color: #3399cc;
}

.filter-select:focus {
  outline: none;
  border-color: #3399cc;
  box-shadow: 0 0 0 3px rgba(51, 153, 204, 0.1);
}

.filter-checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: white;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-checkbox-group:hover {
  background: #f0f4f8;
}

.filter-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3399cc;
}

.filter-checkbox-group label {
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.filter-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.filter-reset {
  padding: 0.5rem 1.2rem;
  color: #3399cc;
  background: white;
  border: 1px solid #3399cc;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.filter-reset:hover {
  background: #3399cc;
  color: white;
}

.result-count {
  margin-left: auto;
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
}

.result-count strong {
  color: #3399cc;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .cursus-filters {
    padding: 1.5rem 1rem;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .filter-select {
    width: 100%;
    min-width: auto;
  }

  .filter-item {
    width: 100%;
  }

  .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .result-count {
    margin-left: 0;
    text-align: center;
  }

  .filter-reset {
    width: 100%;
  }
}

/* Filter loading state */
.filters-loading .filter-select,
.filters-loading .filter-checkbox-group {
  opacity: 0.6;
  pointer-events: none;
}

/* Empty state */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.no-results i {
  font-size: 3rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.no-results h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #555;
}

.no-results p {
  font-size: 0.95rem;
  color: #888;
}
