@import 'settings';

.metainfo {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 30px;
  line-height: 1.4;
}

.metainfo__avatar {
  margin-right: 12px;

  [dir='rtl'] & {
    margin-right: 0;
    margin-left: 12px;
  }

  .img-metainfo__avatar {
    width: 44px;
    height: auto;
  }

}

.metainfo__content {
  flex: 1;
  font-size: 0.875rem;

  a {
    text-decoration: underline;
    color: $default-color;
  }

  .badge--toggle {
    vertical-align: text-top;
  }

}

.metainfo__authorname {
  display: inline-block;
  color: $gray-light;
  margin-right: 0.2em;
}

.metainfo__published-date {
  display: inline-block;
  color: $gray-light;
}

.metainfo__properties {
  flex: 1 1 100%;
  margin: 20px 0 40px;
}

.meta-engage {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;

  [dir='rtl'] & {
    flex-direction: row-reverse;
  }

  @include for-tablet-landscape-down {
    flex-direction: column;

    [dir='rtl'] & {
      flex-direction: column-reverse;
    }
  }

  .badge + .badge,
  .meta-engage--buttons > * + * {
    margin-left: 5px;
  }
  .meta-engage--buttons {
    margin-right: 5px;
  }

  .btn {
    margin-bottom: 3px;

    @include for-tablet-landscape-down {
      .btn:first-child {
        margin-left: 0;
      }
    }
  }

  > * {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;

    [dir='rtl'] & {
      flex-direction: row-reverse;
    }
  }

  .meta-engage--buttons {
    @include for-tablet-landscape-up {
      order: 1;
    }
  }

  @include for-tablet-portrait-up {
    margin-bottom: 1.5rem;
  }
}

.article__special-fields {
  padding: 30px 0;
  border-top: 1px solid $gray-lighter;

  .article__special-field {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 15px;

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

  .article__special-fields-icon {
    width: 18px;
    height: 18px;
    line-height: 20px;
    display: inline-block;
    vertical-align: middle;
    fill: $gray-darker;
    margin-top: 5px;
    margin-right: 12px;

    [dir='rtl'] & {
      margin-right: 0;
      margin-left: 12px;
    }
  }
}

.node--unpublished__label {
  display: inline-block;
  position: absolute;
  font-style: italic;
  font-weight: 500;
  top: 0;
  right: 0;
  padding: 0.5em 1em;

  .stream-item & {
    border-top-right-radius: 0;
  }
}
