/* ----------------------------------------------------------------
   3. NAVIGATION
   ---------------------------------------------------------------- */
#globalheader {
  width: 980px;
  height: 36px;
  margin: 30px auto 0;
  overflow: hidden;
  position: relative;
  z-index: 10;

  -webkit-border-radius: 5px;
  border-radius: 5px;

  background: #2a2a2a;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#434343),
    color-stop(0.5, #383838),
    color-stop(0.5, #282828),
    to(#232323)
  );
  background: -webkit-linear-gradient(
    #434343,
    #383838 50%,
    #282828 50%,
    #232323
  );
  background: linear-gradient(#434343, #383838 50%, #282828 50%, #232323);

  border: 1px solid #000;
  border-bottom-color: #0a0a0a;

  -webkit-box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.3);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Subtle texture overlay for nav */
#globalheader:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUAAAAAAAAAAAAAAAAAAAAAAADgKxmiAAAABnRSTlMGnSRPWgvNdScAAABbSURBVHja7dMxDgAgCARAdrT//+WuDhKQtqZxMHEz5VJLhdQfGQW8u/MiHhvd6HgYeOJ+9OQNwz1yI/GUYRy5WDpqKN0rDSyv5E2YlZc0yPnk2QJ0tyqr3oZJAR+2zQ0aQd4MAAAAAElFTkSuQmCC");
  opacity: 0.08;
  pointer-events: none;
  -webkit-border-radius: 5px;
  border-radius: 5px;
}

#globalnav {
  margin: 0;
  padding: 0;
  height: 36px;
  width: 100%;
  display: table;
  table-layout: fixed;
  position: relative;
  z-index: 1;
}

#globalnav li {
  display: table-cell;
  height: 36px;
  vertical-align: top;
}

#globalnav li a {
  display: block;
  height: 36px;
  line-height: 36px;
  text-align: center;
  text-decoration: none;
  color: #e8e8e8;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.7);
  font-size: 12px;
  letter-spacing: 0.3px;

  -webkit-box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.08),
    inset -1px 0 0 rgba(0, 0, 0, 0.3);
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.08),
    inset -1px 0 0 rgba(0, 0, 0, 0.3);

  -webkit-transition: all 0.12s ease-out;
  transition: all 0.12s ease-out;
}

#globalnav li a:hover,
#globalnav li a:focus {
  outline: none;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#4f4f4f),
    color-stop(0.5, #444),
    color-stop(0.5, #363636),
    to(#323232)
  );
  background: -webkit-linear-gradient(#4f4f4f, #444 50%, #363636 50%, #323232);
  background: linear-gradient(#4f4f4f, #444 50%, #363636 50%, #323232);
  color: #fff;
}

#globalnav li a:active,
#globalnav li a.pressed {
  background: #1a1a1a;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#1a1a1a),
    to(#2a2a2a)
  );
  background: -webkit-linear-gradient(#1a1a1a, #2a2a2a);
  background: linear-gradient(#1a1a1a, #2a2a2a);
  -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Logo item */
#gn-apple {
  width: 115px;
}

#gn-apple a {
  position: relative;
}

#gn-apple a:before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 9px;
  margin-top: -10px;
  /* Half of 20px height */
  width: 20px;
  height: 20px;
  background: url(../../CydiaIcon.png) no-repeat;
  background-size: 20px 20px;
  pointer-events: none;
  /* Let clicks pass through to link */
  z-index: 10;
}

#gn-apple a span {
  font-weight: bolder;
  letter-spacing: 0.2px;
  margin-left: 20px;
}

#gn-apple a:hover {
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#4a4a4a),
    to(#2a2a2a)
  );
  background: -webkit-linear-gradient(#4a4a4a, #2a2a2a);
  background: linear-gradient(#4a4a4a, #2a2a2a);
}

#gn-apple a:active,
#gn-apple a.pressed {
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#1a1a1a),
    to(#2b2b2b)
  );
  background: -webkit-linear-gradient(#1a1a1a, #2b2b2b);
  background: linear-gradient(#1a1a1a, #2b2b2b);
}
