/**
 * @license
 * Copyright Akveo. All Rights Reserved.
 * Licensed under the MIT License. See License.txt in the project root for license information.
 */

@import '../../styles/themes';
@import '~@nebular/theme/styles/global/breakpoints';

@include nb-install-component() {
  $primary: nb-theme(color-primary);
  $search-input-padding-sides: 1rem;
  $search-input-padding-tops: 1rem;
  $search-input-mobile-padding-sides: 0.5rem;
  $search-input-mobile-padding-tops: 1rem;
  $search-placeholder-color: #a6aebd;
  $version-color: #0fba81;
  $version-bg: #edfff3;
  $description-color: #5670a1;
  $search-icon-fill-color: #a6aebd;
  $actions-color: #a7b4cc;

  margin-top: 4.5rem;
  margin-bottom: 3rem;
  display: block;

  .title {
    position: relative;
  }

  .version {
    font-family: nb-theme(font-main), sans-serif;
    background-color: $version-bg;
    position: relative;
    bottom: 0.35rem;
    font-size: nb-theme(font-size);
    font-weight: nb-theme(font-weight-bold);
    color: $version-color;
    padding: 0.3125rem 0.6875rem 0.3125rem 0.8125rem;
    border-radius: nb-theme(custiom-radius);
    text-transform: none;
  }

  h1 {
    font-family: 'Raleway Bold', Arial, Helvetica, Geneva, sans-serif;
    color: $primary;
    font-size: 5rem;
    padding-left: 6.625rem;
    text-transform: capitalize;
    margin-bottom: 1rem;
  }

  .description {
    color: $description-color;
    font-size: nb-theme(font-size-lg);
    line-height: 1.625;
    margin-bottom: 2rem;

    span {
      font-weight: nb-theme(font-weight-ultra-bold);
    }

    .eva-ds-link {
      color: nb-theme(color-primary);
    }
  }

  // search
  .search {
    width: 100%;
    position: relative;

    i {
      position: absolute;
      left: $search-input-padding-sides;
      top: 1rem;
      fill: $search-icon-fill-color;
    }

    &.search-focus {
      i {
        fill: $primary;
      }
    }
  }

  .heart {
    position: absolute;
    top: 1.25rem;
    left: 1.375rem;
    width: 3.75rem;
    height: 3.75rem;
    background: url('../../../../assets/img/heart.svg') no-repeat;
    background-position: 50% 50%;
    background-size: contain;
  }

  .search-input {
    width: 100%;
    border: none;
    background-color: nb-theme(color-gray-bg);
    color: $primary;
    padding: $search-input-padding-tops $search-input-padding-sides;
    padding-left: 4rem;
    line-height: 1.5;
    border-radius: nb-theme(custiom-radius);

    &::placeholder {
      color: $search-icon-fill-color;
    }

    &::-ms-clear {
      display: none;
    }
  }
  // search

  // actions
  .actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2.875rem;
  }

  .right-action {
    display: flex;
    color: $actions-color;
  }

  .animation-title {
    margin-right: 1.625rem;
  }
  // actions

  // icons container
  .icons {
    position: relative;
  }
  // icons container

  eva-icon-list {
    margin-top: 3rem;
  }

  .spinner-container {
    width: 100%;
    height: 25vh;
  }

  .info-message {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 7rem;
    width: 70%;
    margin: 2.5rem auto;
    text-align: center;
    font-size: nb-theme(font-size-lg);
    background-color: nb-theme(info-bg);
    color: nb-theme(info-fg);
    border-radius: 0.75rem;
  }

  @include media-breakpoint-up(sm) {
    .mobile {
      display: none;
    }
  }

  @include media-breakpoint-down(lg) {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  @include media-breakpoint-down(sm) {
    margin-top: 0;

    .desktop {
      display: none;
    }

    .title {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .heart {
      position: static;
      display: block;
      margin-bottom: 0.875rem;
    }

    .version {
      position: static;
    }

    h1 {
      margin-top: 0.75rem;
      margin-bottom: 2rem;
      padding-left: 0;
      font-size: 4rem;
    }

    .description {
      margin-bottom: 4rem;
      font-size: nb-theme(font-size);

      br {
        display: none;
      }
    }

    .actions {
      flex-direction: column;
      align-items: center;
      margin-top: 4rem;

      .right-action {
        margin-top: 2.5rem;
      }
    }

    .animation-title {
      display: none;
    }

    .info-message {
      width: 100%;
      padding: 0 1rem;
    }
  }

  @media (min-width: 315px) and (max-width: 370px) {
    h1 {
      font-size: 3.5rem;
    }
  }
}
