@import '../../shared/mixins',
        '../../shared/reset',
        '../../shared/about-light';

/*
 * Copyright (c) 2012-2013 Thibaut Courouble
 * http://www.cssflow.com
 *
 * Licensed under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 */

body {
  font: 13px/20px 'Lucida Grande', Tahoma, Verdana, sans-serif;
  color: #404040;
  background: #303335;
}

.container {
  margin: 100px auto;
  width: 720px;
  text-align: center;
}

.nav {
  height: 48px;
  display: inline-block;

  > li,
  &:active > .active {
    float: left;
    position: relative;
    margin: 0 0 4px;
    height: 44px;
    color: #ccc;
    text-shadow: 0 1px rgba(black, .9);
    background-color: rgba(black, .05);
    border: 1px solid #232428;
    border-bottom-color: #1f2326;
    @include linear-gradient(top, rgba(white, .08), rgba(white, 0));
    @include box-shadow(inset 0 0 0 1px rgba(white, .05),
                        0 2px #262a2e,
                        0 3px #1f2326,
                        0 4px 3px rgba(black, .2));
  }

  > li:hover {
    color: #b0d157;
    text-shadow: 0 1px black, 0 0 20px rgba(white, .5);
  }

  > li.active,
  > .active:active,
  > li:active {
    z-index: 2;
    margin: 4px 0 0;
    height: 43px;
    color: #aaa;
    text-shadow: 0 1px black;
    background-color: rgba(white, .03);
    border-color: #212425;
    border-width: 1px 0;
    @include linear-gradient(top, rgba(black, .2), rgba(black, 0));
    @include box-shadow(inset 0 1px rgba(white, .05),
                        inset 0 -1px 1px rgba(black, .15),
                        1px 0 rgba(black, .05),
                        -1px 0 rgba(black, .05),
                        0 1px rgba(white, .05));

  }

  > li:active { z-index: 3; }

  > li:first-child {
    border-left-width: 1px !important;
    border-left-color: #212425;
    border-radius: 5px 0 0 5px;
  }

  > li:last-child {
    border-right-width: 1px !important;
    border-right-color: #212425;
    border-radius: 0 5px 5px 0;
  }

  > li + li,
  &:active > .active + li,
  &:active > li + .active {
    border-left-width: 0;
  }

  > .active + li,
  > .active:active + li,
  > li:active + li,
  > li:active + .active {
    border-left-width: 1px;
  }

  > li > a {
    display: block;
    line-height: 44px;
    padding: 0 20px;
    font-size: 12px;
    font-weight: bold;
    color: inherit;
    text-decoration: none;
    outline: 0;
  }

  .nav-icon { padding: 0 15px; }
}

$sprite: url('../img/icons.png');

[class*="icon-"] {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: text-top;
  background-image: $sprite;
  background-repeat: no-repeat;
  background-color: transparent;
  @include hide-text;
}

.icon-home { background-position: 0 0; }