@use "../abstracts" as *;

.blog-details {
  padding: rem(100) 0;

  @media (max-width: 1399px) {
    padding: rem(90) 0;
  }

  @media (max-width: 1199px) {
    padding: rem(80) 0;
  }

  @media (max-width: 991px) {
    padding: rem(70) 0;
  }

  @media (max-width: 767px) {
    padding: rem(60) 0;
  }

  @media (max-width: 575px) {
    padding: rem(50) 0;
  }

  &__img-wrapper {
    position: relative;
    border-radius: rem(20);
    overflow: hidden;
    margin-bottom: rem(40);

    @media (max-width: 767px) {
      margin-bottom: rem(20);
      height: rem(200);
    }

    img {
      width: 100%;
      height: auto;
      display: block;

      @media (max-width: 575px) {
        object-fit: cover;
        height: 100%;
      }
    }
  }

  &__date {
    position: absolute;
    bottom: rem(20);
    left: rem(20);
    width: rem(70);
    height: rem(70);
    background: #fff;
    color: $color-primary;
    border: rem(2) solid $color-primary;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;

    @media (max-width: 767px) {
      width: rem(60);
      height: rem(60);
      bottom: rem(15);
      left: rem(15);
    }

    span {
      font-size: rem(22);
      font-weight: 800;

      @media (max-width: 767px) {
        font-size: rem(18);
      }
    }

    small {
      font-size: rem(12);
      font-weight: 700;
      text-transform: uppercase;

      @media (max-width: 767px) {
        font-size: rem(10);
      }
    }
  }

  &__meta {
    list-style: none;
    padding: 0;
    margin: 0 0 rem(20) 0;
    display: flex;
    gap: rem(30);
    flex-wrap: wrap;

    @media (max-width: 1199px) {
      gap: rem(20);
    }

    @media (max-width: 767px) {
      gap: rem(15);
      margin-bottom: rem(15);
    }

    li {
      color: #878C8F;
      font-family: $font-family-base;
      font-weight: 600;
      font-size: 16px;
      line-height: 100%;
      letter-spacing: -2%;
      display: flex;
      align-items: center;
      gap: rem(8);

      @media (max-width: 575px) {
        font-size: rem(14);
      }

      i {
        color: $color-primary;
        font-size: rem(18);

        @media (max-width: 575px) {
          font-size: rem(16);
        }
      }
    }
  }

  &__date {
    position: absolute;
    bottom: rem(0);
    left: rem(0);
    width: rem(70);
    height: rem(100);
    background: #fff;
    color: $color-primary;
    border: rem(2) solid $color-primary;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;

    @media (max-width: 1199px) {
      width: rem(65);
      height: rem(90);
    }

    @media (max-width: 767px) {
      width: rem(60);
      height: rem(85);
    }

    span {
      font-family: $font-family-base;
      font-weight: 700;
      font-size: 40px;
      line-height: 24px;
      letter-spacing: -2%;
      text-align: center;
      margin-bottom: 10px;

      @media (max-width: 1199px) {
        font-size: 36px;
      }

      @media (max-width: 767px) {
        font-size: 32px;
        margin-bottom: 5px;
      }
    }

    small {
      font-family: $font-family-base;
      font-weight: 600;
      font-size: 16px;
      line-height: 24px;
      letter-spacing: -2%;
      text-align: center;
      text-transform: uppercase;
      color: #191825;

      @media (max-width: 1199px) {
        font-size: 15px;
      }

      @media (max-width: 767px) {
        font-size: 14px;
      }
    }
  }


  &__title {
    font-family: $font-family-base;
    font-weight: 700;
    font-size: 30px;
    line-height: 100%;
    letter-spacing: -2%;
    margin-bottom: rem(20);
    color: $color-black;

    @media (max-width: 1399px) {
      font-size: rem(28);
    }

    @media (max-width: 991px) {
      font-size: rem(26);
    }

    @media (max-width: 767px) {
      font-size: rem(24);
      margin-bottom: rem(20);
    }

    @media (max-width: 575px) {
      font-size: rem(22);
    }
  }

  &__text {
    p {
      font-family: $font-family-base;
      font-weight: 500;
      font-size: 16px;
      line-height: 28px;
      letter-spacing: 0%;
      margin-bottom: rem(12);
      color: #878C8F;

      @media (max-width: 767px) {
        font-size: 15px;
        line-height: 26px;
        margin-bottom: rem(10);
      }
    }

    h3 {
      font-family: $font-family-base;
      font-weight: 700;
      font-size: 24px;
      line-height: 28px;
      letter-spacing: -2%;
      color: $color-black;
      margin: 0 0 20 0;

      @media (max-width: 991px) {
        font-size: 22px;
      }

      @media (max-width: 767px) {
        font-size: 20px;
        margin: rem(15) 0 rem(15);
      }

      @media (max-width: 575px) {
        font-size: 18px;
      }
    }
  }

  &__blockquote {
    background: #EFF3FA;
    font-family: $font-family-base;
    font-weight: 500;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0%;
    text-align: center;
    padding: rem(40);
    border-radius: rem(15);
    border: 1px solid #57595C4D;
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;

    @media (max-width: 1199px) {
      padding: rem(35);
    }

    @media (max-width: 767px) {
      padding: rem(30) rem(25);
      margin: rem(30) 0;
    }

    .quote-icon {
      font-size: rem(45);
      color: $color-primary;
      margin-bottom: rem(20);

      @media (max-width: 767px) {
        font-size: rem(35);
        margin-bottom: rem(15);
      }
    }

    p {
      font-family: $font-family-base;
      font-weight: 500;
      font-size: 16px;
      line-height: 28px;
      letter-spacing: 0%;
      text-align: center;
      color: #878C8F;
      margin: 0;

      @media (max-width: 991px) {
        font-size: 17px;
        line-height: 28px;
      }

      @media (max-width: 767px) {
        font-size: 16px;
        line-height: 26px;
      }
    }
  }

  &__footer {
    padding: rem(20) 0;
    border-top: rem(1) solid #D9D9D9;
    border-bottom: rem(1) solid #D9D9D9;
    margin: rem(45) 0 rem(55);

    @media (max-width: 991px) {
      margin: rem(35) 0 rem(40);
    }

    @media (max-width: 767px) {
      margin: rem(30) 0 rem(35);
      padding: rem(15) 0;
    }
  }

  &__tags {
    display: flex;
    align-items: center;
    gap: rem(15);
    flex-wrap: wrap;

    .tags-title {
      font-family: $font-family-base;
      font-weight: 700;
      font-size: 24px;
      line-height: 101%;
      letter-spacing: -2%;
      color: $color-heading;
      position: relative;

      @media (max-width: 1199px) {
        font-size: rem(20);
      }

      @media (max-width: 575px) {
        font-size: rem(18);
      }

    }

    a {
      background: #EFF3FA;
      padding: rem(8) rem(18);
      border-radius: rem(4);
      font-family: $font-family-base;
      font-weight: 600;
      font-size: 16px;
      line-height: 28px;
      color: $color-heading;
      transition: all 0.3s ease;

      @media (max-width: 767px) {
        font-size: 14px;
        padding: rem(6) rem(15);
      }

      &:hover {
        background: $color-primary;
        color: #fff;
      }
    }
  }

  &__social {
    display: flex;
    align-items: center;
    gap: rem(15);
    justify-content: flex-end;

    @media (max-width: 767px) {
      justify-content: flex-start;
      margin-top: rem(10);
    }

    .share-title {
      font-weight: 700;
      color: $color-heading;
    }

    a {
      font-size: rem(16);
      color: $color-heading;
      transition: all 0.3s ease;

      &:hover {
        color: $color-primary;
      }
    }
  }

  &__reply-form {
    margin-top: rem(50);

    @media (max-width: 767px) {
      margin-top: rem(40);
    }

    .reply-title {
      font-family: $font-family-base;
      font-weight: 700;
      font-size: 24px;
      line-height: 28px;
      letter-spacing: -2%;
      color: $color-heading;
      margin-bottom: rem(25);

      @media (max-width: 991px) {
        font-size: 22px;
        margin-bottom: rem(20);
      }

      @media (max-width: 767px) {
        font-size: 20px;
        margin-bottom: rem(20);
      }
    }




    input,
    textarea {
      width: 100%;
      background: #EFF3FA;
      border: none;
      padding: rem(20) rem(25);
      border-radius: rem(15);
      font-size: rem(15);
      color: $color-heading;

      @media (max-width: 767px) {
        padding: rem(15) rem(20);
        font-size: rem(14);
      }

      &::placeholder {
        color: $color-text2;
        text-transform: uppercase;
        letter-spacing: rem(1);
      }

      &:focus {
        outline: none;
      }
    }

    input {
      height: rem(60);
      border-radius: rem(50);

      @media (max-width: 767px) {
        height: rem(50);
      }

      &[type="checkbox"] {
        width: rem(17);
        height: rem(17);
        border: rem(1) solid #191825;
        padding: 0 !important;

        &:focus {
          outline: none;
          box-shadow: none;
          padding: 0 !important;
        }
      }
    }

    textarea {
      height: rem(130);
      resize: none;

      @media (max-width: 767px) {
        height: rem(120);
      }
    }

    .form-check {
      margin-top: rem(15);
      margin-bottom: 12;
      display: flex;
      align-items: center;

      &-input {
        border-radius: rem(4);
        border: rem(1) solid #ccc;
        margin-top: 0;
      }

      &-label {
        font-size: rem(14);
        color: $color-text2;
        font-weight: 500;
        padding-left: rem(10);
      }
    }
  }
}