@import "../../../tools/functions.scss";

.card {
  margin-bottom: 1rem;
}

.avatar {
  background-color: white;
}

.retweeted {
  color: #00bd00;
}

.favorited {
  color: #fab41e;
}

.card_action {
  display: grid !important;
  grid-template-columns: auto auto;
  min-height: 32px;
}

.card_favorite_action {
  display: grid !important;
  grid-template-columns: min-content auto;
  padding-left: 1rem !important;
  min-height: 40px;
}

.date {
  font-weight: 200;
  font-size: 12px;
  margin-right: .7rem;
  justify-self: end;

  &[data-inline] {
    margin-right: 0;
  }
}

.link {
  color: inherit;
  text-decoration: none;

  :global .dark :local & {
    color: white !important;

    &:hover {
      color: rgb(172, 172, 255);
      text-decoration: underline;
    }
  }

  &:hover {
    color: rgb(73, 73, 255);
    text-decoration: underline;
  }
}

.rt_container {
  display: flex;
  justify-content: flex-start;
  margin-left: .5rem;
}

.inline_icon {
  display: inline-flex;
  align-items: flex-end;

  & > svg:first-of-type {
    margin-right: 10px;
  }
}

.rt_number, .fav_number {
  display: flex;
  align-items: flex-start;
  font-size: .9rem;
  color: lighten($color: #000000, $amount: 20) !important;

  :global .dark :local & {
    color: lighten($color: #000000, $amount: 80) !important;
  }

  [data-inline] & {
    display: inline-flex;
  }
}

.rt_number {
  margin-right: 1rem;
  margin-left: .3rem;

  [data-inline] &:first-child {
    margin-left: 0;
  }
}

.rt_icon, .fav_icon {
  font-size: 1.1rem !important;
  margin-left: .3rem;
  margin-bottom: 1px;
}

.card_title {
  font-weight: bold;
}

.list_item {
  background-color: #fff;

  :global .dark :local & {
    background-color: #424242;

    &:not(:last-child) {
      border-bottom-color: #636363;
    }
  }

  padding-left: 10px;

  &:first-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
  }

  &:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
  }

  &:not(:last-child) {
    border-bottom: 1px #e6e6e6 solid;
  }
}

.list_item_text {
  padding-left: .5rem;
}

.list_actions {
  margin-top: .3rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;

  @include mobile_large {
    margin-top: .5rem;
    flex-direction: column;
    justify-content: unset;
    align-items: flex-end;
  }
}

.list_details {
  display: inline-flex;
  align-items: baseline;

  & > :first-child:not(.rt_number) {
    margin-right: .3rem;
  }
}

.see_full_tweet {
  margin-left: .6rem;
}
