//
// Navs
// --------------------------------------------------

.nav {
  margin-bottom: 0;
  padding-left: 0; // Override default ul/ol
  list-style: none;
  font-size: 0;

  li {
    display: inline-block;
    font-size: @font-size-base;
  }

  a {
    display: block;
  }
}

// navbar toggle 
// -------------------------
.button-toggle {
  background: transparent;
  border-style: solid;
  border-width: 0;
  border-color: #222;
  border-color: rgba(255, 255, 255, 0.1);
  padding: 0 15px;
  height: 39px;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 0 5px #fff;

  &.collapsed {
    color: #666;
    text-shadow: none;

    &:hover {
      .no-touch & {
        color: #fff;
        text-shadow: 0 0 5px #fff;
      }
    }
  }
}

.top-nav-toggle {
  border-width: 0 1px 0 0;
}

.search-form-toggle,
.top-shares-toggle {
  border-width: 0 0 0 1px;
}

// top nav
// -------------------------
.top-nav {
  display: block;

  a {
    color: #666;

    &:hover,
    &:focus {
      color: #fff;
      text-shadow: 0 0 5px #fff;
    }
  }

  @media (min-width: @screen-sm) {
    li {
      line-height: @height-top-header;
      padding: 0 20px;
      border-right: 1px solid #222;
      border-right: 1px solid rgba(255, 255, 255, 0.1);
      font-size: @font-size-small;

      &:first-child {
        border-left: 1px solid #222;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
      }
    }
  }

  @media (max-width: @screen-xs-max) {
    position: absolute;
    background: #111;
    position: absolute;
    top: 40px;
    width: 100%;
    z-index: @zindex5;
    height: 0;
    overflow: hidden;

    li {
      display: block;
      padding: @grid-gutter-width/2 @grid-gutter-width;
      border-bottom: 1px solid #222;
      border-bottom: 1px solid rgba(255,255,255,.1);
      max-height: 40px;

      a {
        color: #fff;
      }
    }
  }
}

// top share
// -------------------------
.top-shares {
  display: block;
  li {
    line-height: @height-top-header;
    font-size: @font-size-small;
    min-width: 42px;
    text-align: center;
    
    border-right: 1px solid rgba(255, 255, 255, 0.1);

    &:first-child {
      border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
  }

  a {
    color: #666;
    padding: 0 15px;

    &:hover {
      color: #fff;
      text-shadow: 0 0 5px #fff ;
    }
  }

  @media (max-width: @screen-xs-max) {
    position: absolute;
    top: 40px;
    width: 100%;
    left: 0;
    text-align: center;
    background: #111;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid #222;
    border-bottom: 1px solid rgba(255,255,255,.1);
    height: 0;
    overflow: hidden;
  }
}

// paging
// -------------------------
.pagination {
  border-top: 1px solid #ddd;
  padding: @grid-gutter-width; 
  overflow: hidden;
  text-align: center;
  list-style: none;
  margin: 0;
  
  li {
    display: inline-block;
  }

  a {
    display: block;
  }

  .page-numbers {
    margin: 0 5px;
    width: 30px; 
    height: 30px;
    border: 1px solid #ddd;
    text-align: center;
    line-height: 28px; 
    display: block;
    color: #111;
    .transition(all .3s);

    a {
      color: #111;
    }

    &:hover {
      .pagination > .current();
      .box-shadow(0 0 5px rgba(15, 169, 236, 0.5));
      border-color: @brand-primary;
      border-color: rgba(15, 169, 236, 0.5);

      a {
        color: #fff; 
      }
    }
  }

  .current {
    border-color: @brand-primary;
    background: @brand-primary;
    color: #fff;
  }

  .disabled {
    border-color: #ddd !important;
    background: #f5f5f5 !important;
    color: #999 !important;
    .box-shadow(none) !important;
    cursor: not-allowed;
  }

  @media (max-width: @screen-xs-max) {
    .page-numbers {
      display: none;
    }

    .current, 
    .next,
    .prev,
    .disabled {
      display: block;
    }
  }
}


// Post navigation
// -------------------------
.post-navigation {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  position: relative;
  overflow: hidden;
  margin: @grid-gutter-width;
  padding: 20px 0;
  
  @media (max-width: @screen-xs-max) {
      padding: 30px 0;
  }

  &:before {
    position: absolute;
    content: "";
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
    background: #ddd;
  }

  .nav-previous,
  .nav-next {
    width: 50%;
    text-align: center;
    padding:  0 40px;
    font-family: @font-family-sans-serif-1;
    @media (max-width: @screen-xs-max) {
      font-size: 0;
    }

    a {
      color: #111;

      &:hover {
        color: @link-hover-color;
      }
    }
  }

  .meta-nav {
    .square(30px);
    display: block;
    line-height: 30px;
    text-align: center;
    position: absolute;
    background: #111;
    border-color: #111;
    top: 50%;
    margin-top: -15px;
    border-radius: 2px;
    color: #999;
    .transition(.3s);

    @media (max-width: @screen-xs-max) {
      font-size: 13px;
    }
  }

  a:hover .meta-nav {
    background-color: @brand-primary;
    border-color: @brand-primary;
    color: #fff;
  }

  .nav-next {
    float: right;

    .meta-nav {
      right: 0;
    }
  }

  .nav-previous {
    float: left;
    .meta-nav {
      left: 0;
    }
  }
}

// footer nav
// -------------------------
.footer-nav {
  background: #000;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  text-align: center;
  font-size: 0;

  ul { 
    margin-bottom: 0;
    padding: 0;
  }

  li {
    padding: 0 10px;
    font-size: 12px;
    line-height: 38px;
  }
}


// footer share
// -------------------------
.footer-shares {
  margin-top: 5px;
  @media (min-width: @screen-sm) {
    text-align: right;
  }

  @media (max-width: @screen-xs-max) {
    margin-top: 20px;
  }

  li {
    position: relative;
    line-height: 30px;
    text-align: center;
    margin-left: 10px;
    background: @brand-primary;
    border-radius: 20% 0;
    .transition(box-shadow .5s);
    .square(30px);

    &:hover {
      .box-shadow(0 0 10px @brand-primary);
    }
  }

  .facebook {
    background: #3b5998;

    &:hover {
      .box-shadow(0 0 10px #3b5998);
    }
  }

  .twitter {
    background: #00aced;

    &:hover {
      .box-shadow(0 0 10px #00aced);
    }
  }

  .google_plus {
    background: #dd4b39;

    &:hover {
      .box-shadow(0 0 10px #dd4b39);
    }
  }

  .youtube {
    background: #bb0000;

    &:hover {
      .box-shadow(0 0 10px #bb0000);
    }
  }

  .linkedin {
    background: #007bb6;

    &:hover {
      .box-shadow(0 0 10px #007bb6);
    }
  }

  a, a:hover {
    color: #fff;
  }
}