.single-post-preview {
  background-color: $white-100;
  border: 1px solid $color-border;
  border-radius: 4px;
  margin-bottom: 15px;

  &:last-child {
    margin-bottom: 0;
  }

  .post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;

    .header-left {
      display: flex;
      align-items: center;
      max-width: 60%;

      .logo {
        display: block;
        min-width: 40px;
        max-width: 40px;
        margin-right: 10px;
      }

      .title {
        font-size: inherit;

        h3 {
          line-height: 0;
          display: block;

          a {
            font-size: 16px;
            color: $color-heading;
            line-height: 1;
            font-weight: 500;
          }
        }

        a {
          color: #8392a5;
          font-size: 12px;
          font-weight: 400;
        }
      }
    }

    .header-right {
      display: flex;
      align-items: flex-end;
      flex-direction: column;

      .ac-options {
        opacity: 0.5;
        margin-bottom: 15px;
      }

      p {
        font-size: 12px;
        color: #8392a5;
      }
    }
  }

  .post-body {
    padding: 0 20px 15px;
    border-bottom: 1px solid $color-border;

    p {
      color: $color-heading;
      font-size: 1rem;
      line-height: 160%;
    }

    h4 {
      font-size: 15px;
      line-height: 28px;
      color: #1c2d41;
    }

    .single-list-post {
      padding: 15px 0;

      ul {
        padding-left: 10px;

        li {
          font-size: 14px;
          color: $color-text;
        }
      }
    }

    .post-banner {
      border-radius: 12px;
      position: relative;
      z-index: 1;
      overflow: hidden;

      &.is-white-text {
        .banner-content {
          h2 {
            color: $white-100;
          }
        }
      }

      .thumbnail {
        height: 200px;
        background-repeat: no-repeat;
        background-size: cover;

        // &.banner-1 {
        //   background-image: url("~@appscode/design-system-images/banner/post-banner-1.jpg");
        // }

        // &.banner-2 {
        //   background-image: url("~@appscode/design-system-images/banner/post-banner-2.jpg");
        // }

        img {
          width: 100%;
          object-fit: cover;
          height: 100%;
        }
      }

      .banner-content {
        position: absolute;
        bottom: 30px;
        left: 20px;

        h2 {
          font-size: $size-2;
          margin-bottom: 25px;
          color: $color-heading;
        }
      }
    }

    a {
      color: $ac-primary;
    }

    .count-like-share {
      display: flex;
      align-items: center;
      margin-top: 12px;
      justify-content: space-between;

      .reaction-wrapper {
        display: flex;
        align-items: center;

        .reaction {
          margin-right: 30px;
          position: relative;
          z-index: 1;
          display: flex;
          align-items: center;

          button {
            background-color: transparent;
            border: none;
            cursor: pointer;
            padding: 0;

            &:nth-child(2) {
              position: absolute;
              left: 12px;
              z-index: -1;
            }

            &:nth-child(3) {
              position: absolute;
              left: 24px;
              z-index: -2;
            }

            &:hover {
              &:nth-child(2) {
                z-index: 1;
              }

              &:nth-child(3) {
                z-index: 2;
              }

              img {
                transform: scale(1.2);
              }
            }

            img {
              width: 18px;
              transition: 0.3s ease-in-out;
            }
          }
        }

        p {
          font-size: 11px;
          color: #8392a5;
        }
      }

      .share-count {
        p {
          color: #8392a5;
          font-size: 11px;
        }
      }
    }
  }

  .post-footer {
    .like-share-button {
      display: flex;

      button {
        background-color: transparent;
        border: none;
        color: $color-text;
        transition: 0.3s;
        font-weight: 500;
        cursor: pointer;
        display: block;
        width: 50%;
        border-right: 1px solid $white-100 !important;
        padding: 10px;

        &:last-child {
          border-right: none;
        }

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

// Extra small devices (portrait phones, less than 576px)
@media (max-width: 575.98px) {
  .single-post-preview {
    .post-header {
      .header-left {
        align-items: self-start;
        flex-direction: column;
      }
    }

    .post-body {
      .post-banner {
        .thumbnail {
          height: 150px;
          background-size: cover;
          background-position: top;
        }

        .banner-content {
          h2 {
            font-size: 16px;
            line-height: 28px;
            margin-bottom: 5px;
          }
        }
      }

      .count-like-share {
        .reaction-wrapper {
          width: 70%;
        }
      }
    }
  }
}

// Small devices (landscape phones, 576px and up)
@media (min-width: 576px) and (max-width: 767.98px) {
}

// Medium devices (tablets, 768px and up)
@media (min-width: 768px) and (max-width: 991.98px) {
}

// Large devices (desktops, 992px and up)
@media (min-width: 992px) and (max-width: 1199.98px) {
}

// Extra large devices (large desktops, 1200px and up)
@media (min-width: 1200px) {
}
