/* Tech & Implant Database — holographic dark */
/* base theme */
:root {
  --bg1: #04030a;
  --bg2: #020108;
  --panel: rgba(10, 8, 24, 0.96);
  --border: rgba(255,255,255,0.06);
  --accent-cyan: #2de3ff;
  --accent-pink: #ff2da8;
  --text-main: #dde3ff;
  --text-muted: #9aa0c7;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 10% 0%, rgba(80,150,255,0.2), transparent 60%),
    radial-gradient(circle at 90% 10%, rgba(0,255,200,0.16), transparent 70%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  background-attachment: fixed;
}

/* noise overlay */
.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    url("assets/noise.png"),
    url("assets/scanline.png");
  opacity: 0.1;
  mix-blend-mode: soft-light;
}

/* layout */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1150px;
  margin: 18px auto 40px;
  padding: 0 14px;
}

/* header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.logo {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
}

.logo .accent {
  color: var(--accent-cyan);
}

.logo .sub {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

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

.nav a:hover {
  color: var(--accent-cyan);
}

/* panels */
.panel,
.hero-panel {
  background: var(--panel);
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.9);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.panel::after,
.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("assets/gradient-bg.png");
  background-size: cover;
  background-position: center;
  mix-blend-mode: soft-light;
  opacity: 0.08;
}

/* hero */
.hero-panel {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
}

.hero-panel h1 {
  margin: 0 0 6px;
  font-size: 22px;
}

.muted {
  color: var(--text-muted);
}

.hero-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.1);
}

/* pulse */
.hero-right {
  display: flex;
  justify-content: flex-end;
}

.pulse-shell {
  max-width: 260px;
  width: 100%;
  background: rgba(0,0,0,0.7);
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.1);
}

.pulse-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pulse-bar {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}

.pulse-fill {
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
  box-shadow: 0 0 16px rgba(45,227,255,0.6);
  transition: width 0.4s ease-out;
}

.pulse-read {
  margin-top: 6px;
  font-size: 11px;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace;
}

/* filters */
.filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr)) auto;
  gap: 10px;
  align-items: flex-end;
}

.filter-group label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(2,2,8,0.9);
  color: var(--text-main);
  font-size: 12px;
}

.btn {
  padding: 7px 12px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
  color: #050509;
}

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

/* panel headers */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.panel-header h2 {
  margin: 0;
  font-size: 17px;
}

.panel-sub {
  font-size: 12px;
}

/* implant grid */
.implant-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 10px;
}

.implant-card {
  position: relative;
  border-radius: 12px;
  padding: 10px;
  background: radial-gradient(circle at top, rgba(18,222,255,0.2), rgba(0,0,0,0.9));
  border: 1px solid rgba(255,255,255,0.14);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.implant-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  box-shadow: 0 16px 40px rgba(0,0,0,0.9);
}

.implant-title {
  font-size: 13px;
  font-weight: 700;
}

.implant-meta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 10px;
}

.pill {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.7);
}

.pill.rarity-common { color: #c7d3ff; }
.pill.rarity-rare { color: #a3ffd9; }
.pill.rarity-exotic { color: #ffd7ff; }
.pill.rarity-forbidden { color: #ff9fae; }

.pill.category-illegal {
  border: 1px solid rgba(255,73,118,0.8);
}

.pill.shop-tag {
  border: 1px solid rgba(255,255,255,0.18);
}

.implant-desc {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

/* console */
.console {
  margin-top: 8px;
  background: rgba(0,0,0,0.85);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  color: #b6f2ff;
  white-space: pre-wrap;
}

/* shops */
.shops-panel {
  margin-top: 12px;
}

.shop-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 10px;
}

.shop-card {
  border-radius: 12px;
  padding: 10px 11px;
  background: radial-gradient(circle at top, rgba(255,255,255,0.07), rgba(0,0,0,0.9));
  border: 1px solid rgba(255,255,255,0.16);
}

.shop-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.shop-card h3 {
  margin: 4px 0 4px;
  font-size: 14px;
  color: var(--accent-cyan);
}

.small {
  font-size: 12px;
}

/* SPACED SHOP ITEMS */
.shop-list.spaced li {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  line-height: 1.45;
}

.shop-list.spaced li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.district {
  display: inline-block;
  font-size: 11px;
  color: #8fdcff;
  margin-bottom: 4px;
}

/* footer */
.footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin: 16px 0 28px;
}

/* responsive */
@media (max-width: 900px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }
  .hero-right {
    justify-content: flex-start;
  }
}

@media (max-width: 780px) {
  .site-header {
    flex-direction: column;
    gap: 6px;
  }
  .nav {
    display: flex;
    flex-wrap: wrap;
  }
  .nav a {
    margin: 2px 10px 0 0;
  }
  .filter-panel {
    grid-template-columns: repeat(2, minmax(0,1fr));
    grid-auto-rows: auto;
  }
}