/**
 * css/marketplace.css
 * ─────────────────────────────────────────────────────────────────
 * Styles specific to the marketplace page: the sticky filter header,
 * category tabs, search bar, sort dropdown, featured section label,
 * and the results count / clear-filter row.
 * ─────────────────────────────────────────────────────────────────
 */

/* ─── MARKETPLACE HEADER (sticky top section with search + filters) */
.marketplace-header {
  position: relative;
  background:
    radial-gradient(ellipse 60% 130% at 80% -30%, var(--orange-dim) 0%, transparent 60%),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 48px 5vw 0;
}

.marketplace-header__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.marketplace-header__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -1px;
}

.marketplace-header__sub {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ─── SEARCH + SORT ROW ─────────────────────────────────────────── */
.marketplace-search {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.marketplace-search input {
  flex: 1;
  min-width: 160px;
  border-radius: 8px;
}

.marketplace-search select {
  width: 160px;
  border-radius: 8px;
}

/* ─── CATEGORY TABS ─────────────────────────────────────────────── */
.cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
  /* Hide scrollbar but keep scrollability */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cat-tabs::-webkit-scrollbar {
  display: none;
}

/* Individual tab pill */
.cat-tab {
  padding: 8px 18px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  white-space: nowrap;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.cat-tab:hover {
  border-color: var(--border-hi);
  color: var(--text);
  background: var(--surface-hi);
}

.cat-tab.active {
  background: linear-gradient(135deg, var(--orange-hi), var(--orange));
  border-color: var(--orange);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 2px 10px rgba(255, 98, 0, 0.22);
}

/* Special Sync tab */
.cat-tab--sync {
  border-color: rgba(255,98,0,0.4);
  color: var(--orange);
  font-weight: 700;
  margin-left: 8px;
  background: rgba(255,98,0,0.06);
}
.cat-tab--sync:hover {
  border-color: var(--orange);
  background: rgba(255,98,0,0.12);
  color: var(--orange);
}
.cat-tab--sync.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* Sync marketplace bundle cards */
.sync-mkt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.sync-mkt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px var(--shadow);
  border-color: var(--orange);
}
.sync-mkt-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.sync-mkt-card__badge {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,98,0,0.1);
  border: 1px solid rgba(255,98,0,0.25);
  border-radius: 100px;
  padding: 2px 10px;
}
.sync-mkt-card__tools {
  font-size: 22px;
  letter-spacing: 2px;
}
.sync-mkt-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.sync-mkt-card__pair {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sync-mkt-card__tagline {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-top: 4px;
}
.sync-mkt-card__superpower {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.sync-mkt-card__unlocks {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 4px;
}
.sync-mkt-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.sync-mkt-card__price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.sync-mkt-card__savings {
  font-family: var(--font-body);
  font-size: 11px;
  color: #16a34a;
  font-weight: 600;
  margin-top: 2px;
}
.sync-mkt-card__cta {
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.sync-mkt-card__cta:hover { opacity: 0.88; }

/* 2-column grid for sync cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Custom Sync Builder */
.sync-builder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.sync-builder__header {
  margin-bottom: 20px;
}
.sync-builder__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.sync-builder__sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 580px;
}
.sync-builder__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.sync-builder__pill {
  padding: 9px 18px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s;
}
.sync-builder__pill:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-1px);
}
.sync-builder__pill.is-selected {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.sync-builder__pill.is-dimmed {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.sync-builder__result {
  min-height: 60px;
}

/* ─── MARKETPLACE CONTENT AREA ─────────────────────────────────── */
.marketplace-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 5vw 80px;
}

/* ─── FEATURED SECTION ──────────────────────────────────────────── */
.featured-section {
  margin-bottom: 56px;
}

.featured-section__label {
  margin-bottom: 20px;
}

/* ─── RESULTS BAR (count + clear filters) ────────────────────────── */
.results-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.results-bar__count {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
}

.results-bar__divider {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.results-bar__clear {
  background: none;
  border: none;
  color: var(--orange);
  font-family: var(--font-body);
  font-size: 13px;
  text-decoration: underline;
  padding: 0;
}

/* ─── EMPTY STATE ───────────────────────────────────────────────── */
.marketplace-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 16px;
}

/* ─── TIER CARDS (listing tiers on submit-tool page) ────────────── */
.tier-card {
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.tier-card--basic {
  background: var(--surface);
  border: 1px solid var(--border);
}

.tier-card--featured {
  background: var(--orange);
  border: 1px solid var(--orange);
  box-shadow: 0 20px 60px var(--orange-glow);
}

.tier-card--sponsored {
  background: #0A0A0A;
  border: 1px solid var(--border);
}

.tier-card__popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--orange);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.tier-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.tier-card__price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 6px;
}

.tier-card__commission {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.tier-card--basic  .tier-card__name,
.tier-card--basic  .tier-card__price { color: var(--text); }
.tier-card--basic  .tier-card__commission { color: var(--orange); }

.tier-card--featured .tier-card__name,
.tier-card--featured .tier-card__price { color: #fff; }
.tier-card--featured .tier-card__commission { color: rgba(255, 255, 255, 0.8); }

.tier-card--sponsored .tier-card__name,
.tier-card--sponsored .tier-card__price { color: #fff; }
.tier-card--sponsored .tier-card__commission { color: rgba(255, 98, 0, 0.9); }

.tier-card__perks {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.tier-card__perk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tier-card__check {
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
}

.tier-card--basic    .tier-card__check { color: var(--orange); }
.tier-card--featured .tier-card__check { color: rgba(255, 255, 255, 0.9); }
.tier-card--sponsored .tier-card__check { color: var(--orange); }

.tier-card__perk-text {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
}

.tier-card--basic     .tier-card__perk-text { color: var(--text-sub); }
.tier-card--featured  .tier-card__perk-text { color: rgba(255, 255, 255, 0.9); }
.tier-card--sponsored .tier-card__perk-text { color: rgba(255, 255, 255, 0.75); }

/* ─── INFLUENCER TIER ROWS ──────────────────────────────────────── */
.infl-row {
  border-radius: 16px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
}

.infl-row--light    { background: var(--surface); border: 1px solid var(--border); }
.infl-row--orange   { background: var(--orange);  border: 1px solid var(--orange); box-shadow: 0 16px 48px var(--orange-glow); }
.infl-row--dark     { background: #111111;         border: 1px solid var(--border); }

.infl-row__emoji    { font-size: 40px; width: 56px; text-align: center; }

.infl-row__name     { font-family: var(--font-display); font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.infl-row__range    { font-family: var(--font-body); font-size: 13px; }

.infl-row--light   .infl-row__name  { color: var(--text); }
.infl-row--orange  .infl-row__name,
.infl-row--dark    .infl-row__name  { color: #fff; }

.infl-row--light   .infl-row__range { color: var(--text-muted); }
.infl-row--orange  .infl-row__range { color: rgba(255,255,255,.75); }
.infl-row--dark    .infl-row__range { color: rgba(255,255,255,.6); }

.infl-row__deliverable-label {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.infl-row__deliverable-text {
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 2px;
}

.infl-row__market-rate {
  font-family: var(--font-body);
  font-size: 11px;
}

.infl-row--light  .infl-row__deliverable-label { color: var(--text-muted); }
.infl-row--orange .infl-row__deliverable-label { color: rgba(255,255,255,.6); }
.infl-row--dark   .infl-row__deliverable-label { color: rgba(255,255,255,.5); }

.infl-row--light  .infl-row__deliverable-text  { color: var(--text-sub); }
.infl-row--orange .infl-row__deliverable-text,
.infl-row--dark   .infl-row__deliverable-text  { color: rgba(255,255,255,.85); }

.infl-row--light  .infl-row__market-rate { color: var(--text-muted); }
.infl-row--orange .infl-row__market-rate { color: rgba(255,255,255,.5); }
.infl-row--dark   .infl-row__market-rate { color: rgba(255,255,255,.4); }

.infl-row__reward {
  border-radius: 10px;
  padding: 14px 18px;
}

.infl-row--light  .infl-row__reward { background: var(--orange-dim); border: 1px solid rgba(255,98,0,.27); }
.infl-row--orange .infl-row__reward { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); }
.infl-row--dark   .infl-row__reward { background: var(--orange-dim); border: 1px solid rgba(255,98,0,.27); }

.infl-row__reward-label {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 4px;
}

.infl-row__reward-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.infl-row--light  .infl-row__reward-label,
.infl-row--dark   .infl-row__reward-label { color: var(--orange); }
.infl-row--orange .infl-row__reward-label { color: rgba(255,255,255,.7); }

.infl-row--light  .infl-row__reward-text,
.infl-row--dark   .infl-row__reward-text  { color: var(--orange); }
.infl-row--orange .infl-row__reward-text  { color: #fff; }

/* ─── FAQ GRID ──────────────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.faq-item__q {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.faq-item__a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── HOW-IT-WORKS STEPS (influencer page) ───────────────────────── */
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  box-shadow: 0 2px 12px var(--shadow);
}

.step-card__num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.3;
}

.step-card__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step-card__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Bundles tab ──────────────────────────────────────────────── */

.bundle-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255,98,0,0.07) 0%, transparent 60%);
  border: 1px solid rgba(255,98,0,0.18);
  border-radius: 18px;
  padding: 32px 36px;
  margin-bottom: 40px;
}

.bundle-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
}

/* Industry stack card */
.bundle-stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bundle-stack-card:hover {
  border-color: rgba(255,98,0,0.4);
  box-shadow: 0 4px 24px rgba(255,98,0,0.1);
}

.bundle-stack-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
}

.bundle-stack-card__badge {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,98,0,0.1);
  border: 1px solid rgba(255,98,0,0.25);
  border-radius: 20px;
  padding: 3px 10px;
}

.bundle-stack-card__icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bundle-stack-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.bundle-stack-card__pair {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.bundle-stack-card__tagline {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 16px;
}

.bundle-stack-card__bullets {
  flex: 1;
  margin-bottom: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.bundle-stack-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.bundle-stack-card__price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}

.bundle-stack-card__normal {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
}

/* Cat-tab Bundles label tweak */
.cat-tab--sync {
  position: relative;
}

/* ─── TOOL CARD VISUAL BANNERS ──────────────────────────────────── */
.tool-card__banner-wrap {
  position: relative;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  flex-shrink: 0;
}

.tool-banner {
  width: 100%;
  height: 180px;
  display: block;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.tool-banner--job-sites  { background: #0f1115; }
.tool-banner--bookings   { background: #0d1117; }
.tool-banner--social     { background: #100f14; }
.tool-banner--inventory  { background: #0c1010; }

.tool-banner svg {
  display: block;
  width: 100%;
  height: 180px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.tool-card:hover .tool-banner svg,
.featured-card:hover .tool-banner svg {
  transform: scale(1.04);
}

/* Soft sheen across the banner so it reads as a lit screen, not a flat fill */
.tool-card__banner-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, transparent 38%);
  pointer-events: none;
}

.tool-card__banner-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}
