/* Marketplace Autores — Catálogo dushi.me/autores/ */

.mp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a2e;
}

.mp-header {
  text-align: center;
  margin-bottom: 32px;
}

.mp-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.mp-header p {
  font-size: 1.05rem;
  color: #666;
  margin: 0;
}

/* Search */
.mp-search {
  max-width: 500px;
  margin: 0 auto 32px;
  position: relative;
}

.mp-search input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  font-size: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.mp-search input:focus {
  border-color: #1a1a2e;
}

.mp-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 18px;
}

/* Authors grid */
.mp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.mp-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.mp-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.mp-card-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f0f0;
}

.mp-card-photo-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #e8e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #999;
  flex-shrink: 0;
}

.mp-card-info {
  flex: 1;
  min-width: 0;
}

.mp-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.mp-card-bio {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mp-card-books {
  font-size: 0.8rem;
  color: #999;
  font-weight: 600;
}

/* Empty state */
.mp-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.mp-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* Loading */
.mp-loading {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}

/* Responsive */
@media (max-width: 640px) {
  .mp-grid {
    grid-template-columns: 1fr;
  }

  .mp-header h1 {
    font-size: 1.5rem;
  }
}
