/* ══════════════════════════════════════════════════════════════════════
   MNORY — Freelancer profile (/jobs/freelancers/<id>/)
   Blue brand palette (matches the header). Class names avoid "hero" /
   "-banner": combined.css paints every heading inside those white.
   ══════════════════════════════════════════════════════════════════════ */

.fp {
  --fp-brand: var(--mn-brand, #2563eb);
  --fp-brand-2: #4f8bff;
  --fp-brand-soft: rgba(37, 99, 235, .08);
  --fp-surface: #ffffff;
  --fp-soft: #f6f8fc;
  --fp-border: #e5e9f0;
  --fp-text: #0f172a;
  --fp-muted: #64748b;
  --fp-radius: 20px;
  --fp-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px rgba(15, 23, 42, .06);
  padding: 1.75rem 0 3.5rem;
  color: var(--fp-text);
}
body.dark-mode .fp {
  --fp-brand: #60a5fa;
  --fp-brand-soft: rgba(96, 165, 250, .12);
  --fp-surface: #151a24;
  --fp-soft: #0f141d;
  --fp-border: #262f3f;
  --fp-text: #f1f5f9;
  --fp-muted: #94a3b8;
  --fp-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
.fp h1, .fp h2, .fp h3 { color: inherit; }

.fp-card {
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  box-shadow: var(--fp-shadow);
}
.fp-muted { margin: 0; color: var(--fp-muted); font-size: .9rem; }

/* Breadcrumb */
.fp-crumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: 1.1rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  font-size: .82rem;
  color: var(--fp-muted);
}
.fp-crumbs a { display: inline-flex; align-items: center; gap: .3rem; color: var(--fp-muted); text-decoration: none; }
.fp-crumbs a:hover { color: var(--fp-brand); }
.fp-crumbs a .material-icons { font-size: 16px; }
.fp-crumb-sep { font-size: 16px; opacity: .55; }
[dir="rtl"] .fp-crumb-sep { transform: scaleX(-1); }
.fp-crumbs [aria-current] { color: var(--fp-text); font-weight: 700; }

/* ── Profile header ──────────────────────────────────────────────── */
.fp-head { overflow: hidden; margin-bottom: 1rem; }
.fp-cover {
  position: relative;
  height: 150px;
  padding: 1rem 1.25rem;
  background:
    radial-gradient(60% 120% at 85% 0%, rgba(255, 255, 255, .18), transparent 60%),
    linear-gradient(135deg, #4f8bff 0%, var(--mn-brand, #2563eb) 45%, #000 100%);
}
.fp-cover-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.fp-cover-chip .material-icons { font-size: 17px; }

.fp-head-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem;
  padding: 0 1.5rem 1.5rem;
}
.fp-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  margin-top: -60px;
  border-radius: 28px;
  border: 5px solid var(--fp-surface);
  background: linear-gradient(135deg, var(--fp-brand-2), var(--mn-brand, #2563eb));
  box-shadow: 0 14px 32px rgba(15, 23, 42, .18);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.6rem;
  font-weight: 800;
}
.fp-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; background: var(--fp-soft); }
.fp-avatar-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid var(--fp-surface);
  background: var(--mn-brand, #2563eb);
  color: #fff;
  font-size: 18px;
}
[dir="rtl"] .fp-avatar-badge { right: auto; left: -6px; }

.fp-identity { min-width: 0; padding-top: 1rem; }
.fp-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; }
.fp .fp-name { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.2; color: var(--fp-text); }
.fp-avail {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  background: var(--fp-brand-soft);
  color: var(--fp-brand);
  font-size: .76rem;
  font-weight: 700;
}
.fp-avail-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); }
.fp-title { margin: .3rem 0 .6rem; color: var(--fp-brand); font-size: 1.02rem; font-weight: 700; }
.fp-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0; padding: 0; list-style: none; color: var(--fp-muted); font-size: .85rem; }
.fp-meta li { display: inline-flex; align-items: center; gap: .3rem; }
.fp-meta .material-icons { font-size: 17px; }
.fp-meta strong { color: var(--fp-text); }
.fp-meta .fp-star { color: #f59e0b; }

.fp-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.fp-socials { display: flex; gap: .4rem; }
.fp-icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--fp-soft);
  border: 1px solid var(--fp-border);
  color: var(--fp-text);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.fp-icon-btn:hover { background: var(--fp-brand); border-color: var(--fp-brand); color: #fff; }
.fp-icon-btn .material-icons { font-size: 19px; }

.fp-cta-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.fp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .7rem 1.25rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.fp-btn .material-icons { font-size: 19px; }
.fp-btn:hover { transform: translateY(-1px); }
.fp-btn--primary { background: linear-gradient(135deg, var(--fp-brand-2), var(--mn-brand, #2563eb) 70%); color: #fff; box-shadow: 0 10px 22px rgba(37, 99, 235, .3); }
.fp-btn--primary:hover { color: #fff; box-shadow: 0 14px 28px rgba(37, 99, 235, .38); }
.fp-btn--ghost { background: var(--fp-surface); border-color: var(--fp-border); color: var(--fp-text); }
.fp-btn--ghost:hover { border-color: var(--fp-brand); color: var(--fp-brand); }
.fp-btn--white { background: #fff; color: var(--mn-brand, #2563eb); }
.fp-btn--white:hover { color: var(--mn-brand, #2563eb); }
.fp-btn--glass { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; }
.fp-btn--glass:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* ── Stats ───────────────────────────────────────────────────────── */
.fp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.fp-stat { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.15rem; }
.fp-stat > div { display: flex; flex-direction: column; min-width: 0; }
.fp-stat strong { font-size: 1.3rem; font-weight: 800; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-stat strong small { font-size: .8rem; color: var(--fp-muted); font-weight: 600; }
.fp-stat span:not(.material-icons) { color: var(--fp-muted); font-size: .8rem; }
.fp-stat-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 22px;
  background: var(--tone-bg);
  color: var(--tone);
}
.fp-tone-blue   { --tone: #2563eb; --tone-bg: rgba(37, 99, 235, .1); }
.fp-tone-indigo { --tone: #4f46e5; --tone-bg: rgba(79, 70, 229, .1); }
.fp-tone-amber  { --tone: #d97706; --tone-bg: rgba(217, 119, 6, .12); }
.fp-tone-sky    { --tone: #0284c7; --tone-bg: rgba(2, 132, 199, .1); }
body.dark-mode .fp-stat-icon { filter: brightness(1.4); }

/* ── Layout ──────────────────────────────────────────────────────── */
.fp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; align-items: start; }
.fp-main, .fp-side { display: grid; gap: 1rem; min-width: 0; }

.fp-section { padding: 1.35rem 1.5rem; }
.fp .fp-section-title {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fp-text);
}
.fp-section-title > .material-icons {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--fp-brand-soft);
  color: var(--fp-brand);
  font-size: 19px;
}
.fp-count {
  margin-inline-start: auto;
  min-width: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--fp-soft);
  border: 1px solid var(--fp-border);
  color: var(--fp-muted);
  font-size: .76rem;
  line-height: 24px;
  text-align: center;
}
.fp-bio { color: var(--fp-text); font-size: .95rem; line-height: 1.85; }
.fp-bio p:last-child { margin-bottom: 0; }

/* Rating overview */
.fp-rating {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  background: var(--fp-soft);
  border: 1px solid var(--fp-border);
}
.fp-rating-score { display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; }
.fp-rating-score strong { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.fp-rating-score small { color: var(--fp-muted); font-size: .78rem; }
.fp-stars { display: inline-flex; color: #f59e0b; }
.fp-stars .material-icons { font-size: 20px; }
.fp-stars--sm .material-icons { font-size: 15px; }
.fp-rating-bars { display: grid; gap: .4rem; }
.fp-bar-row { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: .6rem; }
.fp-bar-label { display: inline-flex; align-items: center; gap: 2px; font-size: .8rem; font-weight: 700; }
.fp-bar-label .material-icons { font-size: 14px; color: #f59e0b; }
.fp-bar { height: 7px; border-radius: 999px; background: var(--fp-border); overflow: hidden; }
.fp-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--fp-brand-2), var(--mn-brand, #2563eb)); }
[dir="rtl"] .fp-bar > span { background: linear-gradient(-90deg, var(--fp-brand-2), var(--mn-brand, #2563eb)); }
.fp-bar-count { font-size: .78rem; color: var(--fp-muted); text-align: end; }
.fp-recommend { display: flex; align-items: center; gap: .35rem; margin: .5rem 0 0; font-size: .82rem; font-weight: 600; color: var(--fp-brand); }
.fp-recommend .material-icons { font-size: 16px; }

.fp-reviews { list-style: none; margin: 0; padding: 0; }
.fp-review { display: flex; gap: .9rem; padding: 1rem 0; border-top: 1px solid var(--fp-border); }
.fp-review-avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fp-brand-2), var(--mn-brand, #2563eb));
  color: #fff;
  font-weight: 800;
}
.fp-review-body { flex: 1; min-width: 0; }
.fp-review-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem; }
.fp-review-top strong { font-size: .92rem; }
.fp-review-body p { margin: .35rem 0 .3rem; color: var(--fp-text); font-size: .9rem; line-height: 1.7; }
.fp-review-body time { color: var(--fp-muted); font-size: .76rem; }

.fp-empty { padding: 1.5rem 1rem; text-align: center; }
.fp-empty .material-icons { font-size: 36px; color: var(--fp-brand); opacity: .5; }
.fp-empty p { margin: .4rem auto 0; max-width: 380px; color: var(--fp-muted); font-size: .9rem; }

/* CTA */
.fp-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 1.5rem 1.6rem;
  border-radius: var(--fp-radius);
  color: #fff;
  background: linear-gradient(135deg, #4f8bff 0%, var(--mn-brand, #2563eb) 45%, #000 100%);
  box-shadow: 0 16px 36px rgba(37, 99, 235, .25);
}
.fp .fp-cta h3 { margin: 0 0 .3rem; font-size: 1.15rem; font-weight: 800; color: #fff; }
.fp-cta p { margin: 0; color: rgba(255, 255, 255, .75); font-size: .88rem; }

/* Side cards */
.fp-skills { display: flex; flex-wrap: wrap; gap: .45rem; }
.fp-skills span {
  padding: .4rem .8rem;
  border-radius: 999px;
  background: var(--fp-brand-soft);
  border: 1px solid rgba(37, 99, 235, .18);
  color: var(--fp-brand);
  font-size: .82rem;
  font-weight: 700;
}
.fp-details { margin: 0; display: grid; }
.fp-details > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px dashed var(--fp-border); font-size: .88rem; }
.fp-details > div:last-child { border-bottom: 0; padding-bottom: 0; }
.fp-details > div:first-child { padding-top: 0; }
.fp-details dt { color: var(--fp-muted); font-weight: 500; }
.fp-details dd { margin: 0; font-weight: 700; text-align: end; }
.fp-yes { display: inline-flex; align-items: center; gap: .25rem; color: var(--fp-brand); }
.fp-yes .material-icons { font-size: 17px; }

.fp-trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.fp-trust li { display: flex; gap: .75rem; }
.fp-trust li > .material-icons {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--fp-soft);
  border: 1px solid var(--fp-border);
  color: var(--fp-brand);
  font-size: 19px;
}
.fp-trust li > div { display: flex; flex-direction: column; gap: .15rem; }
.fp-trust strong { font-size: .88rem; }
.fp-trust li span:not(.material-icons) { color: var(--fp-muted); font-size: .8rem; line-height: 1.55; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .fp-head-body { grid-template-columns: auto minmax(0, 1fr); }
  .fp-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
  .fp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .fp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .fp { padding-top: 1rem; }
  .fp-cover { height: 110px; }
  .fp-head-body { grid-template-columns: 1fr; padding: 0 1.1rem 1.25rem; gap: .75rem; }
  .fp-avatar { width: 96px; height: 96px; margin-top: -48px; border-radius: 24px; font-size: 2rem; }
  .fp-identity { padding-top: 0; }
  .fp-actions { flex-direction: column; align-items: stretch; }
  .fp-actions .fp-cta-row .fp-btn { flex: 1; }
  .fp-stats { gap: .6rem; }
  .fp-stat { padding: .8rem; gap: .6rem; }
  .fp-stat-icon { width: 38px; height: 38px; font-size: 19px; }
  .fp-stat strong { font-size: 1.05rem; }
  .fp-section { padding: 1.1rem; }
  .fp-rating { grid-template-columns: 1fr; gap: 1rem; }
  .fp-cta .fp-cta-row { width: 100%; }
  .fp-cta .fp-btn { flex: 1; }
}
