@use "../../../../../../styles" as *;

.details-section {
  overflow: hidden;
  overflow-y: scroll;
  &::-webkit-scrollbar {
    width: 0px;
    height: 0px;
  }
  top: 0;
  position: absolute;
  height: 100%;
  .img-box {
    position: relative;
    height: 500px;
    overflow: hidden;
    .bar {
      position: absolute;
      padding: 40px 30px;
      width: 100%;
    }
    img {
      width: 100%;
      height: fit-content;
      background-size: cover;
      background-color: $col-darkGray;
      display: block;
    }
  }
  .details-box {
    width: 100%;
    position: relative;
    .details {
      width: 100%;
      height: 160px;
      border-top-left-radius: 25px;
      border-top-right-radius: 25px;
      background-color: rgba($col-dark, 0.5);
      padding: 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: absolute;
      bottom: 100%;
      .info {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        .titles {
          height: 42px;
          .title {
            font-weight: 500;
            color: $col-white;
          }
          .subtitle {
            font-weight: 400;
            color: $col-gray;
          }
        }
        .rate {
          display: flex;
          align-items: center;
          gap: 4px;
          .star {
            fill: $col-orange;
            width: 14px;
          }
          h3 {
            color: $col-white;
            font-weight: 500;
            .views {
              color: $col-gray;
              font-weight: 300;
              font-size: 10px;
            }
          }
        }
      }
      .tags {
        width: 130px;
        height: fit-content;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        .tag {
          background-color: $col-dark;
          display: flex;
          align-items: center;
          justify-content: center;
          flex-direction: column;
          color: $col-gray;
          border-radius: 10px;
          font-size: 10px;
          width: 55px;
          height: 55px;
          svg {
            fill: $col-orange;
            $vol: 17px;
            width: $vol;
          }
          &.custom {
            width: fit-content;
            height: fit-content;
            text-wrap: nowrap;
            padding: 12px 20px;
          }
        }
      }
    }
    .description {
      padding: 15px;
      padding-bottom: 0;
      h4 {
        margin-bottom: 15px;
      }
      .description-txt {
        p {
          color: $col-white;
          font-size: 12px;
          font-weight: 400;
          line-height: 20px;
          // max-width: 100%;
          -webkit-line-clamp: 3;
          -webkit-box-orient: vertical;
          writing-mode: horizontal-tb;
          overflow: hidden;
        }
        .read-more {
          color: $col-orange;
          font-weight: 500;
          font-size: 14px;
          display: inline-block;
        }
      }
    }
  }
}
