/* public-profile.css — Styles for public maker profile page */

/* ── Page-level container override ── */
.pp-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.pp-header-container {
  max-width: 1200px;
}

/* ── Profile card ── */
.pp-profile {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* ── Profile header ── */
.pp-header {
  display: flex;
  align-items: start;
  gap: 30px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.pp-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #a8dadc;
}

.pp-header-info {
  flex: 1;
  min-width: 300px;
}

.pp-header-info h1 {
  color: #1d3557;
  margin-bottom: 8px;
}

/* ── Rating summary ── */
.pp-rating-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.pp-stars {
  color: #f9c74f;
  font-size: 1.5rem;
}

.pp-rating-text {
  color: #666;
  font-size: 0.95rem;
}

/* ── Stats ── */
.pp-stats {
  display: flex;
  gap: 24px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.pp-stat {
  text-align: center;
}

.pp-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1d3557;
}

.pp-stat-label {
  font-size: 0.9rem;
  color: #666;
}

/* ── Badges ── */
.pp-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.pp-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pp-badge.verified {
  background: #dfe8ec;
  color: #3d5a6a;
}

.pp-badge.top-rated {
  background: #fef9e7;
  color: #8a6d15;
}

.pp-badge.founding {
  background: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #f59e0b;
}

.pp-badge.pro {
  background: #f3e8ff;
  color: #6b21a8;
}

.pp-badge.stripe-verified {
  background: #e0f2fe;
  color: #0369a1;
}

.pp-badge.profile-complete {
  background: #dcfce7;
  color: #166534;
}

.pp-badge.responsive {
  background: #fef9c3;
  color: #854d0e;
}

/* ── Availability badge ── */
.pp-availability-wrap {
  margin: 12px 0;
}

.pp-availability-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pp-availability-badge.available {
  background: #d0e8ee;
  color: #3d5a3f;
}

.pp-availability-badge.busy {
  background: #fef9e7;
  color: #8a6d15;
}

.pp-availability-badge.away {
  background: #f0d8d4;
  color: #b5451e;
}

/* ── Skills ── */
.pp-skills {
  margin: 24px 0;
}

.pp-skill-tag {
  display: inline-block;
  background: #a8dadc;
  color: #1d3557;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  margin: 4px;
}

/* ── Matching / Expertise section ── */
.pp-matching-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}

.pp-matching-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pp-matching-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
}

.pp-matching-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pp-tag-category {
  background: #d0e8ee !important;
  color: #3d5a3f !important;
}

.pp-tag-material {
  background: #eef3f5 !important;
  color: #4a6575 !important;
}

.pp-tag-style {
  background: #f3e8ff !important;
  color: #6b21a8 !important;
}

.pp-tag-shipping {
  background: #dfe8ec !important;
  color: #3d5a6a !important;
}

/* ── Bio ── */
.pp-bio {
  margin: 24px 0;
  color: #444;
  line-height: 1.7;
}

.pp-no-bio {
  color: #888;
}

/* ── Section titles ── */
.pp-section-title {
  font-size: 1.5rem;
  color: #1d3557;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #a8dadc;
}

