/* Soqunes NFT collections (scope: .nft-*) */

.nft-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.nft-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel, rgba(255, 255, 255, 0.02));
}
.nft-stat b { font-size: 16px; font-weight: 800; }
.nft-stat span { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }

.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.nft-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel, rgba(255, 255, 255, 0.02));
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.nft-card:hover { border-color: var(--jade); transform: translateY(-2px); }
.nft-thumb {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #0b0f14;
  display: block;
  object-fit: cover;
}
.nft-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 12px;
}
.nft-card-body { padding: 12px 14px 14px; }
.nft-card-title {
  font-weight: 800;
  font-size: 14px;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nft-card-meta { font-size: 11px; color: var(--faint); display: flex; gap: 10px; flex-wrap: wrap; }

.nft-detail-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.nft-detail-thumb {
  width: 180px;
  height: 180px;
  border-radius: 14px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #0b0f14;
}
.nft-detail-info { flex: 1; min-width: 240px; }
.nft-detail-info h2 { margin: 0 0 6px; font-size: 22px; }
.nft-detail-info p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.nft-kv { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--faint); }
.nft-kv b { color: var(--text); font-weight: 700; }

.nft-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.nft-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel, rgba(255, 255, 255, 0.02));
  cursor: pointer;
  transition: border-color .15s ease;
}
.nft-item:hover { border-color: var(--gold); }
.nft-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: #0b0f14; }
.nft-item-body { padding: 8px 10px 10px; }
.nft-item-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nft-item-sub { font-size: 10px; color: var(--faint); margin-top: 2px; }

.nft-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nft-chip {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.nft-chip b { color: var(--text); font-weight: 700; }

.nft-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 14px;
  cursor: pointer;
}
.nft-back:hover { color: var(--jade); }

.nft-empty {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}

.nft-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 6, 9, .78);
  backdrop-filter: blur(4px);
}
.nft-modal-card {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-solid, #0b1219);
  padding: 18px;
}
.nft-modal-card img { width: 100%; border-radius: 12px; display: block; margin-bottom: 14px; }
.nft-modal-close {
  float: right;
  background: none;
  border: 0;
  color: var(--faint);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.nft-modal-close:hover { color: var(--text); }

@media (max-width: 640px) {
  .nft-detail-thumb { width: 130px; height: 130px; }
  .nft-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
