:root {
  --font-family-base: "Nunito", sans-serif;

  --c-bg: #ffffff;
  --c-bg-alt: #f6f6f7;

  --c-text-1: rgba(60, 60, 67);
  --c-text-2: rgba(60, 60, 67, 0.78);
  --c-text-3: rgba(60, 60, 67, 0.56);

  --c-border: #c2c2c4;
  --c-divider: #e2e2e3;

  --c-brand: #f56565;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family-base);
}

body {
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  color: var(--c-text-1);
  background-color: var(--c-bg);
  font-synthesis: style;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin-bottom: calc(55px + 25px);
}

a {
  text-decoration: none;
}

.icon {
  width: 20px;
  height: 20px;
}

.header {
  width: 100%;
  position: fixed;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
}
/* HEADER  */
.menu {
  display: flex;
  align-items: center;
  justify-content: space-around;
  column-gap: 5px;

  padding: 10px;
  background-color: var(--c-bg);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.16);
}

.menu__item {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  color: var(--c-text-1);
  font-weight: 500;
  font-size: 14px;
}

.menu__item.active {
  color: var(--c-brand);
}

.menu__icon {
  width: 25px;
  height: 25px;
}

/* MAIN  */
.main {
  margin: 0 10px;
}

/* SECTION  */
.section {
  padding: 20px 0;
}

.section__title {
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.section__icon {
  color: var(--c-brand);
}

.section__description {
  margin-bottom: 20px;
  font-size: 14px;
}

/* SEARCH  */
.search {
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.search__input {
  width: 100%;
  padding: 10px 20px;
  font-size: 16px;
  border: 1px solid var(--c-text-2);
  border-radius: 5px 0px 0px 5px;
  outline: none;
}
.search__button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 20px;
  font-size: 16px;
  border: 1px solid var(--c-brand);
  border-radius: 0px 5px 5px 0px;
  border-left: 0px;
  background-color: var(--c-brand);
  color: #ffffff;
}

.search__icon {
  width: 20px;
  height: 20px;
}

/* CATEGORY  */
.category {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 10px;
}

.category__list {
  list-style: none;
  margin-bottom: 10px;

  display: inline-flex;
  white-space: wrap;
  align-items: center;
  gap: 10px;
}

.category__link {
  flex-shrink: 0;
  padding: 2px 10px;
  color: var(--c-text-1);
  background-color: var(--c-bg);
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.category__link.active {
  background-color: var(--c-brand);
  color: #ffffff;
}

/* CARD  */
.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cards__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.card__item {
  padding: 1rem;
  background-color: var(--c-bg);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.16);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card__header {
  /* display: flex; */
  /* align-items: center; */
  /* justify-content: space-between; */
}
.card__title {
  font-size: 16px;
}
.card__tag {
  font-size: 12px;
  border: 1px solid var(--c-brand);
  border-radius: 5px;
  padding: 1px 3px;
  color: var(--c-brand);
}
.card__description {
  font-size: 14px;
}
.card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--c-brand);
  color: #ffffff;
  border-radius: 5px;
  padding: 5px 10px;
  margin-top: auto;
  font-size: 14px;
}
.card__icon {
  width: 15px;
  height: 15px;
}

.card__more {
  margin: 20px auto;
  padding: 10px 20px;
  border: 1px solid var(--c-brand);
  background-color: var(--c-bg);
  color: var(--c-brand);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.card__more:hover {
  background-color: var(--c-brand);
  color: #ffffff;
}

.card__more:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.no-results {
  text-align: center;
  padding: 20px;
  color: #666;
  font-style: italic;
}
.search__loading,
.search__no-results,
.search__error {
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
  color: #555;
}
.search__error {
  color: red;
}