/* ============================================================
   VIEW PROFILE PAGE — view-profile.css
   ============================================================ */

/* ---- Page Hero / Breadcrumb strip ---- */
.vp-hero {
  background: linear-gradient(135deg, #0f172a 0%, #001F3F 60%, #001F3F 100%);
  padding: 40px 0 32px;
  position: relative;
  overflow: hidden;
}
.vp-hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.vp-hero::before {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: #4A7FA5;
  filter: blur(90px);
  opacity: .2;
  top: -120px; left: -80px;
  pointer-events: none;
}
.vp-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.vp-breadcrumb a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}
.vp-breadcrumb a:hover { color: #fff; }
.vp-breadcrumb i { font-size: 9px; }

.vp-hero-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}
.vp-hero-title .accent-light { color: #8FBDD6; }

/* ============================================================
   MAIN PROFILE LAYOUT
   ============================================================ */
.vp-section {
  background: var(--bg-soft);
  padding: 40px 0 80px;
}

.vp-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

/* ============================================================
   LEFT SIDEBAR — sticky profile card
   ============================================================ */
.vp-sidebar {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---- Profile Card ---- */
.vp-profile-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,31,63,.10);
  border: 1px solid var(--border);
}

.vp-photo-wrap {
  position: relative;
  background: #e2e8f0;
  overflow: hidden;
}
.vp-photo-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.vp-avail-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: .3px;
  z-index: 2;
}
.vp-avail-badge i { font-size: 7px; }
.vp-avail-badge--green { background: #22c55e; color: #fff; }
.vp-avail-badge--orange { background: #f97316; color: #fff; }

.vp-verified-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  z-index: 2;
}

.vp-top-rated {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: #f97316;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}
.vp-top-rated i { color: #fde68a; font-size: 10px; }

/* Profile card body */
.vp-card-body {
  padding: 22px 20px 24px;
}
.vp-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.vp-role {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}
.vp-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 6px;
}
.vp-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
}
.vp-location i { color: var(--blue); }
.vp-work-type {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  padding: 3px 10px;
  border-radius: 100px;
}
.vp-work-type i { font-size: 11px; }

/* Rating row */
.vp-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}
.vp-stars { display: flex; gap: 2px; }
.vp-stars i { color: #f59e0b; font-size: 15px; }
.vp-rating-val { font-size: 15px; font-weight: 700; color: var(--text); }
.vp-review-count { font-size: 13px; color: var(--text-muted); }

/* Stats strip */
.vp-stats-strip {
  display: flex;
  justify-content: space-between;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 14px 10px;
  margin-bottom: 18px;
}
.vp-stat { text-align: center; flex: 1; }
.vp-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.vp-stat span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 3px;
  display: block;
}

/* CTA buttons */
.vp-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vp-cta-stack .btn {
  width: 100%;
  justify-content: center;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 100px;
}

/* ---- Quick Info Card (sidebar) ---- */
.vp-quick-info {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.vp-quick-info h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.vp-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vp-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.vp-info-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.vp-info-icon--blue   { background: #D6E4F0; color: var(--blue); }
.vp-info-icon--green  { background: #dcfce7; color: #16a34a; }
.vp-info-icon--orange { background: #fff7ed; color: #f97316; }
.vp-info-icon--purple { background: #f5f3ff; color: #7c3aed; }
.vp-info-icon--teal   { background: #f0fdfa; color: #0d9488; }
.vp-info-icon--navy   { background: #e0e7ff; color: #3730a3; }

.vp-info-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 2px;
}
.vp-info-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ---- Trust badges card (sidebar) ---- */
.vp-trust-card {
  background: var(--blue);
  border-radius: 16px;
  padding: 20px;
  color: #fff;
}
.vp-trust-card h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.7);
  margin-bottom: 14px;
}
.vp-trust-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vp-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
}
.vp-trust-item i {
  font-size: 15px;
  color: #4ade80;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

/* ============================================================
   RIGHT MAIN CONTENT
   ============================================================ */
.vp-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* ---- Generic section card ---- */
.vp-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  overflow: hidden;
}

.vp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.vp-card-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.vp-card-header h2 i { color: var(--blue); font-size: 15px; }
.vp-card-header-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.vp-card-body-pad {
  padding: 22px 24px;
}

/* ---- About / Bio ---- */
.vp-bio-text {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}
.vp-bio-text + .vp-bio-text { margin-top: 12px; }

/* ---- Skills ---- */
.vp-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vp-skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  padding: 7px 14px;
  border-radius: 100px;
  transition: var(--transition);
  cursor: default;
}
.vp-skill-tag i { color: var(--blue); font-size: 12px; }
.vp-skill-tag:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

/* ---- Work History / Timeline ---- */
.vp-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.vp-timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 16px;
  position: relative;
}

.vp-tl-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.vp-tl-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #D6E4F0;
  flex-shrink: 0;
  margin-top: 4px;
}
.vp-tl-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin: 4px 0 0;
  min-height: 20px;
}
.vp-timeline-item:last-child .vp-tl-line { display: none; }

.vp-tl-content {
  padding-bottom: 28px;
}
.vp-timeline-item:last-child .vp-tl-content { padding-bottom: 0; }

