/* ======================================================
   Beauty on Cloud – Browse Specialists
   Premium | Clean | Scalable
   ====================================================== */

.page-wrap {
  padding: 1.6rem 2rem 3rem;
}

.page-title {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
  font-weight: 600;
}

.page-subtitle {
  margin: 0 0 1.2rem;
  color: rgba(241, 241, 255, 0.75);
  font-size: 0.95rem;
}

/* ---------- Toolbar / Filters ---------- */

.toolbar {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.75rem 0.8rem;
  box-shadow: var(--shadow-card);
}

.control label {
  display: block;
  font-size: 0.78rem;
  color: rgba(241, 241, 255, 0.7);
  margin-bottom: 0.35rem;
}

.control input,
.control select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  padding: 0.6rem 0.7rem;
  outline: none;
  font-family: inherit;
}

.control input::placeholder {
  color: rgba(241, 241, 255, 0.55);
}

.toolbar-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

/* ---------- Results Meta ---------- */

.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  color: rgba(241, 241, 255, 0.8);
  font-size: 0.92rem;
}

/* ---------- Specialists Grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

/* ---------- Specialist Card ---------- */

.spec-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-card);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
}

/* ---------- Card Header ---------- */

.spec-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #060613;
  background: linear-gradient(135deg, #ff9bff, #e254ff);
}

.spec-title {
  flex: 1;
}

.spec-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.spec-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.spec-meta {
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  color: rgba(241, 241, 255, 0.65);
}

/* ---------- Badges ---------- */

.badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-weight: 500;
}

.badge-verified {
  background: rgba(79, 209, 255, 0.2);
  color: #c9efff;
  border: 1px solid rgba(79, 209, 255, 0.5);
}

.badge-soft {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(241, 241, 255, 0.8);
}

/* ---------- Card Body ---------- */

.spec-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.muted {
  color: rgba(241, 241, 255, 0.65);
}

.strong {
  font-weight: 500;
}

.rating-inline {
  letter-spacing: 0.2px;
}

/* ---------- Chips ---------- */

.chips {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.chip {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ---------- Actions ---------- */

.spec-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
}

.spec-actions .btn {
  flex: 1;
}

/* ---------- Empty / Loading ---------- */

#loading,
#empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: rgba(241, 241, 255, 0.7);
}

/* ---------- Reviews Modal ---------- */

#modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 200;
}

#reviews-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 92vw);
  max-height: 80vh;
  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
  z-index: 201;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.modal-subtitle {
  color: rgba(241, 241, 255, 0.75);
  font-size: 0.9rem;
}

.modal-body {
  padding: 1rem 1.1rem;
  overflow-y: auto;
}

.modal-footer {
  padding: 0.85rem 1.1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: flex-end;
}

/* ---------- Review Item ---------- */

.review-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.review-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.review-rating {
  color: rgba(241, 241, 255, 0.9);
}

.review-date {
  font-size: 0.78rem;
  color: rgba(241, 241, 255, 0.6);
  margin-bottom: 0.35rem;
}

.review-comment {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(241, 241, 255, 0.75);
  line-height: 1.35;
}

/* Back button – clear navigation accent */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  padding: 0.45rem 1.1rem;
  border-radius: 999px;

  background: rgba(79, 209, 255, 0.18);
  border: 1px solid rgba(79, 209, 255, 0.55);

  color: #cdefff;
  font-size: 0.85rem;
  font-weight: 500;

  box-shadow: 0 8px 22px rgba(79, 209, 255, 0.25);
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: rgba(79, 209, 255, 0.32);
  border-color: rgba(79, 209, 255, 0.85);
  color: #ffffff;

  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(79, 209, 255, 0.45);
}

/* Responsive */
@media (max-width: 950px) {
  .toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .page-wrap {
    padding: 1.2rem 1.2rem 2.2rem;
  }
}
