/* Marketplace Integrations Hub */
.mkt {
  max-width: 900px;
}

.mkt-header {
  margin-bottom: 2rem;
}

.mkt-header__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
}

.mkt-header__subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Card Grid */
.mkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}

/* Integration Card */
.mkt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.mkt-card:not(.mkt-card--disabled):hover {
  border-color: var(--accent, #10b981);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.mkt-card--disabled {
  opacity: 0.55;
  cursor: default;
}

/* Logo */
.mkt-card__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
}

.mkt-card__ebay-logo {
  width: 100px;
  height: 40px;
}

.mkt-card__fb-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.mkt-card__logo-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mkt-card__logo-text--disabled {
  color: var(--text-tertiary);
}

/* Body */
.mkt-card__body {
  flex: 1;
}

.mkt-card__status {
  margin-bottom: 0.5rem;
}

.mkt-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Badges */
.mkt-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mkt-badge--connected {
  background: #d1fae5;
  color: #065f46;
}

.mkt-badge--disconnected {
  background: #fee2e2;
  color: #991b1b;
}

.mkt-badge--coming-soon {
  background: var(--bg-base);
  color: var(--text-tertiary);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .mkt-badge--connected {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

[data-theme="dark"] .mkt-badge--disconnected {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

/* Footer */
.mkt-card__footer {
  margin-top: auto;
}

.mkt-card__btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  background: var(--accent, #10b981);
  color: #fff;
  border: none;
}

.mkt-card__btn:hover {
  opacity: 0.9;
}

.mkt-card__btn--disabled {
  background: var(--bg-base);
  color: var(--text-tertiary);
  border: 1px solid var(--border-color);
  cursor: not-allowed;
  pointer-events: none;
}

/* Mobile */
@media (max-width: 640px) {
  .mkt-header__title { font-size: 1.25rem; }
  .mkt-header__subtitle { font-size: 0.82rem; }
  .mkt-grid { grid-template-columns: 1fr; gap: 1rem; }
  .mkt-card { padding: 1.25rem; }
  .mkt-card__btn { width: 100%; text-align: center; }
}
