/* 8Bit Collections - Retro Style */
:root {
  --bg: #010409;
  --card: #1a1a1a;
  --accent: #b8a125; /* gold */
  --text: #eaeaea;
  --muted: #9a9a9a;
  --shadow: rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "VT323", monospace;
  letter-spacing: 0.5px;
}

.site-header {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-bottom: 4px solid var(--accent);
}

.header-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/header-bg-placeholder.png'); /* Replace later */
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) contrast(1.1);
}

.header-content {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}

.logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 8px var(--shadow));
}

.title {
  text-align: center;
  font-size: 78px;
  margin: 0;
  color: var(--accent);
  /* Faux 8-bit border using multi-shadow */
  text-shadow:
    -3px -3px 0 #000,
     3px -3px 0 #000,
    -3px  3px 0 #000,
     3px  3px 0 #000;
}

.whatnot-btn {
  justify-self: end;
  text-decoration: none;
  background: var(--accent);
  color: #000;
  padding: 12px 20px;
  border: 3px solid #000;
  border-radius: 8px;
  font-size: 28px;
  box-shadow: 0 6px 0 #000;
  transition: transform 0.05s ease-in-out;
}
.whatnot-btn:active { transform: translateY(2px); box-shadow: 0 4px 0 #000; }

.container {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}

.section { margin-bottom: 56px; }

.section-title {
  font-size: 48px;
  margin: 0 0 12px 0;
  color: var(--accent);
  text-shadow: 2px 2px #000;
}

.controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.input, .select {
  background: var(--card);
  color: var(--text);
  border: 2px solid #000;
  padding: 10px 12px;
  font-size: 22px;
  border-radius: 8px;
  outline: none;
}

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

.card {
  background: var(--card);
  border: 3px solid #000;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 0 #000;
  transition: transform 0.07s;
}
.card:hover { transform: translateY(-2px); }

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  image-rendering: pixelated;
  border: 2px solid #000;
  background: #111;
  display: block;
  cursor: zoom-in;
}

.card-title {
  font-size: 28px;
  margin: 10px 0 4px 0;
  color: #fff;
}

.card-price {
  font-size: 24px;
  color: var(--accent);
}

.footer {
  border-top: 2px solid #000;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.modal.open { display: flex; }

.modal-content {
  background: #101010;
  border: 3px solid #000;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  padding: 12px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 28px;
  background: var(--accent);
  border: 3px solid #000;
  border-radius: 8px;
  cursor: pointer;
}

.modal-content img {
  max-width: 86vw;
  max-height: 70vh;
  display: block;
  margin: 0 auto;
  border: 2px solid #000;
}

.modal-caption {
  margin-top: 8px;
  font-size: 22px;
  color: var(--text);
  text-align: center;
}
