/* hardware archive background */
:root {
  --content-max: 980px;
  --header-h: 92px; /* tune this if you change header padding/size */
  --footer-h: 54px;
}

body {
  /* layout & type */
  margin: 0;
  color: #e6e6e6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.45;

  background:
    radial-gradient(1200px 600px at 10% -10%, #1a1a1a 0%, transparent 60%),
    radial-gradient(800px 400px at 90% 10%, #111 0%, transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}

/* subtle grid / lab feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,    255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* keep content above overlay */
.site-header,
.content,
.site-footer {
  position: relative;
  z-index: 1;
}

/* fixed header & footer */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 16px;
  min-height: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.30));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 16px;
  min-height: var(--footer-h);
  box-sizing: border-box;
  text-align: center;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0.30));
  border-top: 1px solid rgba(255,255,255,0.03);
}

/* header tweak */
.site-header h1 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-shadow: 0 0 12px rgba(255,255,255,0.05);
}

.site-header .tagline {
  margin: 4px 0 0 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

.back-btn {
  position: absolute;
  top: 18px;
  right: 16px;
  padding: 6px 12px;
  font-size: 0.9rem;
  color: #e6e6e6;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
  transition: all 0.2s ease;
  cursor: pointer;
}

.back-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

/* hardware table container */
.hardware-table {
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(6px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 20px 40px rgba(0,0,0,0.6);
}

/* content wrapper */
.content {
  max-width: var(--content-max);
  margin: 0 auto;
  /* ensure content is offset by the fixed header/footer so nothing is overlapped */
  padding: calc(var(--header-h) + 1rem) 16px calc(var(--footer-h) + 0.5rem);
  box-sizing: border-box;
}

/* section headings */
.hardware-section {
  margin-bottom: 2rem;
}

.hardware-section h2 {
  margin: 0 0 12px 0;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #f2f2f2;
}

/* rows hover = scanner effect */
.row:not(.header):hover {
  background: rgba(255, 255, 255, 0.04);
}

/* header row glow */
.row.header {
  letter-spacing: 0.08em;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.01)
  );
}

/* rows as a responsive grid */
.hardware-table {
  overflow: hidden;
  border-radius: 8px;
}

.hardware-table .row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.hardware-table .row.header {
  font-size: 0.85rem;
  text-transform: uppercase;
  opacity: 0.95;
}

.hardware-table .row span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* small screens: stack into 2 columns */
@media (max-width: 700px) {
  .hardware-table .row {
    grid-template-columns: 1fr 1fr;
  }
  .hardware-table .row.header {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hardware-table .row span:nth-child(n+3) {
    opacity: 0.9;
    font-size: 0.95rem;
  }
}

/* section separation */
.hardware-section {
  position: relative;
}

.hardware-section::before {
  content: "";
  position: absolute;
  top: -2rem;
  left: 0;
  width: 120px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.4),
    transparent
  );
}

/* status glow */
.owned {
  color: #7CFC98;
  text-shadow: 0 0 8px rgba(124, 252, 152, 0.3);
}

.missing {
  color: #f2c94c;
  text-shadow: 0 0 8px rgba(242, 201, 76, 0.3);
}

.dead {
  color: #ff6b6b;
  text-shadow: 0 0 8px rgba(255, 107, 107, 0.3);
}
