/* 공통 스타일 */
body {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* 페이지 타이틀 */
.page-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.page-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #0d6efd;
}

/* 카드 스타일 */
.content-card {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* 게시글 헤더 */
.post-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #212529;
}

.post-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.post-info-item {
    display: flex;
    align-items: center;
}

.post-info-icon {
    margin-right: 0.5rem;
    color: #0d6efd;
}

/* 게시글 내용 */
.post-content {
    padding: 2rem;
    line-height: 1.7;
}

/* 첨부 이미지 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.image-item {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.image-item:hover {
    transform: scale(1.03);
}

/* 버튼 스타일 */
.btn-primary-soft {
    background-color: #e7f1ff;
    color: #0d6efd;
    border: none;
    transition: all 0.2s;
}

.btn-primary-soft:hover {
    background-color: #d0e4ff;
    color: #0b5ed7;
}

.btn-danger-soft {
    background-color: #ffe7e7;
    color: #dc3545;
    border: none;
    transition: all 0.2s;
}

.btn-danger-soft:hover {
    background-color: #ffd0d0;
    color: #c82333;
}

/* 댓글 섹션 */
.comments-section {
    margin-top: 2rem;
}

.comments-header {
    background-color: #e7f1ff;
    color: #0d6efd;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.comments-header i {
    margin-right: 0.5rem;
}

.comments-body {
    background-color: #fff;
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* 댓글 작성 폼 */
.comment-form {
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
}

/* 댓글 아이템 */
.comment-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    position: relative;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: #212529;
}

.comment-date {
    color: #6c757d;
    font-size: 0.85rem;
}

.comment-content {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
}

/* 대댓글 스타일 */
.reply-container {
    margin-top: 1rem;
    margin-left: 2rem;
    border-left: 3px solid #e7f1ff;
    padding-left: 1rem;
}

.reply-item {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.reply-form {
    margin-top: 1rem;
    margin-left: 2rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}

/* 공지사항 배지 */
.notice-badge {
    background-color: #ffc107;
    color: #212529;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
}

.notice-badge i {
    margin-right: 0.25rem;
}

/* 버튼 그룹 */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* 이미지 모달 */
.modal-img {
    max-width: 100%;
    max-height: 80vh;
}