/* DS Info - Custom Styles */

/* Font definitions for Borda family */

@font-face {
  font-family: 'Borda';
  font-style: normal;
  font-weight: 300;
  src: url('Borda Light.woff') format('woff');
}

@font-face {
  font-family: 'Borda';
  font-style: italic;
  font-weight: 300;
  src: url('Borda Light Italic.woff') format('woff');
}

@font-face {
  font-family: 'Borda';
  font-style: normal;
  font-weight: 400;
  src: url('Borda.woff') format('woff');
}

@font-face {
  font-family: 'Borda';
  font-style: italic;
  font-weight: 400;
  src: url('Borda Italic.woff') format('woff');
}

@font-face {
  font-family: 'Borda';
  font-style: normal;
  font-weight: 500;
  src: url('Borda Medium.woff') format('woff');
}

@font-face {
  font-family: 'Borda';
  font-style: italic;
  font-weight: 500;
  src: url('Borda Medium Italic.woff') format('woff');
}

@font-face {
  font-family: 'Borda';
  font-style: normal;
  font-weight: 600;
  src: url('Borda DemiBold.woff') format('woff');
}

@font-face {
  font-family: 'Borda';
  font-style: italic;
  font-weight: 600;
  src: url('Borda DemiBold Italic.woff') format('woff');
}

@font-face {
  font-family: 'Borda';
  font-style: normal;
  font-weight: 700;
  src: url('Borda Bold.woff') format('woff');
}

@font-face {
  font-family: 'Borda';
  font-style: italic;
  font-weight: 700;
  src: url('Borda Bold Italic.woff') format('woff');
}

@font-face {
  font-family: 'Borda';
  font-style: normal;
  font-weight: 800;
  src: url('Borda ExtraBold.woff') format('woff');
}

@font-face {
  font-family: 'Borda';
  font-style: italic;
  font-weight: 800;
  src: url('Borda ExtraBold Italic.woff') format('woff');
}

/* Base resets and typography */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Borda', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main.themed-background {
  position: relative;
}

main.themed-background::before {
  background: radial-gradient(circle at 50% 50%, #0a0a0a9F, #0a0a0a 60%), url('https://images.steamusercontent.com/ugc/38943008368945798/D175D529BC36A9CD7075CA4A8FB2C95B69550902/');
  background-position: center;
  background-size: 150vw;
}

main.themed-background::before {
  content: '';
  z-index: -1;
  position: fixed;
  display: block;
  width: 100%;
  height: 100vh;
  left: 0px;
  top: 65px;
  filter: blur(5px);
  overflow: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #18181b;
}

::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

/* Tactical grid background pattern */
.tactical-grid {
  background-image:
    linear-gradient(rgba(251, 191, 36, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 191, 36, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Rarity colors */
.rarity-common {
  color: #a1a1aa;
}

.rarity-uncommon {
  color: #4ade80;
}

.rarity-rare {
  color: #60a5fa;
}

.rarity-epic {
  color: #a855f7;
}

.rarity-legendary {
  color: #fbbf24;
}

.rarity-bg-common {
  background-color: rgba(161, 161, 170, 0.1);
  border-color: rgba(161, 161, 170, 0.3);
}

.rarity-bg-uncommon {
  background-color: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
}

.rarity-bg-rare {
  background-color: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.3);
}

.rarity-bg-epic {
  background-color: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
}

.rarity-bg-legendary {
  background-color: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
}

/* Stat bars */
.stat-bar {
  height: 6px;
  background-color: #27272a;
  border-radius: 3px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.stat-bar-damage {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.stat-bar-accuracy {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.stat-bar-range {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.stat-bar-recoil {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* Card hover effects */
.item-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Animated underline for nav links */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fbbf24;
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}


.nav-link:hover {
  color: #c4a962;
}

.btn-primary {
  background-color: #c4a962;
  color: #0a0a0a;
}

.btn-primary:hover {
  background-color: #d4b972;
}

/* Search input focus glow */
.search-input:focus {
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

/* Table row hover */
.table-row-hover:hover {
  background-color: rgba(63, 63, 70, 0.3);
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.open {
  max-height: 500px;
}

/* Loading spinner */
.spinner {
  border: 2px solid rgba(251, 191, 36, 0.2);
  border-top-color: #fbbf24;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Fade in animation */
.fade-in {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badge pulse for new items */
.badge-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Building level tier indicators */
.tier-1 {
  border-left-color: #a1a1aa;
}

.tier-2 {
  border-left-color: #4ade80;
}

.tier-3 {
  border-left-color: #60a5fa;
}

.tier-4 {
  border-left-color: #a855f7;
}

.tier-5 {
  border-left-color: #fbbf24;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #fbbf24;
  color: black;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}


.sidebar-link.active {
  background-color: rgba(196, 169, 98, 0.1);
  color: #c4a962;
  border-left-color: #c4a962;
}

i.currency-icon {
  display: inline-flex;
  font-size: 16px;
  font-style: normal;
  font-weight: bold;
  line-height: 15px;
  border-radius: 50%;
  border: 1px solid #EEE;
  background-color: #AAA;
  aspect-ratio: 1;
  width: 15px;
  justify-content: center;
  vertical-align: middle;
  margin-right: 3px;
  margin-bottom: 4px;
}

i.currency-icon.ci-reputation {
  border: 1px solid #959595;
  background-color: #3f3f3f;
  color: #bbbbbb;
}


i.currency-icon.ci-money {
  border: 1px solid #656565;
  background-color: #a1a1a1;
  color: #292929;
}


ds-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 46px;
  background-color: #2223;
  border: 1px solid #2223;
  isolation: isolate;
}


#global-tooltip {
  position: fixed;
  /* display: none; */
  pointer-events: none;
  background: #000;
  border: 1px solid #858585;
  color: #CCC;
  border-radius:1px;
  font-size: 13px;
  min-width: 250px;
  max-width: 380px;
  z-index: 99999;
}

.tt-title {
  padding: 10px;
  font-weight: bold;
  color: #cf9100;
  font-size: 18px;
  line-height: 22px;
  background-color: #343632;
}

.tt-content {
  padding: 10px 7px;
  line-height: 1.3;
}

img.object-contain, img.object-cover {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.ds-container {
  --cut-size: 15px;
  background-color:#000B;
  border: 1px solid #000B;
  padding: 15px 0.5em 0.5em 0.5em;
  border-radius:4px;
  clip-path: polygon(var(--cut-size) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut-size));
  border-radius: 0px;
}

/* ds-icon checkbox selection style */
.ds-icon-checkbox {
  border: 2px solid transparent;
  border-radius: 4px;
  transition: border-color 0.15s ease;
}

.ds-icon-checkbox.selected ds-icon {
  border-color: #4ade80;
}

.ds-icon-checkbox.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Clickable ds-icon links */
.ds-icon-link {
  display: inline-block;
}


.clipped-top-left {
  --cut-size: 10px;
  clip-path: polygon(var(--cut-size) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut-size));
}

.bg-card-opaque {
  background-color: #1a1a1a !important;
}