@charset "UTF-8";

/* =========================
   상세 페이지 컨테이너
========================= */
.blog-post-detail {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* =========================
   헤더
========================= */
.post-header {
  margin-bottom: 24px;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 16px;
}

.post-title {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.35;
  font-weight: 700;
  color: #222;
}

.post-meta {
  margin: 0;
  font-size: 14px;
  color: #777;
}

/* =========================
   본문
========================= */
.post-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  color: #222;
  font-size: 16px;
  line-height: 1.8;
}

/* 문단 */
.post-content p {
  margin: 0 0 1.1em;
}

/* 제목 */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin: 1.4em 0 0.7em;
  line-height: 1.4;
  font-weight: 700;
  color: #111;
}

/* 리스트 */
.post-content ul,
.post-content ol {
  margin: 0 0 1.2em 1.4em;
}

.post-content li {
  margin-bottom: 0.4em;
}

/* 인용문 */
.post-content blockquote {
  margin: 1.4em 0;
  padding: 12px 16px;
  border-left: 4px solid #d0d7de;
  background: #f8f9fa;
  color: #555;
}

/* 링크 */
.post-content a {
  color: #0d6efd;
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

/* 이미지/영상 */
.post-content img,
.post-content figure img,
.post-content video,
.post-content iframe {
  display: block;
  max-width: 100% !important;
  height: auto !important;
}

/* 테이블 */
.post-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.2em 0;
}

.post-content th,
.post-content td {
  border: 1px solid #ddd;
  padding: 10px 12px;
}

.post-content th {
  background: #f7f7f7;
  font-weight: 600;
}

/* 코드 */
.post-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 14px 16px;
  margin: 1.2em 0;
  border-radius: 10px;
  background: #f6f8fa;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-content code {
  background: #f6f8fa;
  padding: 2px 5px;
  border-radius: 6px;
}

/* =========================
   태그
========================= */
.post-tags {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.post-tag {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #555;
  font-size: 13px;
  text-decoration: none;
}

.post-tag:hover {
  background: #e5e7eb;
}

/* =========================
   댓글 영역
========================= */
.comment-section {
  margin-top: 32px;
}

.comment-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* 댓글 리스트 */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 댓글 */
.comment-item {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 14px 16px;
}

/* 대댓글 */
.reply-item {
  margin-top: 10px;
  margin-left: 20px;
  padding-left: 12px;
  border-left: 2px solid #e5e7eb;
}

/* 메타 */
.comment-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

/* 내용 */
.comment-content {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  word-break: break-word;
}

/* 숨김/삭제 */
.comment-hidden-text {
  color: #999;
}

.comment-deleted-text {
  color: #bbb;
}

/* 액션 버튼 */
.comment-actions {
  margin-top: 8px;
}

.comment-actions button {
  background: none;
  border: none;
  font-size: 13px;
  color: #0d6efd;
  cursor: pointer;
  margin-right: 8px;
}

.comment-actions button:hover {
  text-decoration: underline;
}

/* =========================
   폼
========================= */
.reply-form-box,
.delete-form-box,
.report-form-box {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
}

.comment-form-wrap {
  margin-top: 20px;
}

.comment-form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.comment-form-row input {
  flex: 1;
}

.comment-form-wrap input,
.comment-form-wrap textarea,
.reply-form-box input,
.reply-form-box textarea,
.delete-form-box input,
.report-form-box select,
.report-form-box textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

/* 버튼 */
.comment-submit-btn,
.comment-delete-btn,
.comment-report-btn {
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #0d6efd;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.comment-delete-btn {
  background: #dc3545;
}

.comment-report-btn {
  background: #6c757d;
}

/* =========================
   빈 댓글
========================= */
.empty-comment {
  text-align: center;
  color: #999;
  padding: 20px 0;
}

/* =========================
   반응형
========================= */
@media (max-width: 768px) {
  .blog-post-detail {
    padding: 18px;
  }

  .post-title {
    font-size: 24px;
  }

  .post-content {
    font-size: 15px;
  }
}