@import './../../../../sources/styles/include.scss';

$component: 'projects';
$template: 'template-1';
$item: 'widget-item';

.widget.c-#{$component}.c-#{$component}-#{$template} {

  .widget-header {

    &[data-link-all="true"] {

      .widget-title {

        &.align-center {
          margin-left: 150px;
        }
      }
    }
  }

  .widget-list {
    display: block;
    margin-left: 10px;
    font-size: 0;
    text-align: right;
    text-decoration: none;
  }

  .widget-list-desktop {
    display: block;
    width: 140px;
    font-size: 10px;
    line-height: 1;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    word-break: break-word;

    @include transition(0.4s, color);
  }

  .widget-list-mobile {
    display: none;
    width: 30px;
    height: 30px;

    svg {

      path {
        stroke: #B0B0B0;

        @include transition(0.4s, stroke);
      }
    }
  }

  .owl-carousel {

    .owl-nav {
      display: block;
      position: absolute;
      top: 0;
      right: -30px;
      bottom: 0;
      left: -30px;
      visibility: hidden;

      &.disabled {
        display: none;
      }

      button {
        display: block;
        position: absolute;
        visibility: visible;
        width: 40px;
        height: 40px;
        margin-top: -8px;
        top: 50%;
        line-height: 1;
        background: #fff;
        border: 1px solid #E8E8E8;
        cursor: pointer;
        outline: none;

        @include transform-translate(null, -50%);
        @include border-radius(2px);
        @include transition(0.4s, all);

        svg {

          path {
            stroke: #808080;

            @include transition(0.4s, all);
          }
        }

        &:hover {

          svg {

            path {
              stroke: #FFF;
            }
          }
        }

        &.disabled {
          background-color: #FFF!important;
          border-color: #F2F2F2!important;
          opacity: 0.7;
          cursor: not-allowed;

          @include user-select(none);

          svg {

            path {
              stroke: #F2F2F2!important;
            }
          }
        }
      }

      .owl-prev {
        left: 10px;
      }

      .owl-next {
        right: 10px;
      }
    }

    .owl-dots {
      font-size: 0;
      text-align: center;
      padding-top: 10px;

      &.disabled {
        display: none;
      }
    }

    .owl-dot {
      display: inline-block;
      margin: 5px 10px 5px 10px;
      outline: none;

      span {
        display: inline-block;
        width: 12px;
        height: 12px;
        border: 2px solid #000;

        @include border-radius(50%);
        @include box-sizing(border-box);
        @include transition(0.4s, all);
      }

      &.active {

        span {
          background-color: #000;
        }
      }
    }
  }

  .widget-content {
    display: block;
    position: relative;
  }

  .widget-tabs {
    margin: -5px -15px;
  }

  .widget-items {}

  .#{$item} {}
  .#{$item}-wrapper {
    position: relative;
    display: block;
    height: 250px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    @include transition(0.4s, all);

    &:hover {

      @include box-shadow(0, 5px, 20px, -3px, rgba(0,0,0,0.75));
      @include  transform-translate(0, -10px);
    }
  }
  .#{$item}-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 45px;
    background: rgb(255,255,255);
    background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 20%, rgba(0,0,0,1) 100%);
    background: -webkit-linear-gradient(top, rgba(0,0,0,0) 20%,rgba(0,0,0,1) 100%);
    background: linear-gradient(to bottom, rgba(0,0,0,0) 20%,rgba(0,0,0,1) 100%);
  }
  .#{$item}-name-wrapper {
    font-size: 14px;
    font-weight: bold;
    line-height: 21px;
    color: #fff;
  }

  &[data-slider="true"] {

    .#{$item} {
      margin: 10px 0;
    }

    &[data-slider-navigation="true"] {

      .widget-items {
        margin: 0 30px;
        width: auto;
      }
    }

    &[data-slider-dots="true"] {

      .owl-carousel {

        .owl-nav {
          bottom: 30px;
        }
      }
    }
  }

  @include breakpoint-custom(720) {
    .widget-tabs {
      margin: -5px -10px;
    }
  }

  @include breakpoint-custom(600) {
    .#{$item}-name {
        padding: 30px 20px;
    }
  }

  @include breakpoint-custom(500) {
    .widget-header {

      &[data-link-all="true"] {

        .widget-title {

          &.align-center {
            margin-left: 40px;
          }
        }
      }
    }

    .widget-list-desktop {
      display: none;
    }

    .widget-list-mobile {
      display: block;
    }
  }
}