/* font poppins */
@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");

/* bootstrap icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

/* cores das categorias */
@import url(./categorias.css);

/* telas */
@import url(./telas.css);

* {
  box-sizing: border-box;
  margin: 0;
  border: 0;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-items: center;
  min-height: 100vh;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 94px;
}

footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  height: 100px;

  color: #f4f4f4;
  font-family: "Poppins";
  background-color: #242424;
}

footer .btn {
  user-select: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  background-color: #2967f4;
  transition: 200ms;
}

footer .btn:hover {
  transform: translateY(-4px);
  background-color: #f7941d;
}

/* usado para textar posição e preenchimento dos elemenetos */
.teste {
  box-shadow: inset 0 0 0 2px red;
  background-color: rgba(255, 0, 0, 0.5);
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px 10px;
}

.container .box {
  max-width: 1200px;
  width: 100%;
}

/* HEADER NAV */

#header-top {
  z-index: 9;
  position: fixed;
  top: 0;

  background-color: rgba(255, 255, 255, 0.8);
}

#header-top nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
}

#logo img {
  height: 50px;
}

#header-top .campos {
  display: flex;
  flex-direction: row;
  justify-content: end;
  gap: 20px;
  flex: 1;
}

#header-top .busca {
  position: relative;
  /* max-width: 600px; */
  width: 100%;
}

#header-top .busca input {
  width: 100%;
  height: 100%;
  background-color: #f4f4f4;

  padding-left: 60px;

  border-radius: 10px;

  font-size: 30px;
  font-family: "Poppins";
}

#header-top .busca i {
  position: absolute;
  top: 12px;
  left: 12px;

  color: #2967f4;
  font-size: 30px;
  font-weight: 900;
}

#header-top #nomeUsuario {
  align-self: center;
  font-size: 20px;
  font-family: "Poppins";
  white-space: nowrap;
}

#header-top #btn-login {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
}

#header-top .btn {
  user-select: none;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;

  /* width: 200px; */
  height: 100%;

  padding: 0 16px;

  border-radius: 10px;

  color: #fff;
  font-size: 30px;
  font-family: "Poppins";
  background-color: #2967f4;
  transition: 200ms;
}

#header-top .btn:hover {
  background-color: #f7941d;
}

/* MAIN */

#destaques {
  padding: 0;

  color: #fff;
  font-family: "Poppins";
  text-shadow: 1px 1px 2px #242424;

  /* background-image: url(../img/thumbs/mural.png); */
  background-image: url(../img/thumbs/capa-01.jpeg);
  background-size: cover;
  background-position: center center;
  background-repeat: none;
}

#destaques .gradient {
  padding: 60px 0;
  background: linear-gradient(90deg, #2269b3 0%, rgba(80, 133, 255, 0) 100%);
  backdrop-filter: blur(3px);
}

#destaques h1 {
  font-size: 70px;
}

#destaques h2 {
  font-size: 40px;
}

#destaques p {
  font-size: 24px;
}

#destaques span {
  color: #f7941d;
}

/* categorias */
#area-categorias {
  background-color: #f4f4f4;
}

#area-categorias .categorias {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

#area-categorias .categoria {
  user-select: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;

  color: white;
  font-size: 20px;
  font-family: "Poppins";
  transition: 200ms;
}

#area-categorias .categoria:hover {
  filter: brightness(1.5);
  transform: translateY(-4px);
}

/* CARDS */

.cards {
  flex: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: start;
  gap: 34px;

  color: #242424;
  font-family: "Poppins";
  background-color: #f4f4f4;
}

/* .cards .cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: start;
  gap: 45px;

  color: #242424;
  font-family: "Poppins";
} */

.cards .card,
.tela .pcard {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;

  width: 350px;
  height: 268px;

  border-radius: 10px;

  color: #242424;
  /* text-align: justify; */
  background-color: #fff;
  transition: 200ms;

  user-select: none;
}

.cards .card:hover,
.tela .pcad:hover {
  transform: translateY(-10px);
}

.cards .tags,
.tela .ptags {
  display: flex;
  flex-direction: row;
  justify-content: space-between;

  width: 100%;
}

.cards .procurando,
.cards .oferecendo,
.tela .pprocurando,
.tela .poferecendo {
  background-color: #242424;
}

.cards .tag,
.tela .ptag {
  width: 150px;
  border-radius: 10px 0 0 0;
}

.cards .categoria,
.tela .pcategoria {
  flex: 1;
  border-radius: 0 10px 0 0;
  text-align: right;
}

.cards .tag,
.cards .categoria,
.tela .ptag,
.tela .pcategoria {
  padding: 4px 10px;
  color: white;
  font-size: 16px;
  font-family: "Poppins";
  font-weight: 300;
}

.cards .informacao,
.tela .pinformacao {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;

  width: 100%;
  padding: 10px;
}

.cards .ctitulo,
.tela .ptitulo {
  border-bottom: 1px solid #f4f4f4;
  font-size: 20px;
  text-align: center;
  font-weight: bold;
}

.cards .descricao,
.tela .pdescricao {
  flex: 1;
  font-size: 14px;
}

.cards .btn,
.tela .pbtn {
  width: 100%;
  padding: 10px;
  border-radius: 0 0 10px 10px;
  color: white;
  text-align: center;
  background-color: #444;
}

.cards .card:hover .btn,
.tela .pcard:hover .pbtn {
  background-color: #f7941d;
}

@media (max-width: 975px) {
  main {
    margin-top: 0px;
  }

  #header-top {
    position: relative;
  }

  #header-top .box,
  #header-top .campos {
    flex-direction: column;
    align-items: center;
  }

  #destaques .conteudo {
    text-align: center;
  }

  #destaques .conteudo p {
    display: none;
  }

  #area-categorias .categorias {
    gap: 8px;
  }

  #area-categorias .categoria {
    padding: 4px 8px;
    font-size: 14px;
  }
}