.vp-tl-role {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.vp-tl-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.vp-tl-meta i { color: var(--blue); }
.vp-tl-period {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.vp-tl-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ---- Education ---- */
.vp-edu-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vp-edu-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  transition: var(--transition);
}
.vp-edu-item:hover {
  box-shadow: 0 4px 16px rgba(0,31,63,.10);
  border-color: #B8D4E8;
}
.vp-edu-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #D6E4F0;
  color: var(--blue);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vp-edu-degree {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.vp-edu-school {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.vp-edu-year {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  padding: 2px 8px;
  border-radius: 100px;
  display: inline-block;
}

/* ---- Languages ---- */
.vp-lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.vp-lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  transition: var(--transition);
}
.vp-lang-item:hover { border-color: var(--blue); background: var(--blue-light); }
.vp-lang-flag { font-size: 20px; line-height: 1; }
.vp-lang-name { font-size: 13px; font-weight: 600; color: var(--text); }
.vp-lang-level { font-size: 11px; color: var(--text-muted); margin-left: 2px; }

/* ---- Certifications ---- */
.vp-cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.vp-cert-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  transition: var(--transition);
}
.vp-cert-item:hover { box-shadow: 0 4px 16px rgba(0,31,63,.10); border-color: #B8D4E8; }
.vp-cert-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: #D6E4F0;
  color: var(--blue);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vp-cert-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.vp-cert-issuer {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ---- Reviews ---- */
.vp-review-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 22px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.vp-overall-score { text-align: center; }
.vp-score-big {
  font-size: 56px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -2px;
}
.vp-score-stars { display: flex; gap: 3px; justify-content: center; margin: 6px 0 4px; }
.vp-score-stars i { color: #f59e0b; font-size: 16px; }
.vp-score-total { font-size: 12px; color: var(--text-muted); }

.vp-rating-bars { display: flex; flex-direction: column; gap: 8px; }
.vp-rating-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.vp-rating-bar-label {
  width: 36px;
  text-align: right;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}
.vp-rating-bar-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.vp-rating-bar-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 3px;
}
.vp-rating-bar-count {
  width: 28px;
  font-size: 11px;
  color: var(--text-muted);
}

.vp-reviews-list {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.vp-review-item {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.vp-review-item:last-child { border-bottom: none; padding-bottom: 0; }
.vp-review-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.vp-reviewer-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.vp-reviewer-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.vp-reviewer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vp-review-stars { display: flex; gap: 2px; }
.vp-review-stars i { color: #f59e0b; font-size: 12px; }
.vp-review-date { font-size: 11.5px; color: var(--text-muted); }
.vp-review-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.vp-reviews-load-more {
  display: flex;
  justify-content: center;
  padding: 0 24px 22px;
}

/* ---- Similar Profiles ---- */
.vp-similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 22px 24px;
}
.vp-similar-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  transition: var(--transition);
  text-decoration: none;
  display: block;
}
.vp-similar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,31,63,.12);
}
.vp-similar-photo {
  height: 120px;
  overflow: hidden;
}
.vp-similar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .35s ease;
}
.vp-similar-card:hover .vp-similar-photo img { transform: scale(1.05); }
.vp-similar-body { padding: 12px 14px; }
.vp-similar-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.vp-similar-role { font-size: 12px; color: var(--text-muted); margin-bottom: 7px; }
.vp-similar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.vp-similar-stars { display: flex; gap: 1px; }
.vp-similar-stars i { font-size: 11px; color: #f59e0b; }
.vp-similar-rating { font-size: 12px; font-weight: 700; color: var(--text); margin-left: 3px; }
.vp-similar-avail {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
}
.vp-similar-avail--green  { background: #dcfce7; color: #16a34a; }
.vp-similar-avail--orange { background: #fff7ed; color: #f97316; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .vp-layout { grid-template-columns: 270px 1fr; gap: 20px; }
  .vp-cert-grid { grid-template-columns: 1fr; }
  .vp-similar-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .vp-layout { grid-template-columns: 1fr; }
  .vp-sidebar { position: static; }
  .vp-review-summary { grid-template-columns: 1fr; gap: 20px; }
  .vp-overall-score { text-align: left; }
  .vp-score-stars { justify-content: flex-start; }
  .vp-similar-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .vp-hero { padding: 28px 0 24px; }
  .vp-section { padding: 24px 0 60px; }
  .vp-similar-grid { grid-template-columns: 1fr 1fr; padding: 16px; }
  .vp-cert-grid { grid-template-columns: 1fr; }
  .vp-card-body-pad { padding: 18px 16px; }
  .vp-card-header { padding: 16px 16px 14px; }
  .vp-reviews-list { padding: 16px; }
  .vp-review-summary { padding: 18px 16px 16px; }
}

@media (max-width: 480px) {
  .vp-similar-grid { grid-template-columns: 1fr; }
  .vp-lang-list { flex-direction: column; }
  .vp-timeline-item { grid-template-columns: 30px 1fr; }
  .vp-cert-grid { grid-template-columns: 1fr; }
}

/* ── Assigned profile — blurred contact details ───────────────────────────── */
.vp-blurred {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.7;
  transition: filter 0.2s;
}

/* ── Assigned profile — locked / disabled buttons ─────────────────────────── */
.vp-btn-locked {
  opacity: 0.45;
  filter: blur(1px);
  cursor: not-allowed;
  pointer-events: none;
}
.vp-cta-stack .vp-btn-locked {
  width: 100%;
  justify-content: center;
}

/* ── Note shown below locked buttons ──────────────────────────────────────── */
.vp-locked-note {
  font-size: 0.75rem;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}
