/* Marketplace UI Enhancements */

/* ===== MARKETPLACE TABS ===== */
.marketplace-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.4s ease both 0.1s;
}

.marketplace-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.marketplace-tab:hover {
  background: #f8fafc;
  color: #0f172a;
}

.marketplace-tab.active {
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: #fff;
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.2);
}

/* ===== LOCATION AWARENESS CARD ===== */
.location-awareness-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 20px;
  animation: fadeInUp 0.4s ease both 0.15s;
}

.location-awareness-card svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: #EA580C;
}

.location-awareness-card.location-disabled {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-color: rgba(30, 64, 175, 0.2);
}

.location-awareness-card.location-disabled svg {
  color: #1E40AF;
}

.location-awareness-text {
  font-size: 0.95rem;
  color: #334155;
  font-weight: 600;
}

.location-awareness-text .location-name {
  color: #0f172a;
  font-weight: 700;
}

/* ===== PLAN BADGES ===== */
.badge-super-premium {
  background: linear-gradient(135deg, #EC4899, #DB2777);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25);
  position: relative;
}

.badge-super-premium::before {
  content: '★';
  font-size: 0.9rem;
}

.badge-premium-tier {
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.badge-standard {
  background: #f1f5f9;
  color: #475569;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.badge-near-you {
  background: linear-gradient(135deg, #06B6D4, #0891B2);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

.badge-trending {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.badge-new {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

/* ===== SECTION HEADERS WITH BADGES ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-header-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #0f172a;
}

.section-header-content p {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.section-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #EA580C;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.section-header-badge.blue {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1E40AF;
  border-color: rgba(30, 64, 175, 0.2);
}

.section-header-badge.success {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: #16A34A;
  border-color: rgba(22, 163, 74, 0.2);
}

/* ===== CONVERSION CARDS ===== */
.conversion-section {
  margin-top: 40px;
  margin-bottom: 40px;
  animation: fadeInUp 0.4s ease both 0.3s;
}

.conversion-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 0;
}

.conversion-card {
  background: linear-gradient(135deg, #fff 0%, #fffaf6 100%);
  border: 1px solid rgba(249, 115, 22, 0.15);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.conversion-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.05), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.conversion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.3);
}

.conversion-card-icon {
  font-size: 3rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.conversion-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.conversion-card p {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

.conversion-card .btn {
  align-self: center;
  position: relative;
  z-index: 1;
  margin-top: 8px;
}

.conversion-card.agent-card {
  border-color: rgba(30, 64, 175, 0.15);
}

.conversion-card.agent-card::before {
  background: radial-gradient(circle, rgba(30, 64, 175, 0.05), transparent);
}

/* ===== HERO SECTION IMPROVEMENTS ===== */
.hero-section-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 12px;
}

.hero-section-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  max-width: 600px;
}

@media (max-width: 768px) {
  .hero-section-content h1 {
    font-size: 1.8rem;
  }
}

.hero-section-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 20px;
}

.hero-trust-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.hero-trust-item:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.hero-trust-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

/* ===== LISTING CARD ENHANCEMENTS ===== */
.listing-card[data-plan-tier="super-premium"] {
  border-color: rgba(236, 72, 153, 0.2);
}

.listing-card[data-plan-tier="premium"] {
  border-color: rgba(249, 115, 22, 0.2);
}

.listing-card[data-plan-tier="standard"] {
  border-color: rgba(15, 23, 42, 0.08);
}

.listing-card.hide-listing {
  display: none;
}

/* ===== PROVIDER CARD ENHANCEMENTS ===== */
.provider-card[data-provider-type="agent"] .provider-type-badge {
  background: #dbeafe;
  color: #1E40AF;
}

.provider-card[data-provider-type="service"] .provider-type-badge {
  background: #fed7aa;
  color: #EA580C;
}

.provider-type-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .marketplace-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .marketplace-tab {
    flex: 0 0 auto;
    font-size: 0.85rem;
    padding: 8px 16px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .conversion-cards-grid {
    grid-template-columns: 1fr;
  }

  .location-awareness-card {
    padding: 12px 14px;
    font-size: 0.9rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.listing-card,
.provider-card,
.featured-card {
  animation: fadeInUp 0.4s ease both;
}

.listing-card:nth-child(2) { animation-delay: 0.05s; }
.listing-card:nth-child(3) { animation-delay: 0.1s; }
.listing-card:nth-child(4) { animation-delay: 0.15s; }
.listing-card:nth-child(5) { animation-delay: 0.2s; }
.listing-card:nth-child(6) { animation-delay: 0.25s; }

.provider-card:nth-child(2) { animation-delay: 0.05s; }
.provider-card:nth-child(3) { animation-delay: 0.1s; }
.provider-card:nth-child(4) { animation-delay: 0.15s; }
