/* ==========================================================================
   GMR KIT · UNREAL ENGINE 5 TACTICAL VFX & LUMEN POST-PROCESSING
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. LUMEN DYNAMIC SPECULAR SPOTLIGHT
   -------------------------------------------------------------------------- */
#ue-lumen-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99997;
  background: radial-gradient(
    circle 380px at var(--ue-light-x, 50vw) var(--ue-light-y, 50vh),
    rgba(255, 110, 0, 0.08) 0%,
    rgba(255, 170, 0, 0.03) 40%,
    transparent 80%
  );
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}

/* --------------------------------------------------------------------------
   02. UNREAL NANITE HUD BRACKETS & RETICLES EN TARJETAS
   -------------------------------------------------------------------------- */
.weapon-card,
.fe-card {
  position: relative;
  overflow: visible;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.2s ease;
}

/* Brackets de apuntado táctico estilo Unreal Engine */
.weapon-card::before,
.weapon-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 8;
}

.weapon-card::before {
  top: -2px;
  left: -2px;
  border-top: 2px solid var(--tac-orange-bright);
  border-left: 2px solid var(--tac-orange-bright);
  transform: translate(-4px, -4px);
}

.weapon-card::after {
  bottom: -2px;
  right: -2px;
  border-bottom: 2px solid var(--tac-orange-bright);
  border-right: 2px solid var(--tac-orange-bright);
  transform: translate(4px, 4px);
}

.weapon-card:hover::before,
.weapon-card:hover::after {
  opacity: 1;
  transform: translate(0, 0);
  filter: drop-shadow(0 0 6px var(--tac-orange));
}

/* Retícula de escaneo láser que barre el arma */
.fe-render-box {
  position: relative;
  overflow: hidden;
}

.fe-render-box::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tac-orange-bright), #fff, var(--tac-orange-bright), transparent);
  box-shadow: 0 0 12px var(--tac-orange);
  top: -10px;
  opacity: 0;
  pointer-events: none;
}

.weapon-card:hover .fe-render-box::after {
  opacity: 1;
  animation: ueLaserScan 1.6s ease-in-out infinite;
}

@keyframes ueLaserScan {
  0% { top: -4px; opacity: 0.2; }
  50% { opacity: 1; }
  100% { top: 104%; opacity: 0.2; }
}

/* Anamorphic Lens Flare horizontal sobre el arma */
.weapon-card:hover .fe-render-box img {
  filter: drop-shadow(0 0 14px rgba(255, 110, 0, 0.45)) contrast(1.1) brightness(1.05);
}

/* --------------------------------------------------------------------------
   03. RECOIL KICK & MUZZLE BURST AL EQUIPAR
   -------------------------------------------------------------------------- */
.weapon-card.recoiling {
  animation: ueGunKick 0.35s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes ueGunKick {
  0% { transform: scale(1) translateX(0); }
  25% { transform: scale(0.96) translateX(-8px) rotate(-1.5deg); }
  55% { transform: scale(1.02) translateX(4px) rotate(0.8deg); }
  80% { transform: scale(0.99) translateX(-2px); }
  100% { transform: scale(1) translateX(0) rotate(0); }
}

/* Partículas flotantes holográficas que vuelan hacia el cofre */
.ue-floating-badge {
  position: fixed;
  pointer-events: none;
  z-index: 1000000;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.95), rgba(255, 34, 0, 0.95));
  border: 1px solid #fff;
  box-shadow: 0 0 20px var(--tac-orange), 0 8px 25px rgba(0, 0, 0, 0.9);
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 1.5px;
  animation: ueFlyToCart 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes ueFlyToCart {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.6);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -25px) scale(1.15);
  }
  80% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -90px) scale(0.8);
  }
}

/* --------------------------------------------------------------------------
   04. CHIPS DE BÚSQUEDA RÁPIDA (QUICK TAGS) EN EL BUSCADOR
   -------------------------------------------------------------------------- */
