/**
 * ProfileViewModal CSS — 공유 프로필 뷰 모달 스타일
 * 모든 페이지에서 동일하게 사용
 */

/* 오버레이 */
.pvm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.pvm-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* 모달 컨테이너 */
.pvm-modal {
  background: #f8fafc;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pvm-overlay.show .pvm-modal {
  transform: translateY(0);
}

/* 헤더 */
.pvm-header {
  background: white;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pvm-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
}

.pvm-header-title i {
  color: var(--primary, #6366f1);
}

.pvm-close {
  width: 36px;
  height: 36px;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pvm-close:hover {
  background: #e5e7eb;
  color: #374151;
}

/* 바디 */
.pvm-body {
  padding: 20px;
  padding-bottom: 30px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* 프로필 카드 */
.pvm-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 카드 헤더 */
.pvm-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e5e7eb;
}

.pvm-avatar-section {
  position: relative;
  flex-shrink: 0;
}

.pvm-avatar {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary, #6366f1), #8b5cf6);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pvm-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pvm-verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: #16a34a;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pvm-info {
  flex: 1;
  min-width: 0;
}

.pvm-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.pvm-company {
  font-size: 0.9rem;
  color: #374151;
  font-weight: 500;
}

.pvm-position {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 2px;
}

/* AI Link Score */
.pvm-score-section {
  text-align: center;
  flex-shrink: 0;
}

.pvm-score-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.pvm-score-badge.bronze {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: white;
}

.pvm-score-badge.silver {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  color: white;
}

.pvm-score-badge.gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
}

.pvm-score-badge.platinum {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: white;
}

.pvm-score-label {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.9;
}

.pvm-score-value {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.pvm-score-rank {
  font-size: 0.7rem;
  color: #6b7280;
}

/* 배지 */
.pvm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid #f3f4f6;
}

.pvm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pvm-badge.role {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.pvm-badge.role.vendor {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
}

.pvm-badge.role.partner {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
}

.pvm-badge.verified {
  background: #dcfce7;
  color: #166534;
}

.pvm-badge.expert {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.pvm-badge.procurement {
  background: #e0e7ff;
  color: #3730a3;
}

.pvm-badge.recommend {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  color: #be185d;
}

/* 섹션 */
.pvm-section {
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}

.pvm-section:last-of-type {
  border-bottom: none;
}

.pvm-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
}

/* 전문 분야 / 태그 */
.pvm-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pvm-category {
  padding: 6px 12px;
  background: #f3f4f6;
  color: #374151;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

.pvm-category.tag {
  background: #fef3c7;
  color: #92400e;
  cursor: pointer;
  transition: all 0.15s;
}

.pvm-category.tag:hover {
  background: #fde68a;
  transform: translateY(-1px);
}

/* 경력 */
.pvm-career-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.pvm-career-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #374151;
}

.pvm-career-item i {
  color: #9ca3af;
}

/* 자기소개 */
.pvm-introduction {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
}

/* 연락처 */
.pvm-contact-section {
  padding: 16px 20px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.pvm-contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pvm-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #374151;
}

.pvm-contact-item i {
  width: 20px;
  color: var(--primary, #6366f1);
}

.pvm-contact-hidden {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #9ca3af;
}

.pvm-contact-hidden i {
  color: #d1d5db;
}

/* 액션 버튼 */
.pvm-actions {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.pvm-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  text-decoration: none;
  text-align: center;
}

.pvm-action-btn.outline {
  background: white;
  border: 1px solid #d1d5db;
  color: #374151;
}

.pvm-action-btn.outline:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.pvm-action-btn.primary {
  background: var(--primary, #6366f1);
  color: white;
}

.pvm-action-btn.primary:hover {
  opacity: 0.9;
}

/* 하단 안내 */
.pvm-footer-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  margin-top: 16px;
}

.pvm-footer-notice.info {
  background: #eff6ff;
}

.pvm-footer-notice i {
  color: var(--primary, #6366f1);
  flex-shrink: 0;
}

.pvm-footer-notice span {
  flex: 1;
  font-size: 0.85rem;
  color: #374151;
}

.pvm-footer-btn {
  padding: 6px 14px;
  background: white;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  color: var(--primary, #6366f1);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
}

.pvm-footer-btn:hover {
  background: #eff6ff;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 576px) {
  .pvm-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .pvm-modal {
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
  }

  .pvm-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pvm-info {
    text-align: center;
  }

  .pvm-badges {
    justify-content: center;
  }

  .pvm-actions {
    flex-direction: column;
  }
}