/* ===== SECCIÓN ARMAS – ESTILO CLONADO DE PERSONAJES ===== */
#seccion-armas {
  /* mismo container que .genshin-section */
  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;
  display: flex;
  flex-direction: column;
}

/* barra superior animada */
#seccion-armas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,#ff9c34,#ff3d3d,#a162e8,#5a9cf8,#47cfff);
}

/* ===== CABECERA ===== */
#seccion-armas .section-header {
  text-align: center;
  margin-bottom: 15px;
  position: relative;
}

#seccion-armas .section-title {
  font-family: 'GenshinFont', sans-serif;
  color: #ffeb3b;
  text-shadow: 0 0 10px rgba(255,235,59,.5);
  letter-spacing: 1px;
  margin: 0;
  font-size: 1.8rem;
  position: relative;
  display: inline-block;
}

#seccion-armas .elemental-divider {
  height: 2px;
  background: linear-gradient(90deg,transparent,rgba(255,235,59,.7),transparent);
  margin: 10px auto;
  width: 70%;
}

/* ===== CONTENEDOR SCROLL ===== */
.scroll-armas {
  height: calc(100% - 90px);          /* mismo cálculo header/footer */
  overflow-y: auto;
  padding-right: 8px;
}

/* barra scrollbar */
.scroll-armas::-webkit-scrollbar       { width: 6px; }
.scroll-armas::-webkit-scrollbar-thumb {
  background: linear-gradient(#ff9c34,#a162e8);
  border-radius: 10px;
}

/* ===== GRID DE ARMAS ===== */
#armas-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fill,minmax(100px,1fr));
  padding: 5px;
}

/* ===== TARJETAS DE ARMAS ===== */
.arma-card {
  background: linear-gradient(145deg,#2a2a3a,#1e1e2a);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all .3s ease;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 4px 15px rgba(0,0,0,.3);
  position: relative;
  overflow: hidden;
}

.arma-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,rgba(255,255,255,.1) 0%,transparent 70%);
  transform: rotate(30deg);
  transition: all .5s ease;
  opacity: 0;
}

.arma-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,.5);
  border-color: rgba(255,215,0,.3);
}

.arma-card:hover::before {
  opacity: 1;
  animation: shine 1.5s infinite;
}

@keyframes shine {
  0%   { transform: rotate(30deg) translate(-10%,-10%); }
  100% { transform: rotate(30deg) translate( 10%, 10%); }
}

.arma-card.seleccionada {
  border: 2px solid #ffeb3b;
  box-shadow: 0 0 20px rgba(255,235,59,.5);
  animation: pulse-gold 1.5s infinite;
}

@keyframes pulse-gold {
  0%   { box-shadow: 0 0 10px rgba(255,235,59,.5); }
  50%  { box-shadow: 0 0 20px rgba(255,235,59,.8); }
  100% { box-shadow: 0 0 10px rgba(255,235,59,.5); }
}

/* ===== IMAGEN DEL ARMA ===== */
.arma-wrapper {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a25;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,.05);
  position: relative;
}

.arma-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(transparent,rgba(0,0,0,.7));
}

.arma-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.arma-card:hover .arma-img { transform: scale(1.1); }

/* ===== NOMBRE DEL ARMA ===== */
.arma-nombre {
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  margin: 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
  position: relative;
  z-index: 1;
}

/* ===== EFECTO DE VISIÓN (barra inferior) ===== */
#seccion-armas .vision-effect {
  height: 3px;
  background: linear-gradient(90deg,#ff9c34,#ff3d3d,#a162e8,#5a9cf8,#47cfff);
  margin-top: 20px;
  border-radius: 3px;
  animation: vision-glow 4s infinite alternate;
}

/* Centrado del título como en personajes */
#seccion-armas .section-title {
  font-family: 'GenshinFont', sans-serif;
  color: #ffeb3b;
  text-shadow: 0 0 10px rgba(255,235,59,0.5);
  letter-spacing: 1px;
  margin: 0 auto; /* <-- este es el fix clave */
  font-size: 1.8rem;
  position: relative;
  display: inline-block;
}

/* Asegura que el divisor se vea como en personajes */
#seccion-armas .elemental-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 235, 59, 0.7), transparent);
  margin: 10px auto;
  width: 70%;
  display: block;
}

/* Estilo para el footer de armas (para que no se pierda la barra) */
#seccion-armas .section-footer {
  margin-top: auto;
  padding-top: 10px;
}


@keyframes vision-glow {
  0%   { opacity: .5; }
  100% { opacity: 1; box-shadow: 0 0 10px rgba(100,200,255,.7); }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 576px){
  #armas-grid { grid-template-columns: repeat(auto-fill,minmax(110px,1fr)); }
}
@media (min-width: 768px){
  #armas-grid { grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); }
  #seccion-armas .section-title { font-size: 2rem; }
}
