/* ─── Marketplace Cards ─── White bg, black accent, compact with image-under-icon */

:root {
  --market-accent: #111827;
  --market-accent-soft: #374151;
  --market-accent-glow: rgba(17, 24, 39, 0.20);
}

body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(17, 24, 39, 0.04) 0%, transparent 55%),
    #f9fafb;
}

.nav-link.active .bar {
  background-color: var(--market-accent);
}

.market-card {
  background: #fff;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
  padding: 1.25rem;
  position: relative;
  margin-top: 20px;
}

.market-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.13), 0 6px 16px rgba(0, 0, 0, 0.05);
  border-color: #111827;
}

.market-card:hover .card-img {
  transform: scale(1.06);
}

.market-card:hover .card-icon-circle {
  transform: translateX(-50%) scale(1.12);
}


.card-icon-circle {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--market-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow:
    0 8px 20px var(--market-accent-glow),
    0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 3;
  transition: transform 0.26s ease;
}

/* Image sits at very top under icon */
.card-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: linear-gradient(180deg, #eef0f2 0%, #e5e7eb 100%);
  border-radius: 16px;
  margin-top: 0px;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: transform 0.26s ease;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.card-img .placeholder-text {
  color: #9ca3af;
  font-size: 0.8rem;
  font-weight: 500;
}

.market-card h3 {
  font-weight: 700;
  color: var(--market-accent);
  letter-spacing: -0.01em;
}

.market-card p {
  color: #4b5563;
  line-height: 1.45;
}

.market-card .version-line {
  color: #6b7280;
  font-size: 0.8rem;
}

.market-card .version-line strong {
  color: var(--market-accent);
  font-weight: 700;
}

/* Smaller chips */
.chip-market {
  background: #f9fafb;
  color: var(--market-accent-soft);
  border: 1.5px solid #d1d5db;
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.15s ease;
}

.chip-market:hover {
  transform: translateY(-1px);
  border-color: var(--market-accent);
}

/* Compact CTA buttons */
.btn-ghost-market {
  flex: 1;
  padding: 8px 14px;
  border-radius: 9999px;
  border: 1.5px solid #d1d5db;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--market-accent-soft);
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn-ghost-market:hover {
  border-color: var(--market-accent);
  color: var(--market-accent);
  background: #f9fafb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-primary-market {
  flex: 1;
  padding: 8px 14px;
  border-radius: 9999px;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: var(--market-accent);
  box-shadow: 0 4px 12px var(--market-accent-glow);
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn-primary-market:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.25);
}

.dropdown-market {
  width: 100%;
  padding: 8px 12px;
  border-radius: 9999px;
  border: 1.5px solid #d1d5db;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--market-accent-soft);
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23374151'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 30px;
}

.dropdown-market:hover {
  border-color: var(--market-accent);
}

/* ─── Marketplace Shimmer Skeleton ─── */
.shimmer-card {
  background: #fff;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.06);
  padding: 1.25rem;
  position: relative;
  margin-top: 20px;
}
.shimmer-card .shimmer-circle {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
}
.shimmer-card .shimmer-img {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
}
.shimmer-card .shimmer-line {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
}