/** 
 *------------------------------------------------------------------------------
 * @package       T3 Framework for Joomla!
 *------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       JoomlArt, JoomlaBamboo, (contribute to this project at github 
 *                & Google group to become co-author)
 * @Google group: https://groups.google.com/forum/#!forum/t3fw
 * @Link:         http://t3-framework.org 
 *------------------------------------------------------------------------------
 */
 

// ------------------------------------------------------
// CORE NAVIGATIONS ELEMENTS
// ------------------------------------------------------

//
// DROPDOWN (dropdowns.less)
// --------------------------------------------------

// Dropdown arrow/caret
// --------------------
.caret {
}


// The dropdown wrapper (div)
// --------------------------
.dropdown {
}


// The dropdown menu (ul)
// ----------------------
.dropdown-menu {
  font-size: @t3-font-size-small;
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.04);

  // Dividers (basically an hr) within the dropdown
  .divider {
  }

  // Links within the dropdown menu
  > li > a {
  }
}

// Hover/Focus state
.dropdown-menu > li > a {
  color: @gray-light;

  &:hover,
  &:focus {
    background: @brand-primary;
    color: @white;
  }
}

// Active state
.dropdown-menu > .open > a {
  &,
  &:hover,
  &:focus {
    background: none;
    color: @white;
  }
}

// Active state
.dropdown-menu > .active > a {
  &,
  &:hover,
  &:focus {
    background: none;
    color: @brand-primary;
  }
}

// Disabled state
.dropdown-menu > .disabled > a {
  &,
  &:hover,
  &:focus {
  }
}

// Nuke hover/focus effects
.dropdown-menu > .disabled > a {
  &:hover,
  &:focus {
  }
}


// Dropdown section headers
// ------------------------
.dropdown-header {
  padding: 3px 20px;
  font-size: @font-size-base;
  // T3: Links in Header
  a {
    color: @dropdown-header-color;
  }
}


// T3 Note: Extend BS3 Dropdown Menu to multi level
// See "base-bs3/less/legacy-navigation.less"
// Dropdown Sub Menus
// ------------------
.dropdown-submenu > .dropdown-menu {
}

// Caret to indicate there is a submenu
.dropdown-submenu > a:after {
  border-left-color: @dropdown-link-color;
}

.dropdown-submenu:hover > a:after {
  border-left-color: @dropdown-link-hover-color;
}



//
// NAVS (navs.less)
// --------------------------------------------------

// Base class
// ----------
.nav {

  // Nav Items
  > li {
    > a {
      // Hover state
      &:hover,
      &:focus {
      }
    }

    // Disabled state
    &.disabled > a {
      // Hover state
      &:hover,
      &:focus {
      }
    }
  }

  // Seperator
  > li > .separator {
    position: relative;
    display: block;
    padding: @nav-link-padding;
    line-height: @line-height-computed;

    @media (min-width: @grid-float-breakpoint) {
      padding-top: ((@navbar-height - @line-height-computed) / 2);
      padding-bottom: ((@navbar-height - @line-height-computed) / 2);
    }
  }

  > li > span {
    @media (max-width: @screen-sm-max) {
      padding: @nav-link-padding;
      display: inline-block;
    }
  }


  // Open dropdowns
  .open > a {
    &,
    &:hover,
    &:focus {
      // The caret
      .caret {
      }
    }
  }

  .dropdown-menu {
    background: rgba(255,255,255,.96);
    box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.04);

    li > a {
      color: @gray-dark;

      &:hover, &:active, &:focus {
        color: @brand-primary;
      }
    }
  }

  //End
}


// Tabs
// ----
.nav-tabs {

  > li {

    // Actual tabs (as links)
    > a {

      // Hover state
      &:hover {
        border-color: transparent;
      }

    }

    &.open > a {
      &,
      &:hover,
      &:focus {
        border-color: transparent;
      }
    }

    // Active state, and it's :hover to override normal :hover
    &.active > a {
      &,
      &:hover,
      &:focus {
        border-color: @nav-tabs-border-color;
        border-bottom-color: transparent;
      }
    }

  }

  //End
}


// Pills
// -----
.nav-pills {
  > li {

    // Links rendered as pills
    > a {
    }

    + li {
    }

    // Active state
    &.active > a {
      &,
      &:hover,
      &:focus {

        // The caret
        .caret {
        }
      }
    }

  }

  // End
}


// Dropdowns Caret in Nav
// ----------------------
// Make dropdown carets use link color in navs
.nav .caret {
  border-top-color: @link-color;
  border-bottom-color: @link-color;
}

.nav a:hover .caret {
  border-top-color: @link-hover-color;
  border-bottom-color: @link-hover-color;
}



