/* Styles for profile page */

#profile-detail {
  min-height: 180px;
}

.profile-shell {
  max-width: 1100px;
  margin: 18px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-hero-card,
.profile-info-card {
  background: #ffffff;
  border: 1px solid #e9eef5;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.profile-hero-card {
  padding: 24px;
}

.profile-hero {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.profile-avatar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-avatar {
  width: 128px;
  height: 128px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  border: 3px solid rgba(228, 4, 180, 0.12);
}

.profile-hero-body {
  flex: 1;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-name {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  color: #111827;
}

.profile-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(228, 4, 180, 0.1);
  color: #b4038d;
  font-size: 0.78rem;
  font-weight: 700;
}

.profile-role {
  margin-top: 6px;
  font-weight: 600;
  color: #374151;
}

.profile-location {
  margin-top: 4px;
  color: #6b7280;
  font-size: 0.95rem;
}

.profile-bio {
  margin: 14px 0 0;
  color: #4b5563;
  line-height: 1.7;
  text-align: left;
  white-space: pre-line;
}

.profile-hero-card .owner-actions {
  margin-top: 18px;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.profile-hero-card .chat-button {
  width: auto;
  min-width: 240px;
}

.profile-info-card {
  padding: 18px 20px;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.profile-info-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  font-weight: 600;
}

.profile-info-value {
  color: #111827;
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-word;
}

.service-reviews-section {
  margin-top: 24px;
}

.service-reviews-card.card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.service-reviews-card .card-body {
  padding: 20px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.service-reviews-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.service-reviews-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #111827;
}

.service-reviews-count {
  font-size: 0.84rem;
  font-weight: 700;
  color: #4f46e5;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 5px 10px;
}

.service-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-review-item {
  padding: 14px;
  border: 1px solid #eef2ff;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.service-review-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.service-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.service-review-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.service-review-user-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.service-review-user-link:hover .service-review-author {
  text-decoration: underline;
  text-decoration-color: #6366f1;
}

.service-review-user-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  border-radius: 10px;
}

.service-reviews-section .service-review-avatar,
.service-reviews-card .service-review-avatar,
.service-reviews-card img.service-review-avatar {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  flex: 0 0 44px !important;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  background: #fff;
}

.service-review-identity {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.service-review-author {
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-review-recommend {
  font-size: 0.77rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  padding: 3px 8px;
  width: fit-content;
}

.service-review-recommend.bad {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fed7aa;
}

.service-review-rating {
  color: #f59e0b;
  font-size: 0.98rem;
  letter-spacing: 0.4px;
  font-weight: 700;
}

.service-review-comment {
  margin: 10px 0 0;
  color: #475569;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.service-review-date {
  margin-top: 8px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.service-reviews-empty {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

@media (max-width: 991.98px) {
  .profile-hero {
    gap: 18px;
  }
  .profile-hero-card .chat-button {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .profile-hero {
    flex-direction: column;
  }
  .profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 18px;
  }
  .profile-info-grid {
    grid-template-columns: 1fr;
  }

  .service-review-item {
    padding: 12px;
  }

  .service-reviews-section .service-review-avatar,
  .service-reviews-card .service-review-avatar,
  .service-reviews-card img.service-review-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    flex-basis: 40px !important;
  }
}
