// FILTER BAR

.index-filter-bar {
  background-color: @subBarBackgroundColor;
  padding: 0px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  .index-sort-w {
    display: inline-block;
    padding: 15px 20px 15px 40px;
    vertical-align: middle;
    border-right: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
  }
  .index-filter-w {
    white-space: nowrap;
    display: inline-block;
    padding: 10px 40px 10px 40px;
    vertical-align: middle;
  }
  .index-clear-filter-w {
    display: inline-block;
    vertical-align: middle;
    border-left: 1px solid rgba(255,255,255,0.1);
    margin-left: 20px;
    padding-left: 40px;
    .transition(all 0.3s ease);
    button {

      display: inline-block;
      vertical-align: middle;
      text-transform: uppercase;
      padding: 0px;
      border: none;
      font-size: floor(@baseFontSize * 0.9);
      background-color: transparent;
      outline: none;
      .transition(all 0.3s ease);
      .os-new-icon {
        margin-right: 15px;
        font-size: 24px;
        vertical-align: middle;
        .transition(all 0.3s ease);
        color: rgba(255,255,255,0.7);
      }
      span {
        display: inline-block;
        vertical-align: middle;
        border-bottom: 1px solid #fff;
      }
      &:hover {
        .os-new-icon {
          color: #fff;
          .transform(rotate(180deg));
        }
      }
      &.active, &.active:hover, &.inactive:hover {
        color: #fff;
      }
    }
    &.inactive {
      .opacity(0);
      .transform(translateX(20px));
    }
  }
  .index-filter-label, .index-sort-label {
    display: inline-block;
    vertical-align: middle;
    margin-right: 20px;
    padding-right: 20px;
    border-right: 1px solid rgba(255,255,255,0.1);
    .os-new-icon {
      margin-right: 20px;
      font-size: 20px;
      vertical-align: middle;
      line-height: 1;
    }
    span {
      font-size: floor(@baseFontSize * 0.9);
      vertical-align: middle;
      line-height: 1; 
      text-transform: uppercase;
    }
  }
  .index-sort-options, .index-filter-categories {
    display: inline-block;
    vertical-align: middle;
    .index-sort-option, .index-filter-option  {
      display: inline-block;
      vertical-align: middle;
      margin-right: 15px;
      text-transform: uppercase;
      padding: 4px 10px;
      border: 1px solid rgba(255,255,255,0.2);
      font-size: floor(@baseFontSize * 0.9);
      background-color: rgba(255,255,255,0.05);
      outline: none;
      border-radius: @borderRadiusBase;
      .transition(all 0.3s ease);
      &:hover {
        background-color: rgba(255,255,255,0.15);
        border: 1px solid rgba(255,255,255,0.5); 
      }
      &.active, &.active:hover, &.inactive:hover {
        background-color: rgba(255,255,255,0.3);
        border: 1px solid rgba(255,255,255,1);
        color: #fff;
      }
      &.inactive {
        border: 1px solid rgba(255,255,255,0.2);
        color: rgba(255,255,255,0.6);
        background-color: rgba(0,0,0,0.05);
      }

    }
  }
  .index-filter-categories {
    padding-right: 20px;
    margin-right: 30px;
    border-right: 1px solid rgba(255,255,255,0.1);
  }
  .index-filter-formats {
    display: inline-block;
    vertical-align: middle;
  }
  .index-filter-sub-label {
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    display: inline-block;
    vertical-align: middle;
    margin-right: 20px;
    font-size: floor(@baseFontSize * 0.8);
  }
  .index-filter-format {
    display: inline-block;
    vertical-align: middle;
    margin-right: 25px;
    font-size: 26px;
    position: relative;
    .transition(all 0.2s ease);
    cursor: pointer;
    i {
      line-height: 34px;
      vertical-align: middle;
    }
    .os-filter-tooltip {
      position: absolute;
      top: -4px;
      left: 50%;
      .transform(translate(-50%, 10px));
      .opacity(0);
      .transition(all 0.2s ease);
      background-color: #111;
      color: #fff;
      padding: 2px 5px;
      font-size: floor(@baseFontSize * 0.7);
      text-transform: uppercase;
      border-radius: 2px;
    }
    &.active {
      color: #fff;
    }
    &.inactive {
      color: rgba(255,255,255,0.4);
    }
    &:hover {
      color: #fff;
      .transform(scale(1.1));
      .os-filter-tooltip {
        .opacity(1);
        .transform(translate(-50%, 0px));
      }
    }
  }

  &.color-scheme-light {
    color: #111;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    border-top: 1px solid rgba(0,0,0,0.2);
    .index-sort-w {
      border-right: 1px solid rgba(0,0,0,0.1);
    }
    .index-clear-filter-w {
      border-left: 1px solid rgba(0,0,0,0.1);
      button {
        .os-new-icon {
          color: rgba(0,0,0,0.7);
        }
        span {
          border-bottom: 1px solid #111;
        }
        &:hover {
          .os-new-icon {
            color: #111;
          }
        }
        &.active, &.active:hover, &.inactive:hover {
          color: #111;
        }
      }
    }
    .index-filter-label, .index-sort-label {
      border-right: 1px solid rgba(0,0,0,0.1);
    }
    .index-sort-options, .index-filter-categories {
      .index-sort-option, .index-filter-option  {
        border: 1px solid rgba(0,0,0,0.2);
        background-color: rgba(0,0,0,0.05);
        &:hover {
          background-color: rgba(0,0,0,0.15);
          border: 1px solid rgba(0,0,0,0.5); 
        }
        &.active, &.active:hover, &.inactive:hover {
          background-color: rgba(0,0,0,0.3);
          border: 1px solid rgba(0,0,0,1);
          color: #111;
        }
        &.inactive {
          border: 1px solid rgba(0,0,0,0.2);
          color: rgba(0,0,0,0.6);
          background-color: rgba(255,255,255,0.05);
        }

      }
    }
    .index-filter-categories {
      border-right: 1px solid rgba(0,0,0,0.1);
    }
    .index-filter-sub-label {
      color: rgba(0,0,0,0.6);
    }
    .index-filter-format {
      &.active {
        color: #111;
      }
      &.inactive {
        color: rgba(0,0,0,0.4);
      }
      &:hover {
        color: #111;
      }
    }

  }
  &.color-scheme-dark {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    border-top: 1px solid rgba(255,255,255,0.2);
    button {
      color: rgba(255,255,255,0.8);
    }
  }
}



@media (max-width: 767px) {
  .index-filter-bar {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 885px) {
  .index-filter-bar .index-filter-sub-label {
    display: none;
  }
}

@media (max-width: 991px) {

  .index-filter-bar .index-sort-label, .index-filter-bar .index-filter-label { 
    display: none;
  }

}
@media (max-width: 1400px) {
  .index-filter-bar {
    .index-clear-filter-btn span{
      display: none!important;
    }
    .index-clear-filter-w {
      padding-left: 20px;
      margin-left: 0px;
    }
  }
}
@media (max-width: 1150px) {
  .index-filter-bar .index-sort-label, .index-filter-bar .index-filter-label {
     span {
      display: none!important;
    }
    .os-new-icon {
      margin-right: 0px;
    }
  }
}