
/* NAV-DEATHRUN-V2 */

/*
 * DeathRun navigation
 * angular / movement / industrial
 * topbar logo untouched
 */


/* ======================================================
   REMOVE DOUBLE SEAM
   ====================================================== */

.topbar{
  border-bottom:0 !important;
}

.tabs{
  border-top:0 !important;
}


/* ======================================================
   MAIN GLASS TRACK
   ====================================================== */

.tabs{
  position:sticky !important;
  top:0;
  z-index:900;

  display:flex;
  align-items:center;
  gap:5px;

  min-height:50px;

  padding-top:7px !important;
  padding-bottom:7px !important;

  background:
    linear-gradient(
      180deg,
      rgba(11,16,21,.88) 0%,
      rgba(7,12,17,.84) 100%
    ) !important;

  border-bottom:
    1px solid rgba(255,255,255,.055) !important;

  backdrop-filter:
    blur(22px)
    saturate(135%);

  -webkit-backdrop-filter:
    blur(22px)
    saturate(135%);

  box-shadow:
    0 14px 34px rgba(0,0,0,.20);

  isolation:isolate;
  overflow:hidden;
}


/* faint speed-lane texture */
.tabs::before{
  content:"";

  position:absolute;
  inset:0;
  z-index:-1;

  background:
    repeating-linear-gradient(
      -62deg,
      transparent 0,
      transparent 34px,
      rgba(255,255,255,.010) 35px,
      rgba(255,255,255,.010) 36px
    );

  opacity:.72;
  pointer-events:none;
}


/* low cyan movement glow */
.tabs::after{
  content:"";

  position:absolute;

  left:8%;
  right:8%;
  bottom:-24px;

  height:34px;

  background:
    radial-gradient(
      ellipse at center,
      rgba(0,229,255,.055) 0%,
      rgba(0,229,255,0) 72%
    );

  filter:blur(12px);

  pointer-events:none;
}


/* ======================================================
   TAB SEGMENTS
   ====================================================== */

.tabs > .tab{
  position:relative;

  display:flex;
  align-items:center;
  justify-content:center;

  min-height:34px;

  margin:0 !important;
  padding:0 16px !important;

  border:1px solid transparent !important;
  border-radius:0 !important;

  color:#6d7c87 !important;

  background:
    rgba(255,255,255,.008) !important;

  font-family:
    'Inter',
    system-ui,
    sans-serif !important;

  font-size:11px !important;
  font-weight:650 !important;

  letter-spacing:.035em !important;
  text-transform:none !important;

  text-shadow:none !important;

  clip-path:
    polygon(
      6px 0,
      100% 0,
      calc(100% - 6px) 100%,
      0 100%
    );

  transition:
    color .15s ease,
    background .15s ease,
    border-color .15s ease,
    filter .15s ease;
}


/* kill old separators */
.tabs > .tab::before{
  display:none !important;
}


/* kill previous underline */
.tabs > .tab::after{
  display:none !important;
}


/* ======================================================
   HOVER
   ====================================================== */

.tabs > .tab:hover{
  color:#c2ccd3 !important;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.035),
      rgba(255,255,255,.014)
    ) !important;

  border-color:
    rgba(255,255,255,.045) !important;
}


/* ======================================================
   ACTIVE = RUNNER LANE
   ====================================================== */

.tabs > .tab.active{
  color:#e8f6f8 !important;

  border-color:
    rgba(0,229,255,.13) !important;

  background:
    linear-gradient(
      110deg,
      rgba(0,229,255,.095) 0%,
      rgba(0,229,255,.035) 42%,
      rgba(255,255,255,.015) 100%
    ) !important;

  box-shadow:
    inset 3px 0 0 rgba(0,229,255,.82),
    inset 0 1px 0 rgba(255,255,255,.035);

  text-shadow:
    0 0 12px rgba(0,229,255,.10) !important;
}


/* small movement marker */
.tabs > .tab.active::after{
  content:"";
  display:block !important;

  position:absolute;

  right:8px;
  top:7px;

  width:11px;
  height:2px;

  background:
    linear-gradient(
      90deg,
      rgba(0,229,255,0),
      rgba(0,229,255,.85)
    );

  box-shadow:
    0 5px 0 rgba(0,229,255,.32),
    0 10px 0 rgba(0,229,255,.12);

  transform:skewX(-28deg);
}


/* ======================================================
   RUNPEDIA SPECIAL COLOR
   Keep its yellow identity restrained.
   ====================================================== */

.tabs > .tab[onclick*="'runpedia'"]{
  color:#a98e45 !important;
}

.tabs > .tab[onclick*="'runpedia'"]:hover{
  color:#d8bd6b !important;
}


/* ======================================================
   MOBILE
   ====================================================== */

@media(max-width:800px){

  .tabs{
    gap:4px;

    padding-top:6px !important;
    padding-bottom:6px !important;

    overflow-x:auto;
    scrollbar-width:none;
  }

  .tabs::-webkit-scrollbar{
    display:none;
  }

  .tabs > .tab{
    flex:0 0 auto;

    min-height:32px;

    padding:0 13px !important;

    font-size:10.5px !important;

    white-space:nowrap;
  }
}


@media(max-width:480px){

  .tabs > .tab{
    padding:0 11px !important;
    font-size:10px !important;
  }

  .tabs > .tab.active::after{
    right:6px;
    transform:scale(.85) skewX(-28deg);
  }
}

