.board-detail-wrapper {
  max-width: var(--max-width);
  margin: 50px auto;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

.detail-header {
  border-bottom: 2px solid #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.detail-header h1 {
  font-size: 26px;
  margin-bottom: 15px;
}

.info-meta {
  font-size: 13px;
  color: #777;
}

.info-meta span {
  margin-right: 15px;
}

.category-tag {
  font-weight: bold;
  color: #3498db;
}

.detail-content {
  min-height: 200px;
  padding: 20px 0;
  line-height: 1.8;
  border-bottom: 1px dashed #ddd;
  margin-bottom: 30px;
}

.detail-content img {
  max-width: 100%;
}

/* 버튼 스타일 */
.detail-actions {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 5px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.btn-list {
  background-color: #333;
  color: #fff;
}

.btn-edit {
  background-color: #f39c12;
  color: #fff;
}

.btn-list:hover {
  background-color: #555;
}

.btn-edit:hover {
  background-color: #e67e22;
}

/* --- 미디어 쿼리 (Max-width: 1024px: 태블릿 환경) --- */
@media (max-width: 1024px) {
  .board-detail-wrapper {
    margin: 30px auto;
    padding: 15px;
  }

  .detail-header {
    padding-bottom: 8px;
  }

  .detail-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .detail-content {
    padding: 15px 0;
    line-height: 1.7;
  }

  .detail-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* --- 미디어 쿼리 (Max-width: 768px: 모바일 환경) --- */
@media (max-width: 768px) {
  .board-detail-wrapper {
    margin: 20px 0;
    border-left: none;
    border-right: none;
  }

  .detail-header h1 {
    font-size: 20px;
  }

  .info-meta {
    font-size: 12px;
  }

  .info-meta span {
    display: block;
    margin-right: 0;
    margin-bottom: 5px;
  }

  .category-tag {
    display: inline-block;
    margin-right: 15px;
  }

  .detail-content {
    font-size: 15px;
    line-height: 1.6;
    padding-bottom: 20px;
  }

  .detail-actions .btn {
    padding: 8px 12px;
    margin: 0 3px;
  }
}
