/* 게시판 컨테이너 */
.board-container {
    min-height: calc(100vh - 60px);
    background-color: #131217;
    padding: 16px;
}

/* 탭 네비게이션 */
.tab-navigation {
    display: flex;
    background-color: #131217;
    border-bottom: 1px solid #3a3a3a;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-button:hover {
    color: #fff;
}

.tab-button.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* 탭 컨텐츠 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 게시글 목록 */
.board-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.board-item {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 20px 10px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.board-item:hover {
    transform: translateY(-2px);
    background-color: #3a3a3a;
}

/* 배지 */
.board-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

.board-badge.notice {
    background-color: #3F3FF5;
}

.board-badge.notice svg {
    width: 20px;
    height: 20px;
    fill: #FFFFFF;
}

.board-badge.event {
    background-color: #3F3FF5;
}

.board-badge.event svg {
    width: 20px;
    height: 20px;
    fill: #FFFFFF;
}

/* 게시글 내용 */
.board-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 게시글 제목 */
.board-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 1;
}

/* 게시글 메타 정보 */
.board-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 13px;
}

.board-nickname {
    color: #888;
}

.board-divider {
    color: #555;
}

.board-date {
    color: #888;
}

.board-views {
    color: #888;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 16px;
}

/* 모달 */
.board-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.board-modal.show {
    display: block;
}

.modal-content {
    background-color: #2a2a2a;
    margin: 50px auto;
    width: 90%;
    max-width: 420px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #3a3a3a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    flex: 1;
    padding-right: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 20px;
}

.modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #3a3a3a;
    font-size: 13px;
    color: #888;
}

.modal-content-text {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.8;
}

.modal-content-text img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 5px;
}

.modal-content-text p {
    margin-bottom: 15px;
}

.modal-content-text h1,
.modal-content-text h2,
.modal-content-text h3 {
    color: #ffffff;
    margin: 20px 0 10px 0;
}

.modal-content-text ul,
.modal-content-text ol {
    margin: 10px 0;
    padding-left: 20px;
}

.modal-content-text li {
    margin: 5px 0;
}