/// candidates.less -- Main layout for the 'candidate listing' page

#candidates() {
  .search-filter-content {
    > .category-selector {
      margin: 1.5em 0;
    }

    > .country-selector {
      margin: 1.5em 0;
      height: 25em;
    }

    > .rating-label , > .selection-label {
      padding: 1em;
      color: white;
      font-weight: bold;
    }

    > .ethlance-component-rating {
      padding: 1em;
      padding-top: 0;
    }

    > .currency-input {
      padding-right: 0.5em;
      padding: 1em;
    }

    > .feedback-input {
      padding: 1em;
      > .ethlance-text-input {
        padding: 0.5em 0;
      }
    }
  }
}

.candidates-main-container {
  #mixin.main-container();

  > .search-filter {
    #mixin.main-container.search-filter();
    #candidates.search-filter-content();
  }

  > .mobile-search-filter {
    > .content {
      #jobs.search-filter-content();
    }
  }

  > .listing {
    #mixin.main-container.listing();

    > .search-container {
      > .ethlance-chip-search-input {

        margin: 2em;
        max-width: 100vw;

        @media #media[tablet-query] {
          margin: 1.5em;
        }

        @media #media[mobile-query] {
          margin: 0.0em;
        }
      }
    }

    > .candidate-element {
      #mixin.box-shadow.item-inset();
      display: grid;
      grid-template-areas:
      'profile  price'
      'tags     tags'
      'rating   rating'
      'location location';
      grid-template-columns: auto 60px;
      grid-template-rows: repeat(4, auto);
      min-height: 100px;
      padding: 2em;
      grid-column-gap: 1em;

      @media #media[mobile-query] {
        grid-template-areas:
          'profile'
          'price'
          'tags'
          'rating'
          'location';
        grid-template-columns: auto;
        grid-template-rows: repeat(5, auto);
      }

      > .profile {
        grid-area: profile;
        display: grid;
        grid-template-areas:
        'profile-image name'
        'profile-image title';
        grid-template-columns: auto 1fr;
        grid-template-rows: repeat(2, auto);

        > .profile-image {
          grid-area: profile-image;
          display: flex;
          align-items: center;
          justify-content: center;
        }

        > .name {
          grid-area: name;
          font-size: 1.8em;
          font-weight: 400;
          padding: 0.5em;
        }

        > .title {
          grid-area: title;
          padding: 0.7em;
          padding-left: 0.9em;
        }
      }

      > .price {
        grid-area: price;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0.5em 0;
        width: 60px;
        font-size: 1.4em;
        border-bottom: 2px solid #color[orange];

        @media #media[mobile-query] {
          padding: 1em 0;
        }
      }

      > .tags {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        grid-area: tags;
        margin: 1em 0;
        > .ethlance-tag {
          cursor: pointer;
          margin-right: 1em;
          margin-bottom: 0.5em;
        }
      }

      > .rating {
        grid-area: rating;
        display: flex;
        flex-direction: row;
        align-items: center;
        margin: 0.5em 0;
        > .label {
          padding-left: 0.5em;
          font-weight: 400;
          font-size: 1.1em;
        }
      }

      > .location {
        grid-area: location;
        margin: 0.5em 0;
      }
    }
  }
}
