/* ===== 의료진 상세보기 모달 ===== */

/* 모달 컨테이너 */
.doctor-detail-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.doctor-detail-modal.show {
  display: flex;
}

/* 오버레이 */
.doctor-detail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.doctor-detail-modal.show .doctor-detail-overlay {
  opacity: 1;
}

/* 모달 콘텐츠 */
.doctor-detail-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 1100px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  z-index: 1;
}

.doctor-detail-modal.show .doctor-detail-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* 닫기 버튼 */
.doctor-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}

.doctor-detail-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
}

/* 모달 바디: 2단 레이아웃 */
.doctor-detail-body {
  display: flex;
  gap: 0;
}

/* 좌측: 프로필 이미지 */
.doctor-detail-image {
  flex: 0 0 42%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  min-height: 500px;
}

.doctor-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 우측: 상세 정보 */
.doctor-detail-info {
  flex: 1;
  padding: 40px 36px;
  overflow-y: auto;
}

/* 진료과 뱃지 */
.doctor-detail-department {
  display: inline-block;
  padding: 4px 14px;
  background: #e8edf3;
  color: #4a6785;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* 이름 */
.doctor-detail-name {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 4px;
  line-height: 1.3;
}

/* 영문 이름 */
.doctor-detail-name-en {
  font-size: 15px;
  color: #999;
  margin: 0 0 8px;
  font-weight: 400;
}

/* 직책 */
.doctor-detail-position {
  font-size: 15px;
  color: #666;
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

/* 섹션 (학력/자격증) */
.doctor-detail-section {
  margin-bottom: 24px;
}

.doctor-detail-section:last-child {
  margin-bottom: 0;
}

.doctor-detail-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px;
}

.doctor-detail-section-title svg {
  color: #5a7d9a;
  flex-shrink: 0;
}

/* 목록 */
.doctor-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doctor-detail-list li {
  position: relative;
  padding: 6px 0 6px 16px;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.doctor-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  background: #5a7d9a;
  border-radius: 50%;
}

/* body 스크롤 잠금 */
body.doctor-modal-open {
  overflow: hidden;
}

/* ===== 모바일 반응형 (768px 이하) ===== */
@media (max-width: 768px) {
  .doctor-detail-content {
    margin: 10% auto;
    width: 95%;
    max-height: 85vh;
    max-width: 100%;
    border-radius: 12px;
    transform: translateY(30px) scale(0.95);
  }

  .doctor-detail-modal.show .doctor-detail-content {
    transform: translateY(0) scale(1);
  }

  .doctor-detail-body {
    flex-direction: column;
  }

  .doctor-detail-image {
    flex: none;
    width: 100%;
    height: 200px;
    min-height: auto;
    border-radius: 12px 12px 0 0;
  }

  .doctor-detail-image img {
    object-fit: contain;
    object-position: center;
  }

  .doctor-detail-info {
    padding: 24px 20px 40px;
  }

  .doctor-detail-name {
    font-size: 24px;
  }

  .doctor-detail-close {
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}
