/* ==========================================================================
   StreekRP — Whitelist
   Página de verificación: una sola tarjeta, oscura y sobria.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;1,700&display=swap');

:root {
  --fondo:       #0a0a0c;
  --tarjeta:     #121317;
  --tarjeta-alt: #171922;
  --borde:       #24262e;
  --borde-claro: #32353f;

  --texto:   #e9eaee;
  --suave:   #b6bac4;
  --tenue:   #7d828e;
  --apagado: #5b606b;

  --blurple:      #5865f2;
  --blurple-alt:  #4752c4;
  --verde:        #3ba55d;
  --ambar:        #d99a2b;
  --rojo:         #dc4b46;

  --fuente: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --radio: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Ambiente: resplandor frío arriba a la izquierda + marca de agua abajo a la derecha */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60vw 45vh at 8% 0%,   rgba(88, 101, 242, .13), transparent 65%),
    radial-gradient(50vw 40vh at 92% 100%, rgba(255, 255, 255, .05), transparent 65%);
}
/* Marca de agua: el wordmark largo, centrado en la ventana */
body::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1400px, 88vw);
  aspect-ratio: 1595 / 231;
  z-index: -1;
  pointer-events: none;
  opacity: .05;
  background: url("/static/img/streekrp-wordmark-bg.png") no-repeat center / contain;
}

/* ---------------------------------------------------------------- estructura */

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.tarjeta {
  width: 100%;
  max-width: 720px;
  background: linear-gradient(160deg, var(--tarjeta-alt), var(--tarjeta) 55%);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 38px 42px 44px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
  animation: entrar .5s cubic-bezier(.2, .7, .3, 1) both;
}
.tarjeta.amplia { max-width: 1320px; }

@keyframes entrar {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- marca */

.marca {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}
.marca img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid var(--borde-claro);
  flex-shrink: 0;
}
.marca .nombre {
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.25;
}
.marca .que {
  font-weight: 600;
  font-size: .93rem;
  color: var(--tenue);
  line-height: 1.25;
}

/* ---------------------------------------------------------------- texto */

h1 {
  font-size: clamp(1.75rem, 4.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.15;
  margin: 0 0 20px;
}

p {
  margin: 0 0 14px;
  color: var(--suave);
  max-width: 62ch;
}
p.menor { font-size: .95rem; color: var(--tenue); }
p:last-of-type { margin-bottom: 0; }

.aviso {
  margin-top: 22px;
  padding: 13px 16px;
  border-radius: 9px;
  border: 1px solid rgba(217, 154, 43, .35);
  background: rgba(217, 154, 43, .09);
  color: #e8bd6d;
  font-size: .93rem;
}

/* ---------------------------------------------------------------- botones */

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

.boton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--blurple);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease, border-color .15s ease;
}
.boton:hover    { background: var(--blurple-alt); }
.boton:active   { transform: translateY(1px); }
.boton svg      { width: 20px; height: 20px; fill: currentColor; }

.boton.secundario {
  background: transparent;
  border-color: var(--borde-claro);
  color: var(--suave);
}
.boton.secundario:hover { background: rgba(255,255,255,.045); color: var(--texto); }

.boton.pequeno {
  font-size: .86rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
}
.boton.peligro {
  background: transparent;
  border-color: rgba(220, 75, 70, .45);
  color: #f0837e;
}
.boton.peligro:hover { background: rgba(220, 75, 70, .12); }

/* ---------------------------------------------------------------- resultado */

.insignia {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  border: 1px solid currentColor;
}
.insignia.ok    { color: var(--verde); }
.insignia.error { color: #f0837e; }

.datos {
  margin-top: 26px;
  border: 1px solid var(--borde);
  border-radius: 10px;
  overflow: hidden;
}
.datos div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 16px;
  font-size: .92rem;
  border-bottom: 1px solid var(--borde);
}
.datos div:last-child { border-bottom: 0; }
.datos span:first-child { color: var(--tenue); }
.datos span:last-child  { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- panel */

.totales {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}
.total {
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 15px 17px;
  background: rgba(255,255,255,.018);
}
.total .cifra { font-size: 1.75rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.total .nombre { font-size: .78rem; color: var(--tenue); font-weight: 600; }
.total.activos  .cifra { color: var(--verde); }
.total.revocados .cifra { color: var(--ambar); }
.total.baneados .cifra { color: #f0837e; }

.filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }

input[type="search"], input[type="text"], select {
  font-family: inherit;
  font-size: .93rem;
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: 8px;
  color: var(--texto);
  padding: 10px 13px;
  min-width: 240px;
}
select { min-width: 160px; }
input:focus, select:focus { outline: none; border-color: var(--blurple); }

.tabla { overflow-x: auto; border: 1px solid var(--borde); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; min-width: 900px; }
th {
  text-align: left;
  padding: 12px 15px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--tenue);
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid var(--borde);
  white-space: nowrap;
}
td { padding: 12px 15px; font-size: .92rem; border-bottom: 1px solid var(--borde); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.02); }
td.id { color: var(--apagado); font-size: .8rem; font-variant-numeric: tabular-nums; }
td .fila { display: flex; gap: 6px; flex-wrap: wrap; }
td form { display: inline; }

.estado {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.estado.activo { color: var(--verde); }
.estado.revocado { color: var(--ambar); }
.estado.baneado { color: #f0837e; }

.registro {
  margin-top: 30px;
  border: 1px solid var(--borde);
  border-radius: 10px;
  max-height: 340px;
  overflow-y: auto;
  font-size: .86rem;
}
.registro .linea { display: flex; gap: 14px; padding: 9px 15px; border-bottom: 1px solid var(--borde); color: var(--suave); }
.registro .linea:last-child { border-bottom: 0; }
.registro .cuando { color: var(--apagado); white-space: nowrap; font-variant-numeric: tabular-nums; }
.registro .que { color: var(--blurple); font-weight: 700; min-width: 110px; }

h2 { font-size: 1.15rem; font-weight: 700; margin: 34px 0 0; }

.vacio { padding: 44px 20px; text-align: center; color: var(--apagado); }

/* ---------------------------------------------------------------- pie */

footer {
  padding: 22px 20px 30px;
  text-align: center;
  font-size: .85rem;
  color: var(--apagado);
}
footer a { color: var(--tenue); text-decoration: none; }
footer a:hover { color: var(--suave); text-decoration: underline; }
footer .sep { margin: 0 9px; opacity: .5; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 600px) {
  main { padding: 28px 14px; }
  .tarjeta { padding: 28px 22px 32px; border-radius: 12px; }
  .marca img { width: 44px; height: 44px; }
  .boton { width: 100%; justify-content: center; }
  .boton.pequeno { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .boton:active { transform: none; }
}
