/* 리얼셀카 페이지 스타일 */
.selfie-section {
  max-width: 1920px;
  margin: 200px auto 100px;
  padding: 0 40px;
}

.selfie-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.selfie-title span {
  font-size: 28px;
  font-weight: bold;
  color: #333;
}

/* 리얼셀카 그리드 */
.selfie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.selfie-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.selfie-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.selfie-card-title {
  padding: 15px 15px 10px;
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  background-color: #f8f9fa;
}

.selfie-card-image-container {
  cursor: pointer;
  position: relative;
  height: 200px;
  overflow: hidden;
}

.selfie-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.selfie-card-image-container:hover .selfie-card-image {
  transform: scale(1.05);
}

.selfie-labels {
  padding: 15px;
  display: flex;
  gap: 10px;
}

.selfie-label {
  background-color: #e9ecef;
  color: #495057;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.selfie-label.new {
  background-color: #dc3545;
  color: white;
}

.selfie-content {
  padding: 0 15px 15px;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selfie-content:hover {
  color: #333;
}

/* 빈 상태 */
.selfie-empty {
  text-align: center;
  padding: 60px 20px;
}

.empty-content {
  max-width: 400px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.empty-content h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

.empty-content p {
  color: #666;
  margin-bottom: 20px;
}

.empty-action-btn {
  background: var(--point-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.empty-action-btn:hover {
  background: var(--point-color-hover);
}

/* 검색 영역 */
.selfie-search-area {
  max-width: 1200px;
  width: 100%;
  background: #F5F5F5;
  border-radius: 16px;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
}

.selfie-search-area select,
.selfie-search-area input {
  border: none;
  background: #fff;
  border-radius: 50px;
  padding: 10px 16px;
  font-size: 15px;
  outline: none;
  min-width: 120px;
}

.selfie-search-area button {
  background: var(--point-color);
  border: none;
  color: #fff;
  border-radius: 50%;
  min-width: 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.selfie-search-area button:hover {
  background: var(--point-color-hover);
}

.selfie-search-area button img {
  width: 16px;
  height: 16px;
}

/* 모달 스타일 */
.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;
}

.selfie-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-detail-header {
  padding: 30px 30px 20px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.selfie-detail-content {
  padding: 20px 30px 30px;
  overflow-y: auto;
  flex: 1;
  line-height: 1.6;
  color: #333;
  white-space: pre-wrap;
}

.selfie-detail-content p {
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  z-index: 10;
}

.modal-close:hover {
  color: #333;
}



.selfie-detail-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

.selfie-detail-surgery {
  font-size: 16px;
  color: #007bff;
  margin-bottom: 10px;
}

.selfie-detail-info {
  display: flex;
  gap: 20px;
  color: #666;
  font-size: 14px;
}

.selfie-detail-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  max-height: 400px;
  object-fit: cover;
}



/* 등록 모달 */
.selfie-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.selfie-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.selfie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.selfie-modal-header h3 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.selfie-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.selfie-modal-close:hover {
  color: #333;
}

.selfie-modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.btn-cancel,
.btn-submit {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn-cancel {
  background-color: #6c757d;
  color: white;
}

.btn-cancel:hover {
  background-color: #5a6268;
}

.btn-submit {
  background: var(--point-color);
  color: white;
}

.btn-submit:hover {
  background: var(--point-color-hover);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .selfie-section {
    padding: 0 16px;
  }

  .selfie-title {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .selfie-search-area {
    padding: 16px 8px 12px 8px;
  }

  .selfie-search-area select {
    min-width: 90px;
  }

  .selfie-search-area input {
    min-width: 100px;
  }
  
  .form-actions {
    flex-direction: column;
  }
} 