/* styles/marketplace.css */

/* Layout for marketplace listings */
#marketplace {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 2rem 3rem;
}

/* Section heading styling */
h2 {
  margin-top: 2rem;
  font-size: 1.6rem;
  border-bottom: 2px solid #8739f9;
  padding-bottom: 0.5rem;
  text-align: center;
}

/* Card styling */
.nft-card {
  background: #1e1e2f;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nft-card img {
  width: 100%;
  height: auto;
  display: block;
}
.nft-card p {
  margin: 0.6rem 0;
  color: #fff;
  text-align: center;
}
.nft-card button {
  margin: 0.6rem;
  width: calc(100% - 1.2rem);
  padding: 0.8rem;
  font-size: 1rem;
  background: #8739f9;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.nft-card button:hover {
  background: #6b2ccf;
}

/* Hover effect */
#marketplace .nft-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(135, 57, 249, 0.4);
}

/* Empty state */
#marketplace p {
  color: #bbb;
  font-size: 1rem;
  text-align: center;
  grid-column: 1 / -1;
}

/* Mobile optimizations */
@media (max-width: 900px) {
  #marketplace {
    padding: 1.5rem;
    gap: 1rem;
  }
  .nft-card button {
    font-size: 0.9rem;
    padding: 0.7rem;
  }
}
@media (max-width: 600px) {
  html { font-size: 14px; }
  header h1 { font-size: 1.8rem; }
  #marketplace {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    padding: 1rem;
  }
  h2 { font-size: 1.4rem; }
  .nft-card { border-radius: 8px; }
  .nft-card button { padding: 0.6rem; }
}
