@use 'sass:math';

@import '../../lib/commonStyles/vertical-align';
@import '../../lib/commonStyles/full-size';
@import '../../lib/commonStyles/no-select';
@import '../../lib/commonStyles/colors';
@import '../../lib/commonStyles/layout';

$blueWidth: math.div(110, 150) * 100%;

.navigationButton {
  @include full-size;
  @include no-select;
  outline: 0;
  display: inline-block;
  text-align: center;
  vertical-align: top;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.1s ease;
  color: $darkergray;
  text-decoration: none !important;
  box-sizing: border-box;
  border-bottom: 1px solid $silver;

  &.active {
    &.linearBorder {
      border-bottom: none;
      position: relative;
      &::after {
        content: '';
        bottom: 0;
        width: 100%;
        height: 1px;
        margin: auto;
        z-index: 1;
        background: linear-gradient(
          to right,
          $silver 0,
          $silver math.div((100%-$blueWidth), 2),
          $primary-color math.div((100%-$blueWidth), 2),
          $primary-color math.div((100%-$blueWidth), 2) + $blueWidth,
          $silver math.div((100%-$blueWidth), 2) + $blueWidth,
          $silver 0
        );
        display: block;
        position: absolute;
      }
    }
  }
}

.iconHolder {
  @include full-size;
}

.icon {
  @include full-size;
  height: 36px;
  line-height: 36px;
  display: flex;
  justify-content: center;
}

.labelHolder {
  @include full-size;
  height: 35%;
  position: relative;
}

.label {
  @include full-size;
  @include vertical-align(top);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 0.7em;
}

.notice {
  flex-shrink: 0;
  margin-top: 0.4em;
  width: 1.4em;
  height: 1.4em;
  line-height: 1.4em;
  border-radius: 50%;
  font-size: 0.7em;
  background-color: #f65d60;
  color: #fff;
  font-family: Lato;
  display: block;
  text-align: center;
}

.notices {
  flex-shrink: 0;
  margin-top: 0.4em;
  width: 2.1em;
  height: 1.5em;
  border-radius: 3em;
  line-height: 1.5em;
  text-align: center;
  font-size: 0.6em;
  background-color: #f65d60;
  color: #fff;
  display: block;
  text-align: center;
}
