/* =====================================================
   marketplace.css  —  Magnify Service Marketplace
   Layered on top of stylesheetV17.css
   ===================================================== */

/* ── HERO ── */
.mp-hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mp-hero::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: 0;
  background-image: url("images/aboutus.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: blur(6px) brightness(0.85);
-webkit-filter: blur(6px) brightness(0.85);
  transform: scale(1.04);
}

.mp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
  to bottom,
  rgba(0,0,0,0.10) 0%,
  rgba(0,0,0,0.15) 40%,
  rgba(0,0,0,0.70) 75%,
  #000 100%
);
  pointer-events: none;
}

.mp-hero-inner {
  max-width: 780px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.mp-hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5c9cff;
  margin: 0 0 20px;
}

.mp-hero-title {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  color: #fff;
}

.mp-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #94a3b8;
  margin: 0 0 40px;
  line-height: 1.6;
}

/* ── HERO SEARCH ── */
.mp-hero-search {
  display: flex;
  gap: 8px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  max-width: 680px;
  margin: 0 auto 28px;
  flex-wrap: wrap;
}

.mp-search-input {
  flex: 1 1 220px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  padding: 10px 14px;
  outline: none;
  min-width: 0;
}

.mp-search-input::placeholder { color: #64748b; }

.mp-search-select {
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 14px;
  padding: 10px 12px;
  cursor: pointer;
  outline: none;
  flex: 0 0 auto;
}

.mp-search-select option { background: #1e293b; }

.mp-search-btn {
  background: #5c9cff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  flex: 0 0 auto;
}

.mp-search-btn:hover { background: #3d7fe0; }

/* ── HERO TAGS ── */
.mp-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.mp-tag {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #cbd5e1;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
}

.mp-tag:hover {
  background: rgba(92,156,255,0.15);
  border-color: #5c9cff;
  color: #fff;
}

/* ── SHARED SECTION STYLES ── */
.mp-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.mp-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 32px;
}

.mp-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.mp-section-header .mp-section-title { margin: 0; }

.mp-see-all {
  color: #5c9cff;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.mp-see-all:hover { text-decoration: underline; }

/* ── CATEGORY GRID ── */
.mp-categories {
  background: #0a0a0a;
  padding: 80px 0;
}

.mp-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.mp-cat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px 12px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  text-align: center;
}

.mp-cat-card:hover {
  background: rgba(92,156,255,0.08);
  border-color: rgba(92,156,255,0.3);
  transform: translateY(-2px);
}

.mp-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.mp-cat-name {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

/* ── LISTINGS GRID ── */
.mp-listings-section {
  background: #0a0a0a;
  padding: 80px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.mp-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.mp-listing-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.mp-listing-card:hover {
  border-color: rgba(92,156,255,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.mp-listing-img {
  height: 180px;
  overflow: hidden;
}

.mp-listing-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-listing-img--placeholder {
  background: rgba(92,156,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mp-listing-img--placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
  color: #5c9cff;
}
.mp-location-icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
}
.mp-location-icon svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: #5c9cff;
}

.mp-listing-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.mp-listing-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5c9cff;
}

.mp-listing-title {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.3;
}

.mp-listing-location {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.mp-listing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.mp-listing-price {
  font-size: 15px;
  font-weight: 700;
  color: #4ade80;
}

.mp-listing-provider {
  font-size: 12px;
  color: #64748b;
}

/* ── EMPTY STATE ── */
.mp-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  color: #64748b;
  font-size: 16px;
}

.mp-empty-state a {
  color: #5c9cff;
  text-decoration: none;
}

/* ── EARN SECTION ── */
.mp-earn-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  padding: 100px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.mp-earn-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.mp-earn-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #818cf8;
  margin: 0 0 16px;
}

.mp-earn-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 20px;
}

.mp-earn-desc {
  color: #94a3b8;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 32px;
}

.mp-earn-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mp-btn-primary {
  background: #5c9cff;
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}

.mp-btn-primary:hover { background: #3d7fe0; }

.mp-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}

.mp-btn-secondary:hover { background: rgba(255,255,255,0.14); }

/* ── EARN STEPS ── */
.mp-earn-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.mp-earn-step:last-child { margin-bottom: 0; }

.mp-earn-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(92,156,255,0.15);
  border: 1px solid rgba(92,156,255,0.3);
  color: #5c9cff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mp-earn-step strong {
  display: block;
  color: #e2e8f0;
  font-size: 15px;
  margin-bottom: 4px;
}

.mp-earn-step p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* ── TRUST SECTION ── */
.mp-trust-section {
  background: #0a0a0a;
  padding: 80px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.mp-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mp-trust-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
}

.mp-trust-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 16px;
}

.mp-trust-card h4 {
  color: #f1f5f9;
  font-size: 16px;
  margin: 0 0 10px;
}

.mp-trust-card p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

/* =====================================================
   MARKETPLACE BROWSE PAGE (marketplace.php)
   ===================================================== */
