@import "../../shared/ui/variables.scss";

.rating-section {
  padding: 0 90px;
  display: flex;
  flex-direction: column;
  align-items: center;

  &__header {
    margin-bottom: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 24px;
  }

  &__table {
    width: 100%;
    overflow: hidden;
    overflow-x: auto;
    border: 1px solid rgb(213, 213, 213);
    border-radius: 6px;

    &::-webkit-scrollbar {
      display: none;
    }

    table {
      thead {
        padding: 0 30px;
        height: 76px;
        border-bottom: 1px solid rgb(241, 244, 249);
        tr {
          height: 100%;
          display: grid;
          align-items: center;
          grid-template-columns: 120px 200px 230px 380px 165px 92px;

          td {
            button {
              display: flex;
              align-items: center;
              color: rgb(102, 112, 133);
              font-size: 16px;
              font-weight: 400;
              line-height: 18px;
            }
            color: rgb(102, 112, 133);
            font-size: 16px;
            font-weight: 400;
            line-height: 18px;
          }
        }
      }

      tbody {
        padding: 0 30px;
        display: flex;
        flex-direction: column;

        tr {
          height: 90px;
          padding: 10px 0;
          display: grid;
          grid-template-columns: 120px 200px 230px 380px 165px 92px;
          align-items: center;

          td {
            font-size: 18px;
            font-weight: 500;
            line-height: 20px;
          }

          #rating-section-date {
            font-size: 16px;

            color: rgb(102, 112, 133);
          }

          #rating-section-link {
            a {
              text-decoration: underline;
              color: $light-blue;
            }
          }

          #rating-section-description {
            color: $black;
          }

          #rating-section-reviews,
          #rating-section-likes {
            display: flex;
            align-items: center;
            gap: 7px;
          }

          #rating-section-reviews {
            color: $light-blue;
          }

          #rating-section-likes {
            color: $light-green;
          }
        }
      }
    }
  }
}

@media screen and (max-width: 1024px) {
  .rating-section {
    padding: 0 30px;

    &__header {
      margin-bottom: 40px;
      gap: 20px;
    }
  }
}

@media screen and (max-width: 550px) {
  .rating-section {
    padding: 0 16px;
    &__header {
      margin-bottom: 20px;
      gap: 16px;
    }
  }
}
