/* Codex — FULL CSS (Original Engine + Spark Drift + Pulse Ring) */
/* NO mobile overrides. NO experimental layers. Pure PC-perfect version. */

/* -------------------------------------------- */
/*                   THEME                      */
/* -------------------------------------------- */
:root {
  --bg1: #08050a;
  --bg2: #06030a;
  --muted: #cfc8e6;
  --mag: #ff2da8;
  --cyan: #2de3ff;
  --glass: rgba(255,255,255,0.02);
  --card: rgba(8,6,12,0.6);
  --accent-glow: 0 12px 40px rgba(45,227,255,0.04);
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial;
  color: var(--muted);
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
  -webkit-font-smoothing: antialiased;
  overflow-y: auto;
}

/* -------------------------------------------- */
/*     ANIMATED PARALLAX BACKGROUND LAYERS      */
/* -------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    url("assets/gradient-bg.png"),
    url("assets/ui-plasma.png"),
    linear-gradient(180deg, rgba(10,0,20,0.18), rgba(0,0,0,0.6));
  background-size: cover, 600px 600px, cover;
  background-position: center, 20% 30%, center;
  opacity: 0.95;
  filter: blur(16px) saturate(120%);
  animation: parallaxShift 18s linear infinite;
}

@keyframes parallaxShift {
  0% { background-position: center, 20% 30%, center; }
  50% { background-position: 10% 40%, 30% 20%, center; }
  100% { background-position: center, 20% 30%, center; }
}

/* --- Noise + Scanline Overlay --- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image:
    url("assets/noise.png"),
    url("assets/scanline.png");
  background-repeat: repeat, repeat;
  opacity: 0.06;
  mix-blend-mode: overlay;
}

/* -------------------------------------------- */
/*           SPARK PARTICLES — DRIFT            */
/* -------------------------------------------- */
/* We use html::before so it layers ABOVE parallax but BELOW UI */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background-image: url("assets/spark-points.png");
  background-size: 700px 700px;
  background-repeat: repeat;

  opacity: 0.35;
  animation: driftSpark 28s linear infinite;
}

@keyframes driftSpark {
  0%   { transform: translateY(0px) translateX(0px); }
  50%  { transform: translateY(-40px) translateX(25px); }
  100% { transform: translateY(-80px) translateX(50px); }
}

/* -------------------------------------------- */
/*                    LAYOUT                    */
/* -------------------------------------------- */
.wrap {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  margin: 18px auto;
  padding: 14px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.logo { font-weight: 800; }

.logo .accent {
  color: var(--mag);
  text-shadow: 0 0 6px rgba(255,45,168,0.08);
}

.nav a {
  color: var(--muted);
  margin-left: 12px;
  text-decoration: none;
}

/* -------------------------------------------- */
/*                 HERO SECTION                 */
/* -------------------------------------------- */
.main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.hero-left { flex: 1; }

.hero-card {
  display: flex;
  gap: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 12px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 5;
}

/* -------------------------------------------- */
/*           PULSE RING BEHIND PORTRAIT         */
/* -------------------------------------------- */
.hero-image {
  width: 200px;
  height: 150px;
  border-radius: 8px;

  /* semi-transparent to reveal halo */
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);

  box-shadow: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #050507;
  position: relative;
  overflow: visible;
}

/* Halo glow */
.hero-image::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -1;

  background-image: url("assets/pulse-ring.png");
  background-size: cover;
  background-position: center;

  opacity: 0.35;
  filter: blur(4px);

  animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%   { opacity: 0.30; transform: scale(0.98); }
  50%  { opacity: 0.42; transform: scale(1.02); }
  100% { opacity: 0.30; transform: scale(0.98); }
}

.hero-text h1 {
  margin: 0 0 8px 0;
  font-size: 20px;
}

.hero-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.status {
  background: rgba(179,255,77,0.08);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.blurb { margin: 0 0 8px 0; }

/* -------------------------------------------- */
/*                  FILTERS                     */
/* -------------------------------------------- */
.filters { width: 320px; }

.filter {
  background: var(--card);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.filter label {
  font-size: 13px;
  display: block;
  margin-bottom: 6px;
}

.filter input,
.filter select {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: none;
  background: rgba(0,0,0,0.25);
  color: var(--muted);
}

/* -------------------------------------------- */
/*               FIGHTER CARDS                  */
/* -------------------------------------------- */
.cards-area { padding-top: 8px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
  padding: 12px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.6);
}

.thumb {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  background: #0a0810;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.card h4 { margin: 0 0 6px 0; }

.card .meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}

.status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,45,168,0.06);
  padding: 6px 8px;
  border-radius: 999px;
  font-weight: 700;
}

/* -------------------------------------------- */
/*                  MODAL                       */
/* -------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 999;
}

.modal.hidden { display: none; }

.modal-card {
  background: linear-gradient(180deg, rgba(5,4,8,0.96), rgba(8,6,12,0.98));
  padding: 18px;
  border-radius: 12px;
  max-width: 720px;
  width: 92%;
  position: relative;
}

.close {
  position: absolute;
  right: 18px;
  top: 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}

.modal-bio {
  white-space: pre-wrap;
  color: #e6e1f8;
  margin-top: 8px;
}

.muted { color: #9f97b8; }

/* -------------------------------------------- */
/*                 BUTTONS                      */
/* -------------------------------------------- */
.btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, var(--mag), var(--cyan));
  color: #06060a;
  font-weight: 700;
  cursor: pointer;
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--muted);
}

/* -------------------------------------------- */
/*                RESPONSIVE                    */
/* -------------------------------------------- */
@media (max-width: 980px) {
  .hero {
    flex-direction: column;
  }
  .filters {
    width: 100%;
  }
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}