/* ============================================
   TEMPLATE MARKETPLACE SECTION
   Styles for marketplace showcase section
   ============================================ */

/* ========== SECTION CONTAINER ========== */
.tmp-marketplace-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}

.tmp-marketplace-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #E0E0E0, transparent);
}

/* ========== SECTION HEADER ========== */
.tmp-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.tmp-section-badge {
  display: inline-block;
  padding: 8px 20px;
  background: #000000;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 30px;
  margin-bottom: 24px;
}

.tmp-title {
  font-size: 48px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
}

.tmp-subtitle {
  font-size: 18px;
  color: #666666;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== MARKETPLACE GRID ========== */
.tmp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

/* ========== MARKETPLACE CARD ========== */
.tmp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 2px solid #E0E0E0;
  border-radius: 16px;
  padding: 40px 32px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
}

.tmp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #000000, #666666);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tmp-card:hover::before {
  transform: scaleX(1);
}

.tmp-card:hover {
  border-color: #000000;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ========== CARD GLOW EFFECT ========== */
.tmp-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tmp-card:hover .tmp-card-glow {
  opacity: 1;
}

/* ========== LOGO CONTAINER ========== */
.tmp-logo-container {
  width: 80px;
  height: 80px;
  background: #F5F5F5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.tmp-card:hover .tmp-logo-container {
  background: #000000;
}

.tmp-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: grayscale(100%);
}

.tmp-card:hover .tmp-logo {
  filter: grayscale(0%) brightness(0) invert(1);
  transform: scale(1.1);
}

/* ========== MARKETPLACE INFO ========== */
.tmp-info {
  flex: 1;
}

.tmp-name {
  font-size: 24px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.tmp-desc {
  font-size: 15px;
  color: #666666;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ========== MARKETPLACE STATS ========== */
.tmp-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.tmp-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #333333;
}

.tmp-stat-item i {
  color: #FFB800;
  font-size: 14px;
}

/* ========== MARKETPLACE ARROW ========== */
.tmp-arrow {
  position: absolute;
  bottom: 32px;
  right: 32px;
  width: 40px;
  height: 40px;
  background: #F5F5F5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.tmp-arrow i {
  font-size: 18px;
  color: #000000;
  transition: transform 0.3s ease;
}

.tmp-card:hover .tmp-arrow {
  background: #000000;
}

.tmp-card:hover .tmp-arrow i {
  color: #FFFFFF;
  transform: translateX(4px);
}

/* ========== BOTTOM CTA ========== */
.tmp-cta {
  text-align: center;
  padding: 48px;
  background: #000000;
  border-radius: 16px;
  color: #FFFFFF;
}

.tmp-cta-text {
  font-size: 18px;
  color: #CCCCCC;
  margin-bottom: 24px;
}

.tmp-cta-text strong {
  color: #FFFFFF;
  font-weight: 600;
}

.tmp-btn-cta {
  display: inline-block;
  padding: 16px 40px;
  background: #FFFFFF;
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tmp-btn-cta:hover {
  background: #F5F5F5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 991px) {
  .tmp-marketplace-section {
    padding: 80px 0;
  }

  .tmp-title {
    font-size: 36px;
  }

  .tmp-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .tmp-marketplace-section {
    padding: 60px 0;
  }

  .tmp-header {
    margin-bottom: 48px;
  }

  .tmp-title {
    font-size: 32px;
  }

  .tmp-subtitle {
    font-size: 16px;
  }

  .tmp-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 48px;
  }

  .tmp-card {
    padding: 32px 24px;
  }

  .tmp-cta {
    padding: 32px 24px;
  }

  .tmp-cta-text {
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  .tmp-title {
    font-size: 28px;
  }

  .tmp-card {
    padding: 24px 20px;
  }

  .tmp-arrow {
    bottom: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
  }
}