/* marketplace.css */

/* ========== MARKETPLACE HERO ========== */
.marketplace-hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(58, 12, 163, 0.1));
}

.marketplace-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.marketplace-hero p {
  font-size: 1.2rem;
  color: var(--light-text);
  margin-bottom: 20px;
}

.marketplace-search {
  display: inline-flex;
  gap: 10px;
}
.marketplace-search input {
  border: 1px solid #ccc;
  border-radius: 30px;
  padding: 10px 15px;
  width: 300px;
}
.marketplace-search button {
  border-radius: 30px;
}

/* ========== TABS NAV ========== */
.marketplace-tabs {
  margin-top: 40px;
}
.tabs-nav {
  display: flex;
  list-style: none;
  gap: 30px;
  border-bottom: 1px solid #ccc;
  padding: 0 15px;
  margin-bottom: 20px;
  cursor: pointer;
}
.tabs-nav li {
  padding: 10px 20px;
  font-weight: 600;
  background: var(--card-bg);
  border-radius: 10px 10px 0 0;
  transition: background 0.3s, color 0.3s;
}
.tabs-nav li:hover {
  background: rgba(67, 97, 238, 0.1);
}
.tabs-nav li.active {
  background: var(--white);
  border-bottom: 2px solid var(--primary-gradient);
  color: #333;
}

/* ========== TABS CONTENT ========== */
.tabs-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tab-item {
  display: none;
  /* we show .active via script */
}
.tab-item.active {
  display: flex;
  gap: 40px;
  min-height: 300px;
}

/* ========== SIDEBAR ========== */
.categories-sidebar {
  flex: 0 0 200px;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.categories-sidebar h3 {
  font-size: 1.2rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 15px;
}
.categories-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.categories-sidebar ul li {
  margin-bottom: 8px;
}
.categories-sidebar ul li a {
  color: var(--text);
  transition: color 0.3s;
}
.categories-sidebar ul li a:hover {
  color: var(--light-text);
}

/* ========== LISTING GRID ========== */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  flex: 1;
}

/* ========== LISTING CARD ========== */
.listing-card {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  transform: translateY(-5px);
}

/* top image container */
.listing-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* info area */
.listing-info {
  padding: 20px;
}
.listing-info h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.listing-info p {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 15px;
}
.view-btn {
  background: var(--secondary-gradient);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.3s;
}
.view-btn:hover {
  transform: translateY(-3px);
}

/* responsive adjustments */
@media (max-width: 992px) {
  .tab-item.active {
    flex-direction: column;
  }
  .categories-sidebar {
    margin-bottom: 20px;
    flex: auto;
  }
}

@media (max-width: 768px) {
  .tabs-nav {
    gap: 10px;
  }
  .categories-sidebar {
    width: 100%;
  }
}
