@import "base";

%empty-value {
  color: color(black, bright);
  font-style: italic;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  word-wrap: break-word;
  overflow: auto;
  width: 280px;
  color: color(black);
  font-size: 15px;

  border-right: 1px solid color(black, normal, 0.12);
  padding-left: 15px;

  &.profile_small-screen {
    width: 100%;
  }

  .profile__header-container {
    display: inline-block;
    width: 100%;
    position: relative;

    .profile__black-list {
      display: flex;
      align-items: center;
      position: absolute;
      z-index: 10;
      background-color: color(white);
      color: black;
      border: 1px solid black;
      font-size: 150%;
      right: 0;
      padding: 10px;
      margin-top: -10px;
      margin-right: 24px;

      &.profile__black-list_show {
        display: flex;
      }

      .profile__black-list__container {
        display: flex;
        flex: 1;
        @extend %link;
      }

      .profile__black-list__icon {
        padding-left: 10px;

        &._negative {
          color: color(black);
        }

        &._positive {
          color: color(action);
        }
      }
    }
  }

  .profile__header {
    display: flex;
    margin-top: 20px;
    margin-bottom: 20px;

    .profile__name {
      font-size: 24px;
      flex: 1;
    }

    .profile__options {
      display: flex;
      width: 72px;
      padding-right: 24px;
      align-items: flex-end;
      justify-content: flex-end;
      font-size: 30px;
    }
  }

  .profile__data {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-right: 24px;
    color: color(black);
    flex-shrink: 0;

    .profile__status {
      display: flex;
      flex-direction: row;
      font-size: 12px;
      align-items: center;

      margin-top: 20px;
      .profile__status__icon {
        padding: 0 10px;
        font-size: 30px;
      }

      .profile__status__description {
        color: color(black, light);
      }
    }

    .profile__information {
      display: flex;
      width: 100%;
      flex-direction: column;
      align-items: flex-start;
      margin-top: 20px;
      margin-bottom: 20px;
    }

    .profile__property {
      display: flex;
      align-items: center;
      width: 100%;
      word-break: break-all;

      .profile__property__icon {
        font-size: 150%;
        margin-right: 10px;
      }

      .profile__property__unspecified {
        @extend %empty-value;
      }
    }

    .profile__connection {
      display: flex;

      .profile__connection__never {
        @extend %empty-value;
      }
    }

    .profile__fields {
      display: flex;
    }
  }
}