/* Marketplace page — public/css/marketplace.css */
* { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body { font-family: "Inter", sans-serif; background-color: #FAFAFA; color: #111827; }
h1, h2, h3, h4, h5, h6 { font-family: "Space Grotesk", sans-serif; }
.header-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
.mobile-menu { transform: translateX(100%); transition: transform 300ms ease-out; }
.mobile-menu.open { transform: translateX(0); }
.list-row { transition: background-color 180ms ease-out; }
.list-row:hover { background-color: #F9FAFB; }
.btn-primary { transition: all 200ms ease-out; }
.btn-primary:hover { background-color: #1D4ED8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.badge-instagram { background-color: #E4405F; }
.badge-tiktok { background-color: #000000; }
.badge-youtube { background-color: #FF0000; }
.badge-twitter { background-color: #1DA1F2; }
.badge-facebook { background-color: #1877F2; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #F5F5F5; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

html { scroll-padding-top: 5rem; }

@keyframes marketplace-spin {
  to { transform: rotate(360deg); }
}
.marketplace-loader-dot {
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid #DBEAFE;
  border-top-color: #2563EB;
  border-radius: 50%;
  animation: marketplace-spin 0.75s linear infinite;
}

.mp-listing-title {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.mp-listing-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (min-width: 768px) {
  .mp-listing-desc--desktop {
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 767px) {
  .list-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .row-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .row-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.mp-service-promos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.mp-service-promo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.55rem;
  min-height: 2.375rem;
  border-radius: 0.5rem;
  border: 1px solid #E5E7EB;
  background: #fff;
  color: #111827;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out, background-color 180ms ease-out;
}
.mp-service-promo:hover {
  border-color: #93C5FD;
  background: #F8FAFC;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.mp-service-promo:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}
.mp-service-promo__icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  background: #EFF6FF;
  color: #2563EB;
}
.mp-service-promo__label {
  flex: 1;
  min-width: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-service-promo__detail {
  display: none;
  min-width: 0;
  flex: 1;
}
.mp-service-promo__arrow {
  flex-shrink: 0;
  font-size: 0.55rem;
  color: #2563EB;
  opacity: 0.7;
  line-height: 1;
  transition: transform 180ms ease-out, opacity 180ms ease-out;
}
.mp-service-promo:hover .mp-service-promo__arrow {
  opacity: 1;
  transform: translateX(1px);
}

@media (min-width: 640px) {
  .mp-service-promos {
    gap: 0.75rem;
  }

  .mp-service-promo {
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    min-height: 0;
    border-radius: 0.75rem;
  }

  .mp-service-promo__icon {
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 0.6rem;
    font-size: 0.95rem;
  }

  .mp-service-promo__label {
    display: none;
  }

  .mp-service-promo__detail {
    display: block;
    flex: 1;
  }

  .mp-service-promo__arrow {
    display: none;
  }

  .mp-service-promo__eyebrow {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin: 0 0 0.15rem;
    color: #2563EB;
    line-height: 1.2;
  }

  .mp-service-promo__title {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    color: #111827;
  }

  .mp-service-promo__action {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    color: #2563EB;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .mp-service-promo:hover .mp-service-promo__action {
    color: #1D4ED8;
  }
}
