@import '~styles/mixins';
@import '~styles/common';

.workspace-card {
  border-bottom: solid 2px $color-grey;
  padding: 30px 20px;

  @include transition(all);
  &.no-padding {
    padding: 0;
    // for the border
    padding-bottom: 30px;
  }
  &.highlight {
    background-color: rgba($color: $color_primary, $alpha: 0.17);
    // color: white;
  }

  &:nth-last-child(1) {
    border: 0;
  }
  .distance {
    // font-weight: bold;
  }
  .container {
    display: flex;
    align-items: flex-start;
    position: relative;

    padding: 0;

    @include tablet {
      display: block;
    }

    .like-btn {
      position: absolute;
      top: 0;
      right: 0;
      cursor: pointer;
    }
    .image {
      flex-shrink: 0;
      $dim: 140px;

      width: $dim;
      height: $dim;
      box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
      background-color: $color-grey-background;
      border-radius: 10px;
      margin-right: 30px;
      overflow: hidden;

      @include tablet {
        width: 100%;
        max-width: 100%;
        max-height: 240px;
        margin: 0;
      }

      img {
        width: 100%;
        height: 100%;

        object-fit: cover;
      }
    }
    .content-wrapper {
      display: flex;
      align-items: flex-start;
      width: 100%;
      @include tablet {
        flex-wrap: wrap;
        margin-top: 20px;
      }
    }
    .content {
      width: auto;
      @include tablet {
        width: 100%;
      }
      > * {
        margin-top: 10px;
      }
      h3 {
        margin-top: 0;
      }
    }
    .button-wrapper {
      max-width: 200px;
      margin-left: auto;
      @include tablet {
        width: 100%;
        max-width: 100%;
        margin: 0;
        margin-top: 15px;
      }
    }
    .button {
      width: 200px;

      @include phone {
        width: 100%;
      }
    }
  }
}
