/* ================================================================
   MARKETPLACE — TYPE COLUMN REDESIGN (Combined Pill Style)
   Upload this file to /assets/css/marketplace-type.css
   ================================================================ */

/* Unified Split Card Wrapper */
.mp-type-card {
  display: flex !important;
  flex-direction: column !important;
  width: fit-content !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
  border: 1px solid rgba(0,0,0,0.04) !important;
}

/* Top Half (Guest post) */
.mp-type-top {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  background: #eefadded !important; /* Extremely pale green */
  border-bottom: 0 !important;
}
.mp-type-top.nofollow { background: #fdf2f8 !important; }
.mp-type-top.li-type { background: #FFEDD5 !important; }
.mp-type-top.li-type .mp-tp-label { color: #C2410C !important; }
.mp-type-top.sponsored { background: #fefce8 !important; }

.mp-tp-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #0f172a !important; /* Dark solid text */
  letter-spacing: -0.1px !important;
}

.mp-tp-dur {
  font-size: 10.5px !important;
  color: #64748b !important;
  font-weight: 400 !important;
}

/* Bottom Half (Both | 600 words) */
.mp-type-sub {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  color: #0f172a !important;
  font-weight: 500 !important;
  background: #f8fafc !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}
.mp-type-sub:hover {
  background: #f1f5f9 !important;
}

.mp-ts-icon {
  font-size: 11px !important;
  color: #52525b !important;
}
.mp-ts-sep {
  color: #cbd5e1 !important;
  margin: 0 1px !important;
  font-size: 10px !important;
}
.mp-ts-words {
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* TAT line */
.mp-type-tat {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 10.5px !important;
  color: #94a3b8 !important;
  margin-top: 1px !important;
}

/* TAT Tooltip */
.tat-has-tooltip {
  position: relative !important;
  cursor: help !important;
  display: inline-flex !important;
  width: fit-content !important;
  margin: 1px auto 0 !important;
}

.tat-tooltip {
  position: absolute !important;
  bottom: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(5px) !important;
  margin-bottom: 8px !important;
  background: #fff !important;
  color: #0f172a !important;
  padding: 6px 10px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1) !important;
  border: 1px solid #e2e8f0 !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 100 !important;
}

.tat-has-tooltip:hover .tat-tooltip {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) !important;
}

.tat-tooltip::after {
  content: '' !important;
  position: absolute !important;
  bottom: -4px !important;
  left: 50% !important;
  transform: translateX(-50%) rotate(45deg) !important;
  width: 8px !important;
  height: 8px !important;
  background: #fff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
}
