/* ========================================================
   ===== GLOBAL STYLES =====
   ======================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  cursor: url("img/minecraft-cursor.png"), auto;
}

/* FUENTE GLOBAL */
body, h1, h2, h3, h4, h5, h6, p, a, li, span, div, button {
  font-family: 'Press Start 2P', cursive;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  position: relative;
  color: #f5f5f5;
  line-height: 1.6;
  font-family: 'Press Start 2P', cursive;
}

/* Contenedor del fondo con overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("img/Fondo.png") no-repeat center center;
  background-size: cover;
  z-index: -2;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 0, 62, 0.5);
  z-index: -1;
}

:root {
  --purple: #9b59b6;
  --dark-purple: #2c003e;
  --light-purple: #d8b4ff;
  --pink: #ff6ec7;
  --gold: #ffd700;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========================================================
   ===== HEADER =====
   ======================================================== */
.main-header {
  background-color: var(--dark-purple);
  padding: 25px 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header h1 {
  color: var(--gold);
  font-size: 1.8rem;
}

.main-header h1 a {
  color: var(--gold);
  text-decoration: none;
  cursor: pointer;
}

nav ul {
  list-style: none;
  display: flex;
  font-size: 0.8rem;
  gap: 18px;
}

nav a {
  text-decoration: none;
  color: var(--light-purple);
  font-weight: bold;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover {
  color: var(--pink);
  text-shadow: 0 0 5px var(--pink);
}

.main-header.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(44, 0, 62, 0.95);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  z-index: 1000;
}

/* ========================================================
   ===== HERO SECTION =====
   ======================================================== */
.hero {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: url("img/sanciones.png") no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 65%, rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: cover;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 65%, rgba(0,0,0,0) 100%);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  z-index: 0;
}

.hero * {
  position: relative;
  z-index: 1;
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 999;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 0 10px;
}

.hero-content h2 {
  font-weight: 900;
  font-size: 1.4rem;
  color: #ffffff;
  text-shadow: 6px 6px 0 #000, 0 0 10px #8c00ff, 0 0 20px #b446f0;
  animation: glow 0.7s infinite alternate, float 3s ease-in-out infinite alternate;
}

.hero-ip {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

@keyframes glow {
  0% { text-shadow: 2px 2px 0 #000, 0 0 10px #8c00ff, 0 0 20px #b446f0; }
  100% { text-shadow: 2px 2px 0 #000, 0 0 15px #ff6ec7, 0 0 25px #ffd700; }
}

/* ========================================================
   ===== TABLA =====
   ======================================================== */
.tabla-container {
  overflow-x: hidden;  /* quitar scroll horizontal */
  margin: 50px 0;
}

#banTable {
  width: 100%;       /* ocupa todo el ancho disponible */
  max-width: 1600px; /* nunca más de 1600px */
  margin: 0 auto;
  border-collapse: collapse;
}

#banTable th, #banTable td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #8c00ff;
}

#banTable thead th {
  background: rgba(147,52,219,0.8);
  color: #fff;
}

#banTable tbody td {
  background: rgba(25,6,40,0.6);
  color: #fff;
}

#banTable tbody tr:hover td {
  background: rgba(145,0,255,0.9);
  cursor: pointer;
}

/* Ajuste de ancho por columna */
#banTable th:nth-child(1),
#banTable td:nth-child(1) { width: 15%; }   /* JUGADOR */
#banTable th:nth-child(2),
#banTable td:nth-child(2) { width: 22%; }   /* TIPO DE SANCIÓN */
#banTable th:nth-child(3),
#banTable td:nth-child(3) { width: 30%; }   /* RAZÓN */
#banTable th:nth-child(4),
#banTable td:nth-child(4) { width: 15%; }   /* STAFF */
#banTable th:nth-child(5),
#banTable td:nth-child(5) { width: 18%; }   /* FECHA */

/* ========================================================
   ===== FILTROS Y BUSCADOR =====
   ======================================================== */
.filtros-buscador {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
}

.filtros-buscador input {
  padding: 10px 15px;
  border-radius: 10px;
  border: none;
  font-family: 'Press Start 2P';
  font-size: 0.7rem;
  width: 250px;
}

.totalBoxes {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.totalBox {
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--dark-purple);
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  user-select: none;
}

/* ========================================================
   ===== PAGINACIÓN =====
   ======================================================== */
.paginacion {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 60px;
}

.paginacion button {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-family: 'Press Start 2P';
  background-color: var(--gold);
  color: var(--dark-purple);
  transition: 0.3s;
  margin: 0 6px; /* espacio horizontal entre botones */
}


.paginacion button:hover {
  background-color: var(--pink);
  color: white;
}

/* ========================================================
   ===== FOOTER =====
   ======================================================== */
footer {
  flex-shrink: 0;
  background-color: var(--dark-purple);
  padding: 20px;
  text-align: center;
  color: #daadff;
}

/* ========================================================
   ===== RESPONSIVE =====
   ======================================================== */
@media screen and (max-width: 900px) {
  #banTable th:nth-child(1), #banTable td:nth-child(1),
  #banTable th:nth-child(2), #banTable td:nth-child(2),
  #banTable th:nth-child(3), #banTable td:nth-child(3),
  #banTable th:nth-child(4), #banTable td:nth-child(4),
  #banTable th:nth-child(5), #banTable td:nth-child(5) {
    width: auto;
  }

  .filtros-buscador input {
    width: 180px;
    font-size: 0.6rem;
  }

  .totalBox {
    padding: 8px 14px;
    font-size: 0.6rem;
  }
}
