@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: #30353b url('../img/bg.png') 0 0 repeat;
}

.container {
  margin: 80px auto;
  width: 640px;

  .vnav { margin: 0 auto; }
}

.vnav {
  width: 200px;
  overflow: hidden;
  background: white;
  border: 1px solid #1d1f22;
  @include box-shadow(0 1px 2px rgba(black, .4));

  a {
    display: block;
    line-height: 34px;
    text-decoration: none;
  }

  li:last-child {
    .vnav-item { border-bottom-color: #50575f; }
    .vnav-subnav { border-bottom-color: white; }
  }
}

.vnav-item {
  position: relative;
  padding: 0 12px 0 37px;
  font-size: 13px;
  color: white;
  text-shadow: 0 1px rgba(black, .35);
  background: #505968;
  border-top: 1px solid #878e96;
  border-bottom: 1px solid #333740;
  @include linear-gradient(top, #707a84, #505968);
  @include transition(opacity .15s);

  &:hover { opacity: .95; }

  .active &, &:active {
    opacity: 1;
    background: #259bdb;
    border-top-color: #6ad2ef;
    border-bottom-color: #1c638f;
    @include box-shadow(0 1px #bbb, 0 2px #e9ebe8);
    @include linear-gradient(top, #44c5ec, #259bdb);

    .vnav-counter { background: #2471a9; }
  }

  i {
    position: absolute;
    top: 7px;
    left: 9px;
  }
}

.vnav-counter {
  float: right;
  margin-top: 8px;
  padding: 0 6px;
  line-height: 18px;
  font-size: 11px;
  background: #464e59;
  border-radius: 9px;
  @include box-shadow(inset 0 1px 2px rgba(black, .3),
                      0 1px rgba(white, .2))
}

.vnav-subnav {
  display: none;
  border-bottom: 1px solid #404348;

  .active & { display: block; }

  a {
    padding: 0 12px 0 16px;
    font-size: 12px;
    color: #838a90;
    border-bottom: 1px solid #eee;

    &:before {
      content: '';
      display: inline-block;
      width: 0;
      height: 0;
      margin-right: 8px;
      border: 4px outset transparent;
      border-left: 4px solid #bbb;
    }

    &:hover { background: #f8f9fb; }
  }

  .vnav-counter {
    color: #999;
    background: #fcfcfc;
    @include box-shadow(inset 0 0 0 1px #dcdcdc);
  }

  li:last-child a { border-bottom-color: white; }
}

$icons: ('friends', 0 0),
        ('video', -20px 0),
        ('photo', -40px 0),
        ('podcast', -60px 0);

[class*="icon-"] {
  display: block;
  width: 20px;
  height: 20px;
  background-image: url('../img/icons.png');
  background-repeat: no-repeat;
  @include hide-text;
}

@each $pair in $icons {
  .icon-#{nth($pair, 1)} { background-position: nth($pair, 2); }
}