/* NFT Marketplace — 2026-08-16 backlog item. */

.market-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px;
}

.market-notice {
  background: #1c2128;
  border: 1px solid #30363d;
  border-left: 3px solid #d29922;
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 13px;
  color: #8b949e;
  margin-bottom: 18px;
}
.market-notice strong { color: #e6edf3; }

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

.nft-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .12s;
}
.nft-card:hover { border-color: #58a6ff; }

.nft-thumb {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  background: #0d1117;
  border-bottom: 1px solid #30363d;
}

.nft-body {
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nft-body .hint { font-size: 12px; color: #6e7681; }
.nft-body .badge { align-self: flex-start; }

.nft-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
  cursor: default;
}
.nft-actions input { width: 96px; }

/* Detail modal */
.nft-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(1, 4, 9, .82);
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.nft-modal.open { display: flex; }

.nft-modal-inner {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 22px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.nft-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  color: #8b949e;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.nft-close:hover { color: #e6edf3; }

#nft-big {
  display: block;
  margin: 12px auto;
  image-rendering: pixelated;
  border: 1px solid #30363d;
  border-radius: 4px;
  background: #0d1117;
  max-width: 100%;
}

.share-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.share-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #21262d;
  font-size: 13px;
}
.share-list li:last-child { border-bottom: none; }