/* ── Portfolio gallery ── */
.pp-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.pp-portfolio-card {
  background: white;
  border-radius: 10px;
  border: 1px solid #eee;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pp-portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.pp-portfolio-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.pp-portfolio-price {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(29, 53, 87, 0.85);
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pp-portfolio-desc {
  padding: 12px 14px;
  margin: 0;
  color: #444;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Legacy grid fallback (keep for backward compat) */
.pp-pictures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.pp-pictures-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
  cursor: pointer;
  transition: transform 0.2s;
}

.pp-pictures-grid img:hover {
  transform: scale(1.05);
}

/* ── Reviews ── */
.pp-reviews-list {
  margin-top: 24px;
}

.pp-review {
  background: #f7f7f5;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.pp-review-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 12px;
}

.pp-reviewer-name {
  font-weight: 600;
  color: #1d3557;
}

.pp-review-date {
  color: #888;
  font-size: 0.9rem;
}

.pp-review-stars {
  color: #f9c74f;
  font-size: 1.2rem;
  margin: 8px 0;
}

.pp-review-text {
  color: #444;
  line-height: 1.6;
}

.pp-review-project {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

.pp-no-reviews {
  color: #888;
  padding: 20px;
  text-align: center;
}

/* ── Review form ── */
.pp-leave-review-btn {
  background: #1d3557;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 16px;
}

.pp-leave-review-btn:hover {
  background: #15293e;
}

.pp-leave-review-btn--cancel {
  background: #6b7280;
}

.pp-leave-review-btn--cancel:hover {
  background: #4b5563;
}

.pp-review-form {
  background: #f2f2f2;
  padding: 24px;
  border-radius: 8px;
  margin-top: 16px;
  border: 2px solid #1d3557;
}

.pp-review-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin: 12px 0;
  min-height: 70px;
}

.pp-project-title-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 12px;
}

.pp-review-form-actions {
  display: flex;
  gap: 8px;
}

/* ── Star rating (interactive) ── */
.pp-star-rating {
  display: flex;
  gap: 8px;
  font-size: 2rem;
  margin: 12px 0;
}

.pp-star-rating span {
  cursor: pointer;
  color: #d1d5db;
}

.pp-star-rating span.active {
  color: #f9c74f;
}

/* ── Not found / loading ── */
.pp-not-found {
  text-align: center;
  padding: 100px 0;
  color: #666;
}

.pp-loading {
  text-align: center;
  padding: 80px;
}

/* ── User action buttons (report/block/favorite/request) ── */
.pp-user-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pp-btn-primary {
  background: #1d3557;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.pp-btn-primary:hover {
  background: #2a3f5f;
}

.pp-btn-danger {
  background: #f9844a;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pp-btn-danger:hover {
  background: #c4563a;
}

.pp-btn-secondary {
  background: #6b7280;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pp-btn-secondary:hover {
  background: #4b5563;
}

.pp-btn-blocked {
  background: #277da1;
}

.pp-btn-blocked:hover {
  background: #277da1;
}

.pp-btn-favorite {
  background: #f2f2f2;
  color: #1d3557;
  border: 2px solid #1d3557;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pp-btn-favorite:hover {
  background: #dfe8ec;
}

.pp-btn-favorite.favorited {
  background: #fef9e7;
  color: #8a6d15;
  border-color: #f9c74f;
}

.pp-btn-favorite.favorited:hover {
  background: #fdf3d0;
}

/* ── Report modal ── */
.pp-report-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.pp-report-modal.active {
  display: flex;
}

.pp-report-modal-content {
  background: white;
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.pp-report-modal-content h2 {
  color: #f9844a;
  margin-bottom: 8px;
}

.pp-report-modal-content p {
  color: #666;
  margin-bottom: 20px;
}

.pp-report-modal-content label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.pp-report-modal-content select,
.pp-report-modal-content textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 1rem;
}

.pp-report-modal-content textarea {
  min-height: 120px;
  resize: vertical;
}

.pp-report-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* ── Blocked banner ── */
.pp-blocked-banner {
  background: #fef0eb;
  border: 1px solid #f0d8d4;
  color: #b5451e;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

/* ── Footer (page-specific overrides) ── */
.pp-footer {
  font-size: 0.9rem;
  margin-top: 40px;
  padding: 30px 20px;
}

.pp-footer-links {
  margin-top: 12px;
}

/* ── Mobile responsive ── */
@media (max-width: 768px) {
  .pp-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .pp-header-info {
    min-width: unset;
    width: 100%;
  }
  .pp-rating-summary {
    justify-content: center;
  }
  .pp-stats {
    justify-content: center;
  }
  .pp-badges {
    justify-content: center;
  }
  .pp-availability-wrap {
    text-align: center;
  }
  .pp-user-actions {
    justify-content: center;
  }
}
