/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License.
 */

.checkboxList {
  flex-wrap: wrap;
}

.checkboxList,
.showcaseList {
  padding: 0;
  list-style: none;
}

.checkboxListItem {
  user-select: none;
  white-space: nowrap;
}

.checkboxListItem:last-child {
  margin-right: 0;
}

.cover {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
}

.searchContainer {
  display: inline-block;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.searchArea {
  position: relative;
  position: relative;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heroBar {
  width: 740px;
}

.showcaseList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 24px;
}

.showcaseFavorite {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: var(--site-color-favorite-background);
}

.showcaseHelpWanted {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: #33d4f4;
}

.helpText {
  color: #245e94;
}

.showcaseFavoriteHeader {
  display: flex;
}

.svgIconFavoriteXs,
.svgIconFavorite {
  color: var(--site-color-svg-icon-favorite);
}

.svgIconFavoriteXs {
  margin-left: 0.625rem;
  font-size: 1rem;
}

.svgIconFavorite {
  margin-left: 1rem;
}

.filterAndCard {
  display: flex;
  padding: 30px;
}

[data-theme="dark"] .filterAndCard {
  background-color: #1f1f1f;
}

.filter {
  flex: 2;
  margin: 0px 25px;
  max-width: 256px;
}

.card {
  flex: 8;
  min-width: 15rem;
  margin: 0px 25px;
  margin: 0px 25px;
}

.load {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.cardLoad {
  margin-top: 15rem;
  width: 100%;
}

.clearAll {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-decoration-line: underline;
  cursor: pointer;
  color: var(--ifm-color-purple);
}

.filterBadge {
  color: var(--ifm-color-purple-light) !important;
  cursor: pointer;
  border-color: #d2ccf8 !important;
  background: #f9f8fe !important;
}

.filterAppliedBar {
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.clearAll {
  color: #6656d1;
  cursor: pointer;
}

[data-theme="dark"] .clearAll {
  color: #a79cf1;
  cursor: pointer;
}

[data-theme="dark"] .filterBadge {
  border-color: #221d46 !important;
  background: #3f3682 !important;
}

/* Desktop-only sticky positioning for filter */
@media screen and (min-width: 997px) {
  .filter {
    position: sticky;
    top: 1rem;
    align-self: flex-start;
  }
}

/* Back to top button for mobile */
.backToTopButton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--ifm-color-purple);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.backToTopButton:hover {
  background-color: var(--ifm-color-purple-light);
}

[data-theme="dark"] .backToTopButton {
  background-color: var(--ifm-color-purple);
}

[data-theme="dark"] .backToTopButton:hover {
  background-color: var(--ifm-color-purple-light);
}

@media screen and (max-width: 996px) {
  .backToTopButton {
    display: flex;
  }
}

@media screen and (max-width: 996px) {
  .filterAndCard {
    flex-direction: column;
  }

  .filter {
    max-width: 100%;
  }

  .heroBar {
    width: 100%;
  }

  .cardLoad {
    margin-top: 1rem;
  }
}
