@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-background-color: #fefefa;
  --primary-text-color: #242f40;
  --secondary-background-color: #242f40;
  --secondary-text-color: #fefefa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins";
}

/* ------------------------------------------------ Wellcome ---------------------------------------------------------- */

#wellcome {
  display: flex;
  justify-content: center;
  padding: 27px 80px;
}

.wellcomeBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--secondary-background-color);
  color: var(--secondary-text-color);
  box-shadow: 5px 5px 10px #888;
  border-radius: 8px;
  padding: 40px;
}

/* --------------------------------------------------- Botão de Pesquisa --------------------------------------------- */

.titleAndSearch {
  display: flex;
  gap: 10px;
  align-items: center;
}

.searchAndFilter {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 70%;
}

.searchBar {
  background-color: var(--secondary-background-color);
  height: 40px;
  border-radius: 40px;
  padding: 10px;
  display: flex;
  align-items: center;
  transition: 0.5s ease;
  width: 40px;
  overflow: hidden;
}

.searchBar.expanded {
  width: 70%;
}

.searchInput {
  width: 0;
  border: none;
  outline: none;
  background: none;
  padding: 0;
  font-size: 16px;
  transition: 0.5s ease;
  color: var(--secondary-text-color);
}

.searchBar.expanded .searchInput {
  width: 100%;
  padding: 0 10px;
}

.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 40px;
  color: var(--secondary-text-color);
  transition: 0.4s;
  cursor: pointer;
}

/* -------------------------------------------------- Botão Filtro --------------------------------------------------- */

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.filter-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--secondary-text-color);
  background: var(--secondary-background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.filter-btn img {
  width: 18px;
}

.filter-btn:hover {
  background-color: #303b4e;
  border-color: rgba(254, 254, 250, 0.7);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.filter-bar {
  display: none;
  flex-direction: row;
  margin-top: 16px;
  padding: 27px;
  border-radius: 16px;
  background: var(--secondary-background-color);
  color: var(--secondary-text-color);
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.filter-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-bar.active {
  display: flex;
}

.filter-bar label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rowOfOptions {
  display: flex;
  flex-direction: row;
  gap: 50px;
}

.filter-btn-options {
  padding: 15px 35px;
  border-radius: 6px;
  border: 1px solid var(--primary-background-color);
  background: var(--secondary-background-color);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.4s ease;
}

.clean-filter {
  background-color: oklch(0.4 0.14 20);
  border-color: transparent;
}

.filter-btn-options:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Custom radio button */

.filter-label {
  display: block;
  position: relative;
  padding: 10px 14px 10px 42px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 16px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Hide the browser's default radio button */
.filter-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom radio button */
.checkmark {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  background-color: transparent;
  border-radius: 50%;
  border: 2px solid rgba(254, 254, 250, 0.5);
  box-sizing: border-box;
}

/* Hover do label */
.filter-label:hover input ~ .checkmark {
  background-color: rgba(254, 254, 250, 0.06);
}

/* When the radio button is checked, add a blue background */
.filter-label input:checked ~ .checkmark {
  background-color: #efa00b;
  border-color: #efa00b;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
/* .filter-label input:checked ~ .checkmark:after {
  display: block;
} */

/* Style the indicator (dot/circle) */
.filter-label .checkmark:after {
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.filter-label:hover {
  background-color: rgba(254, 254, 250, 0.04);
  transform: translateY(-1px);
}

/* ------------------------------------------------- Historia dos santos --------------------------------------------- */

#mainSectionOfTab {
  padding: 27px 80px;
}

.contentCard {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 27px 0px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--secondary-background-color);
  color: var(--secondary-text-color);
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.chip-label {
  opacity: 0.8;
}

.chip-value {
  font-weight: 600;
}

.cardImg {
  width: 400px;
  border-radius: 8px;
}

.cardDescription {
  font-size: 16px;
  margin-bottom: 20px;
}

.learnAbout {
  background-color: var(--secondary-background-color);
  color: var(--secondary-text-color);
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 8px;
  border: 0;
  transition: 0.4s;
}

.learnAbout:hover {
  cursor: pointer;
  transform: translateY(-5px);
}

/* ---------------------------------------------- Responsividade ------------------------------------------------------ */

/* ---------------------------------- 900px --------------------------------- */
@media (max-width: 900px) {
  /* Bem-vindo */
  #wellcome {
    padding: 27px 50px;
  }

  .actions {
    gap: 2px;
  }

  .titleAndSearch {
    h1 {
      font-size: 28px;
      width: 45%;
    }
  }

  .searchAndFilter {
    width: 55%;
  }

  .searchBar.expanded {
    width: 90%;
  }

  /* Formação */
  #mainSectionOfTab {
    padding: 27px 50px;
  }

  .contentCard {
    flex-direction: column;
  }

  .cardImg {
    width: 100%;
  }

  .cardTitle {
    font-size: 20px;
  }
}

/* ------------------------------- 430px ------------------------------------- */

@media (max-width: 470px) {
  /* Bem-vindo */
  #wellcome {
    padding: 20px;
  }

  .wellcomeBox {
    align-items: flex-start;
    padding: 25px;
  }

  .boxTitle {
    font-size: 20px;
  }

  .extraText {
    display: none;
  }

  .text {
    font-size: 14px;
  }

  /* Main content */
  #mainSectionOfTab {
    padding: 20px;
  }

  .titleAndSearch {
    gap: 2px;

    h1 {
      font-size: 26px;
      width: 100%;
    }
  }

  .searchAndFilter {
    width: 100%;
  }

  .actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .searchBar.expanded {
    width: 80%;
  }

  .searchInput {
    font-size: 15px;
  }

  .filter-bar.active {
    gap: 10px;
    padding: 20px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .rowOfOptions {
    flex-direction: column;
    gap: 12px;
  }

  .filter-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .filter-btn-options {
    width: 100%;
    text-align: center;
  }

  .checkmark {
    width: 20px;
    height: 20px;
  }

  .filter-label {
    font-size: 14px;
  }

  .filter-btn-options {
    padding: 10px 30px;
  }

  .contentCard {
    padding: 20px 0px;
    gap: 10px;
  }

  .cardDescription {
    margin-bottom: 10px;
  }

  .learnAbout {
    font-size: 14px;
  }
}
