/**

  This file is part of the Meeds project (https://meeds.io/).

  Copyright (C) 2020 - 2023 Meeds Association contact@meeds.io

  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 3 of the License, or (at your option) any later version.
  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Lesser General Public License for more details.
  You should have received a copy of the GNU Lesser General Public License
  along with this program; if not, write to the Free Software Foundation,
  Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

*/

@import "../../variables.less"; 
@import "../../mixins.less";

#ActivityStream {
  max-width: ~"calc(100vw - 22px)";
  margin: 0 auto;

  .activity-thumbnail-box {
    width: 100%;
    max-width: 100%;
  }
  .newActivitiesButtonContainer {
    position: sticky;
    top: 23px;
    z-index: 999;

    .newActivitiesButton {
      box-shadow: ~"0px -3px 1px -2px rgb(0 0 0 / 20%), 0px -2px 2px 0px rgb(0 0 0 / 14%), 0px -1px 5px 0px rgb(0 0 0 / 12%) !important";
      transform: translateX(-50%) translateY(-50%);
      z-index: 1;
    }
  }
  .postContent {
    font-family: NoLineClamp, NoLineClampHelvetica, NoLineClampArial, NoLineClampSansSerif, NoLineClampRoboto, Helvetica, Arial, sans-serif;
  }

  .pinnedActivity {
    border: 1px solid @greyColorLighten1;
    background-color: @baseBackground;
    color: @greyColorLighten1;
  }
}

.activityReactionsContainer {
  .likersNumber {
    color: @baseColorLight;
    cursor: pointer;
  }
  .activityReactionsTitle {
    .v-tabs-bar {
      height: auto;
      .v-tabs-slider-wrapper {
        display: none;
      }
    }
    .v-tab {
      width: auto;
      min-width: inherit;
      font-weight: bold;
      font-size: 16px;
      text-transform: capitalize;
      &:hover {
        &:before {
          display: none;
        }
      }
    }
    .text-color.v-tab {
      color: @textColor !important;
    }
    .KudosNumberLabel {
      color: @secondaryColor;
    }
    .allLikers {
      padding: 0 12px;
      color: @primaryColor;
      .uiIconThumbUp {
        font-size: 22px;
        padding-right: 5px ~'; /** orientation=lt */ ';
        padding-left: 5px ~'; /** orientation=rt */ ';
        margin-top: -5px;
        &:before {
          color: @primaryColor;
        }
      }
    }
  }
  .activityLikersAndKudosDrawer {
    .seeMoreReactionsContainer {
      display: flex;
      min-height: 30px;
      .seeMoreLikers {
        width: 30px;
        position: relative;
        height: 30px;
        background-color: @baseColorLight;
        border-radius: 50%;
        &:before {
          content: "";
          width: 100%;
          height: 100%;
          position: absolute;
          background: @baseColorLight;
          border-radius: 50%;
          z-index: 1;
        }
        .seeMoreLikersDetails {
          top: 0;
          left: 0;
          right: 0;
          width: 30px;
          height: 30px;
        }
      }
    }
  }
}

.unread-activity {
  .unread-activity-badge {
    width: 14px;
    height: 14px;
    background: @errorColor;
    border-radius: 100%;
    border: 3px solid white;
    top: -8px;
    right: -8px;
  }
}

.activity-comment-head-time {
  height: 19px;
}

.activity-comment-background {
  background: @commentBackgroundColor;
}

.linear-gradient-comment-background {
  background: linear-gradient(to left, rgba(242, 245, 248, 1) 80%, rgba(242, 245, 248, 0) 100%);
}

.composerActions {
  .actionItem {
    display: flex;
    align-items: center;
    padding: 10px 10px 0 10px;
    border: 1px solid #E1E8EE;
    margin: 10px 0;
    border-radius: 5px;

    .actionItemDescription {
      padding: 9px 10px;

      .actionLabel {
        font-weight: bold;
        color: @textColor;
        font-size: 16px;
      }

      .actionDescription > p {
        color: @greyColorLighten1Default;
        font-size: 12px;
      }
    }

    &:hover {
      box-shadow: 0 0 8px #888888;
      cursor: pointer;
    }
  }
}

#StreamPage, .SpaceActivityStreamPortletPage {
  > div{
    > div {
      > .UIRowContainer:first-of-type {
        display: flex;

        .StreamMainContainer {
          flex-grow: 0;
          flex-shrink: 0;
          flex-basis: ~"calc(100% - 320px)";
          max-width: ~"calc(100% - 320px)";
          padding-right: 10px ~'; /** orientation=lt */ ';
          padding-left: 10px ~'; /** orientation=rt */ ';
          box-sizing: border-box;
          .uiSocApplication {
            padding-left: 0;
            padding-right: 0;
          }
        }
        .StreamRightContainer {
          flex: 0 1 320px;
          max-width: 320px;
          box-sizing: border-box;
          padding-left: 10px ~'; /** orientation=lt */ ';
          padding-right: 10px ~'; /** orientation=rt */ ';

          /* Added for sticky container */
          .UIContainer, .NormalContainerBlock, .VIEW-CONTAINER, .UIIntermediateContainer, .UIRowContainer {
            display: inline;
          }
        }
      }
    }
  }
  .UIMobileSwipeParentContainer {
      display: flex;
      flex-wrap: wrap;
      flex-direction: row;
      width:100%;

      > div {
        width:100%;
      }
  }
}

@media (min-width: @minTabletWidth) {
  #StreamPage, .SpaceActivityStreamPortletPage {
    .UIRowContainer:first-of-type {
      > #StreamRightContainer, > .StreamRightContainer {
        #stickyBlockDesktop, .stickyBlockDesktop, &.stickyBlockDesktop {
          position: sticky;
          top: 13px;
          height: auto;
          display: block;
          padding-bottom: @applicationSpaceBottom !important;
          z-index: @zindexStickyContainer;
        }
      }
    }
  }
  .decrease-z-index #StreamPage .UIRowContainer:first-of-type {
    > #StreamRightContainer, > .StreamRightContainer {
      #stickyBlockDesktop, .stickyBlockDesktop, &.stickyBlockDesktop {
        z-index: 1;
      }
    }
  }
  #ActivityStream .activity-thumbnail-box {
    max-height: 120px !important;
  }
}
