/*
 * Evaluation-only compatibility layer derived from the 2019 Braytech snapshot.
 * Copyright (c) 2019 Thomas Chapman. All rights reserved.
 *
 * Source files:
 * - src/Core.css
 * - src/App.css
 * - src/components/UI/Header/styles.css
 * - src/components/Items/styles.css
 * - src/components/Tooltip/styles.css
 * - src/views/Inspect/styles.css
 *
 * Selectors are mapped onto the static comparison DOM; values and interaction
 * conventions below intentionally retain the legacy implementation's behavior.
 */

body {
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  cursor: default;
  color: rgba(255, 255, 255, 0.8);
}

::selection {
  background: #000;
  color: #fff;
}

.inspection {
  --exotic: 48, 61%, 50%;
  --legendary: 279, 36%, 29%;
  --rare: 213, 34%, 48%;
  --uncommon: 126, 35%, 32%;
  --common: 0, 0%, 80%;
  --exoticDark: 48, 71%, 5%;
  --legendaryDark: 279, 36%, 5%;
  --rareDark: 213, 34%, 6%;
  --uncommonDark: 126, 35%, 5%;
  --commonDark: 0, 0%, 7%;
}

.masthead {
  height: 40px;
  background-color: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

@supports (backdrop-filter: blur(7px)) {
  .masthead {
    background-color: rgba(255, 255, 255, 0);
    backdrop-filter: blur(7px) brightness(1.2) saturate(1.2);
  }
}

.brand {
  letter-spacing: 2px;
  font-size: 15px;
  text-transform: uppercase;
}

.brand-device {
  width: 18px;
  height: 18px;
  display: block;
  filter: invert(1);
  opacity: .88;
}

.global-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  transition: color 0.2s;
}

.global-nav a:hover,
.global-nav a.active {
  color: rgb(255, 255, 255);
}

.global-nav a.active::after {
  height: 3px;
  background-color: rgb(255, 255, 255);
  transition: transform 0.2s;
}

.weapon-banner {
  border-top: 0 solid hsla(var(--legendary), .8);
}

.weapon-icon {
  box-shadow: inset 0 0 0 3px rgb(204, 204, 204);
}

.weapon-copy h1 {
  color: rgb(255, 255, 255);
  font-weight: 500;
  line-height: 1;
}

.weapon-copy .weapon-type {
  color: rgba(255, 255, 255, 0.8);
}

.weapon-copy blockquote {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  font-style: italic;
  letter-spacing: 0.5px;
}

.weapon-readout .stat {
  display: grid;
  grid-template-columns: minmax(max-content, 140px) 1fr;
  align-items: center;
  line-height: 1.6;
  margin: 0 0 8px;
}

.weapon-readout .stat > span {
  color: rgba(255, 255, 255, 0.6);
  padding: 0 16px 0 0;
  height: 16px;
  display: flex;
  align-items: center;
}

.weapon-readout .stat-track {
  height: 16px;
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.04);
}

.weapon-readout .stat-track i {
  height: 100%;
  background-color: #fff;
  position: relative;
}

.weapon-readout .stat-track b {
  position: absolute;
  top: 0;
  right: 7px;
  height: 100%;
  display: grid;
  align-content: center;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.6;
}

.perk-button {
  transition: color 0.25s, background-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.perk-button::before {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(214, 214, 214, 0);
  transform: scale(1.021) translateZ(0);
  transition: box-shadow 0.25s, transform 0.25s;
}

.perk-button:hover::before,
.perk-button:focus-visible::before,
.perk-button.is-selected::before {
  box-shadow: 0 0 0 2px #d6d6d6;
  transform: scale(1) translateZ(0);
}

.perk-button:hover,
.perk-button:focus-visible {
  background-color: rgba(91, 171, 213, .9);
  color: rgba(255, 255, 255, 1);
  z-index: 4;
}

.selected-detail,
.perk-row {
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 16px 16px;
}

.perk-tooltip {
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.75);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.perk-tooltip strong {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media screen and (max-width: 1024px) {
  .weapon-icon {
    box-shadow: inset 0 0 0 2px rgb(204, 204, 204);
  }

  .weapon-copy blockquote {
    font-size: 16px;
    letter-spacing: 0.5px;
  }
}

@media screen and (max-width: 600px) {
  .weapon-copy blockquote {
    font-size: 14px;
    letter-spacing: 0.5px;
  }

  .global-nav a {
    font-size: 14px;
  }
}
