/* ===== VIEWS STYLES ===== */
/**
 * @file: views/community/post-detail.css
 * @description: 게시글 상세보기 관련 스타일
 * @components: 게시글 상세보기, 작성 폼
 * @usage: 게시글 상세 정보 표시를 위한 스타일링
 */
/* 게시글 상세 보기 모달 스타일 */
.post-detail {
  max-width: 800px;
  width: 90%;
}

.post-detail-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}
/* ===== VIEWS STYLES ===== */
/**
 * @file: views/community/post-detail.css
 * @description: 게시글 상세 스타일
 * @components: 게시글 상세 테이블, 테이블 헤더, 셀, 행
 * @usage: 게시글 상세 테이블 스타일링
 */
.post-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-detail-table th,
.post-detail-table td {
  padding: 12px;
  border: 1px solid #e0e0e0;
}

.post-detail-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
  width: 15%;
  text-align: center;
}

/* ===== VIEWS STYLES ===== */
/**
 * @file: community/post-detail.css
 * @description: 게시글 상세 모달 스타일
 * @components: 게시글 상세 모달
 * @usage: 게시글 상세 모달 스타일링
 */
.post-detail-content {
  min-height: 200px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.post-actions {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.post-actions button {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9em;
}

.edit-post {
  background-color: #1a73e8;
  color: white;
}

.delete-post {
  background-color: #dc3545;
  color: white;
}

/* ===== VIEWS STYLES ===== */
/**
 * @file: views/post-detail.css
 * @description: 게시글 상세보기 작성자 이미지 스타일
 * @components: 게시글 상세보기 작성자 이미지
 * @usage: 게시글 상세보기 작성자 이미지 스타일링
 */
.post-detail-table .author-info {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}

.post-detail-table .author-profile-image {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e0e0e0;
}

/* ===== VIEWS STYLES ===== */
/**
 * @file: views/post-detail.css
 * @description: 게시글 상세보기 테이블 셀 너비 스타일
 * @components: 게시글 상세보기 테이블 셀 너비
 * @usage: 게시글 상세보기 테이블 셀 너비 스타일링
 */
.post-detail-table td {
  width: 35%;
}

/* ===== VIEWS STYLES ===== */
/**
 * @file: views/post-detail.css
 * @description: 게시글 상세보기 내용 칸 스크롤 스타일
 * @components: 게시글 상세보기 내용 칸 스크롤
 * @usage: 게시글 상세보기 내용 칸 스크롤 스타일링
 */
.post-detail-table tr:last-child td {
  max-height: 400px;
  overflow-y: auto;
  padding: 20px;
  line-height: 1.6;
  white-space: pre-line;
}

/* ===== VIEWS STYLES ===== */
/**
 * @file: views/post-detail.css
 * @description: 게시글 상세보기 내용 칸 스크롤바 스타일
 * @components: 게시글 상세보기 내용 칸 스크롤바
 * @usage: 게시글 상세보기 내용 칸 스크롤바 스타일링
 */
.post-detail-table tr:last-child td::-webkit-scrollbar {
  width: 8px;
}

.post-detail-table tr:last-child td::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.post-detail-table tr:last-child td::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.post-detail-table tr:last-child td::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* ===== VIEWS STYLES ===== */
/**
 * @file: community/post-detail.css
 * @description: 게시글 상세보기 모달 크기 조정 스타일
 * @components: 게시글 상세보기 모달 크기 조정
 * @usage: 게시글 상세보기 모달 크기 조정 스타일링
 */
.modal-content.post-detail {
  max-height: 80vh;
  overflow-y: auto;
}