.search-quick-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 4px 0;
}

.quick-tag-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 1px;
}

.btn-quick-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-quick-tag:hover {
  background: rgba(255, 106, 0, 0.15);
  border-color: var(--tac-orange);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.3);
  transform: translateY(-1px);
}

.btn-clear-search {
  background: transparent;
  color: #64748b;
  font-size: 1.1rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 1;
  display: none;
}

.btn-clear-search:hover {
  color: #ff3344;
  transform: scale(1.2);
}

/* ==========================================================================
   05. UNREAL GUNSMITH ACCENTS & CATEGORY HOLOGRAMS
   ========================================================================== */

/* Fondo HUD milimétrico en tarjetas y visor */
.fe-card,
.inspector-stage {
  background-image: 
    radial-gradient(circle at 100% 0%, rgba(255, 102, 0, 0.04) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px, 24px 24px;
}

/* Acentos por Categoría Táctica */
.weapon-card.cat-pistol_semi {
  border-left: 3px solid #38bdf8 !important;
}
.weapon-card.cat-pistol_semi:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), 0 0 24px rgba(56, 189, 248, 0.28) !important;
}
.weapon-card.cat-pistol_semi::before,
.weapon-card.cat-pistol_semi::after {
  border-color: #38bdf8;
  filter: drop-shadow(0 0 6px #38bdf8);
}

.weapon-card.cat-revolver_magnum {
  border-left: 3px solid #fbbf24 !important;
}
.weapon-card.cat-revolver_magnum:hover {
  border-color: #fbbf24 !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), 0 0 24px rgba(251, 191, 36, 0.32) !important;
}
.weapon-card.cat-revolver_magnum::before,
.weapon-card.cat-revolver_magnum::after {
  border-color: #fbbf24;
  filter: drop-shadow(0 0 6px #fbbf24);
}

.weapon-card.cat-sniper {
  border-left: 3px solid #c084fc !important;
}
.weapon-card.cat-sniper:hover {
  border-color: #c084fc !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), 0 0 24px rgba(192, 132, 252, 0.28) !important;
}
.weapon-card.cat-sniper::before,
.weapon-card.cat-sniper::after {
  border-color: #c084fc;
  filter: drop-shadow(0 0 6px #c084fc);
}

.weapon-card.cat-assault {
  border-left: 3px solid #fb923c !important;
}
.weapon-card.cat-assault:hover {
  border-color: #fb923c !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), 0 0 24px rgba(251, 146, 60, 0.28) !important;
}

.weapon-card.cat-smg {
  border-left: 3px solid #34d399 !important;
}
.weapon-card.cat-smg:hover {
  border-color: #34d399 !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), 0 0 24px rgba(52, 211, 153, 0.28) !important;
}

.weapon-card.cat-shotgun {
  border-left: 3px solid #f87171 !important;
}
.weapon-card.cat-shotgun:hover {
  border-color: #f87171 !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), 0 0 24px rgba(248, 113, 113, 0.28) !important;
}

.weapon-card.cat-lmg {
  border-left: 3px solid #f97316 !important;
}
.weapon-card.cat-lmg:hover {
  border-color: #f97316 !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), 0 0 24px rgba(249, 115, 22, 0.28) !important;
}

.weapon-card.cat-heavy {
  border-left: 3px solid #f43f5e !important;
}
.weapon-card.cat-heavy:hover {
  border-color: #f43f5e !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), 0 0 24px rgba(244, 63, 94, 0.32) !important;
}

/* Category Pill Unreal Style Hover & Glow */
.cat-pill {
  position: relative;
  overflow: hidden;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-pill::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--tac-orange-bright);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-pill:hover::after,
.cat-pill.active::after {
  width: 100%;
}

.cat-pill.active {
  box-shadow: 0 0 16px rgba(255, 102, 0, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.15) !important;
}

