@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&display=swap");
/* Reset e configurações globais */
* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

/* Estilos do body */
body {
  min-height: 100vh;
  width: 100vw;
  font-family: "League Spartan", serif;
  background-color: hsl(0, 0%, 100%);
  background-image: url("../../images/bg-pattern-top-mobile.svg"), url("../../images/bg-pattern-bottom-mobile.svg");
  background-repeat: no-repeat;
  background-position: top left, bottom right;
  background-size: 100%;
  /* Troca do BG */
  /* Remove scroll na tela de desktop */
}
@media screen and (min-width: 758px) and (max-width: 100vw) {
  body {
    background-image: url("../../images/bg-pattern-top-desktop.svg"), url("../../images/bg-pattern-bottom-desktop.svg");
    background-size: 50%, 50%;
  }
}
@media screen and (min-width: 1150px) and (max-width: 100vw) {
  body {
    overflow: hidden;
  }
}

/* Estilos do main */
main {
  width: 80%;
  max-width: 1100px;
  margin: 3rem auto;
  /* Troca para grid */
  /* Corrige o 'overflow:hidden' do body */
}
@media screen and (min-width: 758px) and (max-width: 100vw) {
  main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "header rating" "reviews reviews";
  }
}
@media screen and (min-width: 1150px) and (max-width: 100vw) {
  main {
    margin-top: -2rem;
  }
}

/* Áreas do grid para tablet e desktop */
header {
  grid-area: header;
}

.rating {
  grid-area: rating;
}

.reviews {
  grid-area: reviews;
}

/* Estilos do header */
header {
  text-align: center;
  /* Alinha titulo e subtitulo */
}
header h1 {
  color: hsl(300, 43%, 22%);
  margin: 2rem 0;
  font-size: 3.5rem;
  font-weight: 700;
}
header p {
  color: hsl(303, 10%, 53%);
}
@media screen and (min-width: 758px) and (max-width: 100vw) {
  header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    max-width: 530px;
  }
}

/* Estilos da seção de estrelas */
.rating {
  margin: 3em 0;
  /* Media queries - alinha os cards das estrelas */
  /* Media queries - movimentas os cards para o desktop */
}
@media screen and (min-width: 758px) and (max-width: 100vw) {
  .rating {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding: 1em;
  }
}
@media screen and (min-width: 1150px) and (max-width: 100vw) {
  .rating {
    width: 550px;
  }
  .rating .rated-card--center {
    margin-left: 25px;
  }
  .rating .rated-card--right {
    margin-left: 50px;
  }
}

/* Estilos dos cards de avaliação */
.rated-card {
  background: hsl(300, 24%, 96%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: hsl(300, 43%, 22%);
  font-size: 0.8rem;
  font-weight: 400;
  width: 100%;
  padding: 0.8em;
  border-radius: 0.7rem;
  margin-bottom: 1rem;
  /* Media queries */
}
@media screen and (min-width: 758px) and (max-width: 1150px) {
  .rated-card {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding: 1em;
  }
}
@media screen and (min-width: 1150px) and (max-width: 100vw) {
  .rated-card {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    padding: 1.1rem;
  }
}

.rated-card__star {
  margin-bottom: 0.5rem;
}

.rated-card__text {
  white-space: nowrap;
}

/* Estilos da seção de avaliações */
.reviews {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  gap: 2rem;
  /* Muda para grid os reviews no tablet */
  /* Retorna para flex no desktop */
}
@media screen and (min-width: 758px) and (max-width: 1150px) {
  .reviews {
    gap: 1.2rem;
    margin-top: 1rem;
    display: grid;
    grid-template-areas: "review1 review3" "review2 review2";
    /* Areas do grid */
    /* Ajusta o header do card */
  }
  .reviews .review-1 {
    grid-area: review1;
  }
  .reviews .review-2 {
    grid-area: review2;
  }
  .reviews .review-3 {
    grid-area: review3;
  }
  .reviews .review-card {
    height: 14.4rem;
  }
  .reviews .review-card__header {
    display: flex;
    flex-direction: row;
    justify-content: left;
    text-align: left;
  }
}
@media screen and (min-width: 1150px) and (max-width: 100vw) {
  .reviews {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    /* Corrige o 'overflow:hidden' no desktop */
    margin-top: -2rem;
    /* Movimenta para baixo os cards */
  }
  .reviews .review-card {
    height: 15rem;
  }
  .reviews .review-card__header {
    display: flex;
    flex-direction: row;
    justify-content: left;
    text-align: left;
    margin-bottom: 2rem;
  }
  .reviews .review-2 {
    margin-top: 30px;
  }
  .reviews .review-3 {
    margin-top: 60px;
  }
}

/* Estilos dos cards de avaliação */
.review-card {
  background-color: hsl(300, 43%, 22%);
  color: hsl(300, 24%, 96%);
  border-radius: 0.6rem;
  line-height: 1.3;
  margin: 1rem 0;
  padding: 1.8rem;
}

.review-card__header {
  display: flex;
  text-align: center;
  margin-bottom: 1.8rem;
}

.review-card__user-name {
  font-weight: 500;
  margin-top: 0.7rem;
  color: hsl(300, 24%, 96%);
}
.review-card__user-name .review-card__user-name--pink {
  color: hsl(333, 80%, 67%);
}

.review-card__user-pic {
  border-radius: 100%;
  width: 4rem;
  margin-right: 15px;
}/*# sourceMappingURL=index.css.map */