.board-detail {
    max-width: 900px;
    margin: 40px auto 80px;
}

.detail-header {
    margin-bottom: 20px;
}
.back-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

/* 게시글 카드 */
.post-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

/* 카테고리 */
.post-category {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.post-category.success {
    background: #e9fbf1;
    color: #0aa765;
}

/* 제목 */
.post-title {
    font-size: 26px;
    margin-bottom: 20px;
}

/* 메타 */
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

/* 작성자 정보 영역 */
.author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a8e6cf 0%, #56ab91 100%);
    flex-shrink: 0;
}

.author strong {
    display: block;
    font-size: 15px;
    color: #333;
}

.author span {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

/* 수정/삭제 버튼 */
.post-actions {
    display: flex;
    gap: 8px;
}

.btn-edit,
.btn-delete {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-edit:hover {
    background: #f0f0f0;
    border-color: #009b63;
    color: #009b63;
}

.btn-delete {
    color: #dc3545;
}

.btn-delete:hover {
    background: #fff5f5;
    border-color: #dc3545;
}

.author span {
    font-size: 13px;
    color: #888;
}
.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #c8f0dc;
}
.avatar.gray {
    background: #eee;
}

.post-stats {
    display: flex;
    gap: 16px;
    color: #666;
    font-size: 14px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-item svg {
    color: #999;
}

/* 본문 */
.post-content p {
    line-height: 1.7;
    margin-bottom: 16px;
    white-space: pre-wrap;
}
.post-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
}
.post-content li {
    margin-bottom: 6px;
}
.post-content .highlight {
    font-weight: 600;
}

/* 좋아요 */
.like-area {
    text-align: center;
    margin-top: 30px;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border-radius: 24px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    color: #333;
}

.like-btn:hover {
    background: #f8f9fa;
}

/* 좋아요 눌렀을 때 */
.like-btn.liked {
    background: #fff0f0;
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.like-btn.liked .icon-heart {
    fill: #ff6b6b;
    stroke: #ff6b6b;
}

.icon-heart {
    transition: all 0.3s ease;
}

/* 댓글 */
.comment-section {
    margin-top: 40px;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.comment-section h2 {
    margin-bottom: 20px;
}
.comment-section .count {
    color: #0aa765;
}

/* 댓글 작성 */
.comment-write {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.comment-write textarea {
    flex: 1;
    height: 80px;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #ddd;
    resize: none;
}
.comment-submit {
    align-self: flex-end;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    background: #ccc;
}

/* 댓글 리스트 */
.comment-list {
    list-style: none;
    padding: 0;
}
.comment {
    display: flex;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}
.comment-body {
    flex: 1;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.comment-header span {
    font-size: 13px;
    color: #888;
}
.comment-like {
    font-size: 13px;
    color: #666;
}

.comment-write-placeholder {
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.comment-write-placeholder a {
    color: #009b63;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.comment-write-placeholder a:hover {
    color: #007a4d;
    text-decoration: underline;
}

/* 더보기 */
.more-comments {
    text-align: center;
    margin-top: 24px;
}
.more-comments button {
    padding: 12px 24px;
    border-radius: 10px;
    border: 1px solid #0aa765;
    background: #fff;
    color: #0aa765;
    cursor: pointer;
}
