.board-detail-container {
    padding: 1rem;
    max-width: 720px;
    margin: 0 auto;
}

.board-category {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.board-detail-header {
    margin-bottom: 1rem;
}

.board-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.board-meta {
    font-size: 0.9rem;
    color: #888;
}

.board-content-box {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
    min-height: 200px;
    margin-bottom: 1rem;
}

.board-image {
    max-width: 100%;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.board-actions {
    text-align: center;
    margin-bottom: 2rem;
}

.like-btn {
    background: #3f51b5;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

/* 댓글 */
.reply-section {
    margin-top: 2rem;
}

.reply-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.reply-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reply-item {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1rem;
}

.child-reply {
    margin-left: 1rem;
    background: #eef2f5;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.4rem;
}

.reply-writer {
    font-weight: bold;
}

.reply-delete-form {
    margin: 0;
}

.reply-delete-btn {
    background-color: #e74c3c;
    border: none;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.reply-content {
    font-size: 1rem;
    color: #222;
    margin-bottom: 0.5rem;
}

.reply-form {
    margin-top: 1rem;
}

.reply-input-group {
    position: relative;
}

.reply-textarea {
    width: 100%;
    height: 40px;
    padding: 0.8rem 3.5rem 0.8rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    resize: none;
    font-size: 0.95rem;
    line-height: 1.3;
    box-sizing: border-box;
}

.reply-submit {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
}

.no-reply {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* 하단 버튼 영역 */
.board-bottom-area {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 이전글/다음글 */
.post-nav-box {
    display: flex;
    flex-direction: column;
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 12px;
    gap: 0.7rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    padding: 0.6rem 1rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    background-color: #e6f0ff;
}

/* 목록/수정/삭제 버튼 */
.footer-button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-button-group button {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

.back-btn {
    background: #ccc;
    color: #222;
}

.edit-btn {
    background: #2196F3;
    color: white;
}

.delete-btn {
    background: #f44336;
    color: white;
}