.mp-browse-header {
  background: #0a0a0a;
  padding: 120px 24px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mp-browse-header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 24px;
}

.mp-browse-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 900px;
}

.mp-browse-controls input[type="text"],
.mp-browse-controls select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  cursor: pointer;
}

.mp-browse-controls input[type="text"] {
  flex: 1 1 200px;
  min-width: 0;
}

.mp-browse-controls input[type="text"]:focus,
.mp-browse-controls select:focus {
  border-color: #5c9cff;
}

.mp-browse-controls select option { background: #1e293b; }

.mp-browse-controls .mp-search-btn {
  flex-shrink: 0;
}

.mp-browse-body {
  background: #0a0a0a;
  padding: 48px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── ACTIVE FILTER PILLS ── */
.mp-active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.mp-filter-pill {
  background: rgba(92,156,255,0.12);
  border: 1px solid rgba(92,156,255,0.3);
  color: #93c5fd;
  border-radius: 20px;
  padding: 4px 12px 4px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.mp-filter-pill .pill-x { color: #64748b; font-size: 16px; line-height: 1; }

/* =====================================================
   CREATE LISTING PAGE
   ===================================================== */
.mp-create-page {
  min-height: 100vh;
  background: #0a0a0a;
  padding: 120px 24px 80px;
}

.mp-create-inner {
  max-width: 700px;
  margin: 0 auto;
}

.mp-create-inner h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.mp-create-inner .mp-create-sub {
  color: #64748b;
  margin: 0 0 40px;
  font-size: 15px;
}

/* ── FORM STYLES ── */
.mp-form-section {
  margin-bottom: 40px;
}

.mp-form-section h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5c9cff;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(92,156,255,0.2);
}

.mp-field {
  margin-bottom: 20px;
}

.mp-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mp-field input[type="text"],
.mp-field input[type="number"],
.mp-field textarea,
.mp-field select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}

.mp-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.mp-field input:focus,
.mp-field textarea:focus,
.mp-field select:focus {
  border-color: #5c9cff;
  background: rgba(92,156,255,0.05);
}

.mp-field select option { background: #1e293b; }

.mp-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mp-price-prefix {
  position: relative;
}

.mp-price-prefix span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 15px;
  pointer-events: none;
}

.mp-price-prefix input {
  padding-left: 30px !important;
}

.mp-submit-btn {
  width: 100%;
  padding: 16px;
  background: #5c9cff;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.mp-submit-btn:hover { background: #3d7fe0; }

.mp-form-notice {
  background: rgba(92,156,255,0.08);
  border: 1px solid rgba(92,156,255,0.2);
  border-radius: 10px;
  padding: 14px 16px;
  color: #93c5fd;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ── ALERT / FLASH ── */
.mp-alert {
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.mp-alert-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: #4ade80;
}

.mp-alert-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #f87171;
}

/* ── LISTING DETAIL PAGE ── */
.mp-listing-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.mp-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.mp-detail-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5c9cff;
  margin-bottom: 10px;
}

.mp-detail-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}

.mp-detail-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 14px;
}

.mp-detail-price-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 24px;
  min-width: 220px;
  flex-shrink: 0;
  text-align: center;
}

.mp-detail-price-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.mp-detail-price-value {
  font-size: 2rem;
  font-weight: 800;
  color: #4ade80;
  margin-bottom: 16px;
}

.mp-contact-btn {
  display: block;
  width: 100%;
  background: #5c9cff;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
  box-sizing: border-box;
}

.mp-contact-btn:hover { background: #3d7fe0; }

/* Provider card */
.mp-provider-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  text-decoration: none;
  transition: border-color 0.2s;
}

.mp-provider-card:hover { border-color: rgba(92,156,255,0.3); }

.mp-provider-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(92,156,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
}

.mp-provider-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-provider-name {
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 4px;
}

.mp-provider-location {
  font-size: 13px;
  color: #64748b;
}

.mp-provider-verified {
  font-size: 12px;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─────────────────────────────
   RESPONSIVE
───────────────────────────── */
@media (max-width: 768px) {
  .mp-earn-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .mp-trust-grid {
    grid-template-columns: 1fr;
  }

  .mp-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mp-hero-search {
    flex-direction: column;
  }

  .mp-hero-search .mp-search-btn {
    width: 100%;
  }

  .mp-browse-controls {
    flex-direction: column;
  }

  .mp-browse-controls input[type="text"],
  .mp-browse-controls select,
  .mp-browse-controls .mp-search-btn {
    width: 100%;
    flex: unset;
  }

  .mp-field-row {
    grid-template-columns: 1fr;
  }

  .mp-detail-header {
    flex-direction: column;
  }

  .mp-detail-price-card {
    width: 100%;
    min-width: unset;
  }
}

@media (max-width: 480px) {
  .mp-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mp-listings-grid {
    grid-template-columns: 1fr;
  }
}