// 
// BREADCRUMS (breadcrums.less)
// -------------------------------------------------------
.t3-navhelper {
  background: @breadcrumb-bg;
  border-top: 1px solid @t3-border-color;
  color: @gray;
  padding: 5px 0;
}

.breadcrumb {
  margin-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
  color: @text-color;

  > li {
    + li:before {
      content: "@{breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space
    }
  }

  // Active
  > .active {
    color: @breadcrumb-active-color;

    + li:before {
      content: "";
      padding: 0;
    }

    .hasTooltip {
      padding-right: (@t3-global-padding / 2);
    }
  }

  // T3 Note: Hide default Joomla! arrow in breadcrum
  .divider {
    display: none;
  }
}



//
// PAGINATION (MULTIPLE PAGES) (pagination.less)
// --------------------------------------------------
.pagination-wrap {
  text-align: center;
}

.pagination {

  > li {
    > a,
    > span {
      background: none;
      border: 2px solid transparent;
      border-radius: 1px;
      color: @gray-dark;
      font-size: @t3-font-size-bigger;
      margin: 0 1px;
      min-width: 40px;
      padding: 4px 6px;
      text-align: center;
    }
  }

  // Hover state
  > li > a,
  > li > span {
    &:hover,
    &:focus {
      border: 2px solid @gray;
      color: @gray-dark;
    }
  }

  // Active state
  > .active > a,
  > .active > span {
    background: @brand-primary;
    border: 2px solid @brand-primary;
    color: @white;

    &,
    &:hover,
    &:focus {
    }
  }

  // Disabled state
  > .disabled {

    > span,
    > span:hover,
    > span:focus,
    > a,
    > a:hover,
    > a:focus {
    	border: 0;
    }
  }
}


// T3 Note: Fix for Joomla! Pagination
// ------------------------------------
.pagination-wrap {
}

.pagination {
  .clearfix();
  display: block;
  
  // left align on Tablets / Desktop
  @media screen and (min-width: @screen-sm) {
    float: none;
  }
}


// Counter
// -------
.counter {
  display: inline-block;
  margin-top: @line-height-computed;
  padding: @padding-base-vertical @padding-base-horizontal;
  background-color: @pagination-bg;
  border: 1px solid @pagination-border;
  border-radius: @border-radius-base;
  // Right align on Tablets / Desktop
  @media screen and (min-width: @screen-sm) {
    float: right;
  }

  @media (min-width: @screen-sm) and (max-width: @screen-md-max) {
    margin-right: @t3-global-margin;
  }
}


// Sizing
// ------
// Large
.pagination-lg {
}

// Small
.pagination-sm {
}



//
// PAGER PAGINATION (pager.less)
// --------------------------------------------------
.pager {
  text-align: left;
  clear: both;

  ul {
    margin: 0;
    padding: 0;
  }

  li {
    > a,
    > span {
    }

    // Hover state
    > a:hover,
    > a:focus {
    }

    // Active state
    &.active,
    &.active:hover,
    &.active:focus {
    }
  }

  .next {
    > a,
    > span {
    }
  }

  .previous {
    > a,
    > span {
    }
  }

  // Disabled state
  .disabled {
    > a,
    > a:hover,
    > a:focus,
    > span {
    }
  }

}


//
// SUBMENU AFTER MASTHEAD
// --------------------------------------------------
.ja-submenu {
  background: #f4f6f7;
  border-bottom: 1px solid #dde4e6;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;

  ul {
    display: inline-block;
    margin: 0;
    padding: 0;

    &:before {
      content:"\f02c";
      display: inline-block;
      font-family: FontAwesome;
      font-style: normal;
      font-weight: @font-weight-normal;
      line-height: 1;
      background: @gray-dark;
      border-radius: 50%;
      color: @gray-lighter;
      font-size: @font-size-base;
      height: 36px;
      line-height: 36px;
      margin-right: @t3-global-margin;
      text-align: center;
      width: 36px;
      margin-right: @t3-global-margin;
    }

    li {
      display: inline-block;
      font-weight: @font-weight-light;
      list-style: none;
      padding: @t3-global-padding/2 0;
      position: relative;
      margin: 0;

      a {
        color: @gray-dark;
        display: block;
        padding: 0;
        margin: 0 @t3-global-padding 0 0;
        padding-bottom: 2px;
        text-transform: uppercase;
      }

      &.active a,
      &.active a:hover,
      &.active a:focus,
      &.active a:active,
      & a:hover,
      & a:active,
      & a:focus {
        box-shadow: 0 -3px 0 @gray-dark inset;
        color: @gray-dark;
        background: none;
      }
    }
  }
}