//******************************************************************* //
// Application Header
//
//*******************************************************************

header.main {
  background: rgb(45,45,45);
  border-bottom: 1px solid rgb(0,0,0);
  overflow: hidden;
  width: 100%;
  min-width: 940px;

  nav {
    @extend .clearfix;
    height: 70px;
    margin: 0 auto;
    position: relative;
    width: grid-width(12);

    a.logo {
      text-decoration: none;

      img.fast-forward {
        display: block;
        float: left;
        height: 30px;
        margin: 20px 0px 0px 0px;
        position: relative;
        width: 30px;
      }

      h1 {
        color: rgb(255,255,255);
        float: left;
        font: bold 18px/22px $sans-serif;
        margin: 18px 0px 0px 0px;
        padding: 6px 12px;
        text-transform: uppercase;
      }

      &:hover {

        img.fast-forward {
          @extend .animation-logo-wiggle;
        }

        h1 {
          color: $pink;
        }
      }
    }

    ol {
      float: right;
      height: 100%;
      margin: 0;

      li {
        float: left;
        list-style: none;
        margin: 28px 0px 20px 0px;

        a {
          color: rgb(155,155,155);
          display: block;
          font: normal 12px/14px $sans-serif;
          margin: 0px 10px;
          padding-bottom: 3px;
          position: relative;
          text-decoration: none;
          text-transform: uppercase;

          &:hover {
            border-bottom: 3px solid $pink;
            color: rgb(255,255,255);
          }

          &.chapters.active {
            @extend .active-link;
          }
        }
      }
    }
  }
}


/**********************************************/
/*               Responsiveness               */
/**********************************************/

@media (max-width:$mobile-standard) {
  header.main {
    nav {
      ol {
        li {
          float: left;
          clear: both;
          margin: 10px 0px;
          
          &:first-child {
            margin-top: 14px;
          }
          
          &:last-child {
            margin-bottom: 14px;
          }
        }
      }
    }
  }
}


section.chapter-menu {
  background: rgb(80,80,80);
  @include background-image(radial-gradient(circle farthest-corner at 50% 50%, rgb(110, 110, 110), rgb(70,70,70)));
  box-shadow: inset 0 -1px 8px 0 rgba(0,0,0, 0.2), inset 0 1px 5px 0 rgba(0,0,0, 0.2);
  height: 0px;
  overflow: hidden;
  padding: 0px 20px;
  top: 50px;
  @include transition(height, 0.5s, ease-out);
  width: auto;
  z-index: 2;

  &.expanded {
    border-bottom: 1px solid rgb(0,0,0);
    height: auto;
  }

  .inner-wrapper {
    margin-top: 40px;
    padding: 0;
    max-width: grid-width(12);
    width: 100%;

    h1 {
      display: none;
      font: 300 24px/26px $sans-serif;
      text-align: center;
      text-transform: uppercase;
    }

    .chapters {
      border-radius: 4px;

      article.country {
        margin-bottom: 30px;
        width: 100%;
      }

      h3 {
        color: rgb(255,255,255);
        font: bold 14px/18px $sans-serif;
        margin-bottom: 5px;
        padding: 0 0 3px 0;
        text-transform: uppercase;
        text-shadow: 0 1px rgba(0,0,0, 0.3);
      }

      p {
        width: 180px;
        margin-right: 8px;

        a {
          color: rgb(180,180,180);
          font: normal 14px/16px $sans-serif;
          padding: 3px 0;
          text-decoration: none;

          &:hover {
            color: rgb(255, 255, 255);
            border-bottom: 2px solid $pink;
          }
        }
      }
    }
  }
}

body {
  &.home-index {
    a.home {
      @extend .active-link;
    }
  }

  &.projects-new {
    a.apply {
      @extend .active-link;
    }
  }

  &.chapters {
    a.chapters {
      @extend .active-link;
    }
  }

  &.pages-about_us {
    a.about_us {
      @extend .active-link;
    }
  }

  &.projects-index,
  &.finalists-index {
    a.dashboard {
      @extend .active-link;
    }
  }

  &.funded_projects-index,
  &.funded_projects-show {
    a.funded_projects {
      @extend .active-link;
    }
  }
}
