/* Path: public/assets/css/profile-public-page.css
 * Public Master Profile Page (scoped)
 * Namespace: pp-*
 */

/* 1. HERO CARD */
.pp-hero-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* 2. BANNER AREA */
.pp-banner-area {
  width: 100%;
  height: 220px;
  background-color: #EEF2FF;
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.pp-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pp-banner-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}

/* 3. INFO BAR */
.pp-info-bar {
  margin-top: -80px;
  padding: 0 32px 32px 32px;
  background: #fff;
}

/* 4. AVATAR */
.pp-avatar-container {
  width: 160px;
  height: 160px;
  position: relative;
  margin-top: -80px;
  margin-bottom: 16px;
  z-index: 2;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.pp-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #F3F4F6;
}
.pp-verified-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: #fff;
  color: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-size: 1.1rem;
}

/* 5. TEXT CONTENT LAYOUT */
.pp-content-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.pp-main-info { flex: 1; }

.pp-name-large {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text-heading);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.pp-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.pp-meta-item { display: flex; align-items: center; gap: 6px; }
.pp-meta-item i { color: var(--color-primary); }

.pp-rating-block { display: flex; align-items: center; gap: 8px; }
.pp-stars-icons i { color: var(--color-accent); font-size: 1.1rem; }
.pp-rating-num { font-weight: 800; color: var(--color-text-heading); font-size: 1.1rem; }
.pp-review-link { color: var(--color-text-muted); text-decoration: underline; cursor: pointer; }

.pp-action-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 200px;
}
.pp-btn-block-mobile { width: auto; }

/* Order button in pricelist */
.pp-order-svc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-heading);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.pp-order-svc-btn:hover { border-color: var(--color-primary); }
.pp-order-svc-btn i { color: var(--color-primary); }

/* Modal */
.pp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 18px;
}
.pp-modal-overlay.is-open { display: flex; }

.pp-modal {
  width: 100%;
  max-width: 820px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
}

.pp-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px 18px;
  border-bottom: 1px solid var(--color-border);
  flex: 0 0 auto;
}
.pp-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--color-text-heading);
  line-height: 1.2;
}
.pp-modal-subtitle {
  margin: 6px 0 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.pp-modal-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--color-text-muted);
}
.pp-modal-close:hover { background: rgba(0,0,0,0.04); color: var(--color-text-heading); }

.pp-modal-body {
  padding: 18px;
  overflow: auto;
  flex: 1 1 auto;
}

.pp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pp-field { display: flex; flex-direction: column; gap: 6px; }
.pp-field label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-text-heading);
}
.pp-field input,
.pp-field textarea,
.pp-field select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
}
.pp-field textarea { min-height: 110px; resize: vertical; }

.pp-field .pp-hint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.pp-role-block {
  border: 1px dashed rgba(107,114,128,0.35);
  border-radius: 14px;
  padding: 12px;
  background: rgba(249,250,251,0.6);
}
.pp-role-block h4 {
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--color-text-heading);
}

.pp-modal-footer {
  padding: 14px 18px 18px 18px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 0 0 auto;
  background: #fff;
}
.pp-modal-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.pp-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--color-primary);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.pp-submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.pp-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-heading);
  font-weight: 900;
  cursor: pointer;
}

/* Toast notification (pp-order-toast) */
.pp-order-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10050;
  width: min(420px, calc(100vw - 36px));
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,0.16);
  overflow: hidden;
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.pp-order-toast.is-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.pp-order-toast__bar {
  height: 4px;
  background: rgba(99,102,241,0.35);
}
.pp-order-toast.is-success .pp-order-toast__bar { background: rgba(16,185,129,0.65); }
.pp-order-toast.is-error .pp-order-toast__bar { background: rgba(239,68,68,0.65); }

.pp-order-toast__body {
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pp-order-toast__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,0.10);
  color: rgba(79,70,229,1);
  flex: 0 0 auto;
}
.pp-order-toast.is-success .pp-order-toast__icon { background: rgba(16,185,129,0.12); color: rgba(5,150,105,1); }
.pp-order-toast.is-error .pp-order-toast__icon { background: rgba(239,68,68,0.10); color: rgba(220,38,38,1); }

.pp-order-toast__title {
  font-weight: 900;
  color: var(--color-text-heading);
  margin: 0 0 2px 0;
}
.pp-order-toast__text {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.45;
  font-weight: 600;
}
.pp-order-toast__actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pp-order-toast__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 900;
  color: rgba(79,70,229,1);
}
.pp-order-toast__link:hover { text-decoration: underline; }
.pp-order-toast__close {
  margin-left: auto;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 900;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .pp-banner-area { height: 140px; }
  .pp-info-bar {
    padding: 0 20px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .pp-avatar-container {
    margin-top: -60px;
    width: 120px;
    height: 120px;
  }
  .pp-content-row {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
  }
  .pp-action-col {
    align-items: center;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  .pp-btn-block-mobile { width: 100%; justify-content: center; }
  .pp-name-large { font-size: 1.6rem; }
  .pp-meta-row { justify-content: center; }
  .pp-form-grid { grid-template-columns: 1fr; }

  .pp-modal-overlay { padding: 12px; }
  .pp-modal { max-height: calc(100vh - 24px); }
}
