/* ===== 상세보기 모달 공통 스타일 (메인 페이지용) ===== */

/* 모달 오버레이 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

/* 모달 닫기 버튼 */
.modal-overlay .modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.modal-overlay .modal-close:hover {
  color: #333;
}

/* ===== 전후사진 상세보기 모달 ===== */
.before-after-detail-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 10px;
  max-width: 1000px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.before-after-detail-header {
  padding: 30px 30px 20px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.before-after-detail-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

.before-after-detail-surgery {
  font-size: 16px;
  color: #007bff;
  margin-bottom: 10px;
}

.before-after-detail-info {
  display: flex;
  gap: 20px;
  color: #666;
  font-size: 14px;
}

.before-after-detail-info span:first-child {
  border-right: 1px solid #e0e0e0;
  padding-right: 20px;
}

.before-after-detail-images {
  margin-bottom: 20px;
  text-align: center;
}

.before-after-detail-images img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.before-after-detail-content {
  padding: 20px 30px 30px;
  overflow-y: auto;
  flex: 1;
  line-height: 1.6;
  color: #333;
  white-space: pre-wrap;
}

.before-after-detail-content p {
  text-align: center;
}

/* ===== 수술후기 상세보기 모달 ===== */
.review-detail-modal {
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 10px;
  max-width: 1000px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.review-detail-header {
  padding: 30px 30px 20px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.review-detail-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

.review-detail-surgery {
  font-size: 16px;
  color: #007bff;
  margin-bottom: 10px;
  max-width: 940px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  cursor: default;
}

/* 시술명 툴팁 */
.review-detail-surgery[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 5px;
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: normal;
  max-width: 940px;
  width: max-content;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  line-height: 1.5;
}

.review-detail-info {
  display: flex;
  gap: 20px;
  color: #666;
  font-size: 14px;
}

.review-detail-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.review-detail-content {
  padding: 20px 30px 30px;
  overflow-y: auto;
  flex: 1;
  line-height: 1.6;
  color: #333;
  white-space: pre-wrap;
}

/* ===== 리얼셀피 상세보기 모달 ===== */
.selfie-main-detail-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 10px;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.selfie-main-detail-header {
  padding: 30px 30px 20px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.selfie-main-detail-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

.selfie-main-detail-surgery {
  font-size: 16px;
  color: #007bff;
  margin-bottom: 10px;
}

.selfie-main-detail-info {
  display: flex;
  gap: 20px;
  color: #666;
  font-size: 14px;
}

.selfie-main-detail-content {
  padding: 20px 30px 30px;
  overflow-y: auto;
  flex: 1;
  line-height: 1.6;
  color: #333;
  white-space: pre-wrap;
}

.selfie-main-detail-content p {
  text-align: center;
}
