/* ============================================================
   LocumMY — Worker & Employer Profile Screens
   ============================================================ */

/* ── Profile header ──────────────────────────────────────────────────────── */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-8) var(--sp-4) var(--sp-6);
  text-align: center;
  gap: var(--sp-3);
  border-bottom: 8px solid var(--color-bg-soft);
}

.profile-avatar-wrap {
  position: relative;
  display: inline-flex;
}
.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--color-primary);
  overflow: hidden;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-photo-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ease-fast);
}
.profile-photo-btn:hover { background: var(--color-primary-dark); }
.profile-photo-btn svg { width: 13px; height: 13px; stroke: #fff; }
#photo-upload-input { display: none; }

.profile-name {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.profile-sub {
  font-size: var(--font-size-sm);
  color: var(--color-text-mute);
}

/* ── Stats row ───────────────────────────────────────────────────────────── */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--color-border-soft);
  gap: 1px;
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 8px solid var(--color-bg-soft);
}
.profile-stat {
  background: var(--color-bg);
  padding: var(--sp-4) var(--sp-2);
  text-align: center;
}
.profile-stat-val {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.profile-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

/* ── Profile body ────────────────────────────────────────────────────────── */
.profile-body {
  padding-bottom: calc(var(--bottom-nav) + var(--sp-4));
}
.profile-section {
  padding: var(--sp-5) var(--sp-4);
  border-bottom: 8px solid var(--color-bg-soft);
}
.profile-section:last-child { border-bottom: none; }
.profile-section-title {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-mute);
  margin-bottom: var(--sp-4);
}

/* Info rows */
.profile-info-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--color-border-soft);
}
.profile-info-row:last-child { border-bottom: none; }
.profile-info-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-mute);
  min-width: 90px;
  flex-shrink: 0;
  margin-top: 1px;
}
.profile-info-value {
  flex: 1;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.5;
}

/* ── Settings list ───────────────────────────────────────────────────────── */
.settings-list { display: flex; flex-direction: column; }
.settings-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--color-border-soft);
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}
.settings-item:last-child { border-bottom: none; }

.settings-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--ease-fast);
}
.settings-icon svg { width: 17px; height: 17px; stroke: var(--color-text-mute); }
.settings-item:hover .settings-icon { background: var(--color-primary-pale); }
.settings-item:hover .settings-icon svg { stroke: var(--color-primary); }

.settings-label {
  flex: 1;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--ease-fast);
}
.settings-item:hover .settings-label { color: var(--color-primary); }

.settings-chevron svg { width: 16px; height: 16px; stroke: var(--color-text-subtle); }

.settings-item-danger .settings-label { color: var(--color-error); }
.settings-item-danger .settings-icon { background: var(--color-error-bg); }
.settings-item-danger .settings-icon svg { stroke: var(--color-error); }
.settings-item-danger:hover .settings-label { color: var(--color-error); }
.settings-item-danger:hover .settings-icon { background: var(--color-error-bg); }

/* ── Availability calendar ───────────────────────────────────────────────── */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.cal-month-label {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-text);
}
.cal-nav-btn {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border-soft);
  border-radius: var(--r-md);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--ease-fast);
}
.cal-nav-btn:hover:not(:disabled) { border-color: var(--color-primary); }
.cal-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-nav-btn svg { width: 15px; height: 15px; stroke: var(--color-text-mute); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: var(--sp-3);
}
.cal-day-hdr {
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  color: var(--color-text-mute);
  text-transform: uppercase;
  padding-bottom: var(--sp-2);
}
.cal-day {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease-fast);
  border: 1.5px solid var(--color-border-soft);
  background: var(--color-surface);
  color: var(--color-text);
}
.cal-day:hover:not(.cal-day-past):not(.cal-day-empty):not(.cal-day-beyond) {
  border-color: var(--color-primary-light);
  background: var(--color-primary-pale);
}
.cal-day-empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
  pointer-events: none;
}
.cal-day-past {
  color: var(--color-text-subtle);
  background: transparent;
  border-color: transparent;
  cursor: not-allowed;
}
.cal-day-beyond {
  color: var(--color-text-subtle);
  opacity: 0.35;
  cursor: not-allowed;
}
.cal-day-today {
  border-color: var(--color-primary-light);
  font-weight: 800;
}
.cal-day-available {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}

.cal-legend {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--font-size-xs);
  color: var(--color-text-mute);
  flex-wrap: wrap;
}
.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ── Verification badge ──────────────────────────────────────────────────── */
.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success);
  border-radius: var(--r-full);
  padding: 4px 10px;
  font-size: var(--font-size-xs);
  font-weight: 700;
}
.verify-badge svg { width: 12px; height: 12px; stroke: var(--color-success); }
.verify-pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--color-warning-bg, #FFF9E6);
  color: var(--color-warning, #B45309);
  border-radius: var(--r-full);
  padding: 4px 10px;
  font-size: var(--font-size-xs);
  font-weight: 700;
}

/* ── Edit profile sheet forms ────────────────────────────────────────────── */
.edit-sheet-title {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}
