/* ===== SECCIÓN ESTADÍSTICAS DE ARTEFACTOS - ESTILO GENSHIN IMPACT PREMIUM ===== */
#seccion-estadisticas-artefactos {
  background: rgba(20, 20, 30, 0.8);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 30px rgba(100, 150, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  height: 450px;
  display: flex;
  flex-direction: column;
}

#seccion-estadisticas-artefactos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff9c34, #ff3d3d, #a162e8, #5a9cf8, #47cfff);
}

#seccion-estadisticas-artefactos:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Cabecera estilo Genshin */
#seccion-estadisticas-artefactos h2 {
  font-family: 'GenshinFont', sans-serif;
  color: #ffeb3b;
  text-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
  letter-spacing: 1px;
  text-align: center;
  margin: 0;
  font-size: 1.8rem;
  position: relative;
}

/* Bono de conjuntos */
#bono-conjuntos {
  background: linear-gradient(145deg, #2a2a3a, #1e1e2a);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 15px;
  padding: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

#bono-conjuntos::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  transform: rotate(30deg);
  transition: all 0.5s ease;
  opacity: 0;
}

#bono-conjuntos:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 215, 0, 0.3);
}

#bono-conjuntos:hover::before {
  opacity: 1;
  animation: shine 1.5s infinite;
}

/* Grid de estadísticas mejorado */
#estadisticas-artefactos {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  padding: 5px;
  flex: 1;
  overflow-y: auto;
  margin-bottom: 15px;
}

/* Scrollbar personalizada */
#estadisticas-artefactos::-webkit-scrollbar {
  width: 6px;
}

#estadisticas-artefactos::-webkit-scrollbar-thumb {
  background: linear-gradient(#ff9c34, #a162e8);
  border-radius: 10px;
}

/* Ítem de estadística premium */
.stat-item {
  background: linear-gradient(145deg, #2a2a3a, #1e1e2a);
  border-radius: 12px;
  padding: 12px;
  cursor: default;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  transform: rotate(30deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border-color: rgba(100, 200, 255, 0.3);
}

.stat-item:hover::before {
  opacity: 1;
  animation: shine 1.5s infinite;
}

/* Textos de las estadísticas */
.stat-label {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  flex-grow: 1;
}

.stat-value {
  color: #ffd700;
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
  min-width: 40px;
  text-align: right;
}

/* Efecto vision al final */
.vision-effect {
  height: 3px;
  background: linear-gradient(90deg, #ff9c34, #ff3d3d, #a162e8, #5a9cf8, #47cfff);
  margin-top: 10px;
  border-radius: 3px;
  animation: vision-glow 4s infinite alternate;
}

/* ===== ANIMACIONES ===== */
@keyframes shine {
  0% { transform: rotate(30deg) translate(-10%, -10%); }
  100% { transform: rotate(30deg) translate(10%, 10%); }
}

@keyframes vision-glow {
  0% { opacity: 0.5; }
  100% { opacity: 1; box-shadow: 0 0 10px rgba(100, 200, 255, 0.7); }
}

/* ===== MEDIA QUERIES ===== */
@media (min-width: 576px) {
  #estadisticas-artefactos {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }
}

@media (min-width: 768px) {
  #seccion-estadisticas-artefactos h2 {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }
  
  .stat-value {
    font-size: 1.05rem;
  }
}

@media (max-width: 576px) {
  #estadisticas-artefactos {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
  }
  
  .stat-item {
    padding: 10px;
  }
}