/* 게시판 공통 스타일 */

/* 오버레이 스타일 */
.board-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 998;
}

/* 컨테이너 스타일 */
.board-container {
    position: relative;
    z-index: 999;
    max-width: 1000px;
    margin: 120px auto 60px;
    padding: 30px 25px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* 상단 헤더 */
.board-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.board-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 10px;
}

.board-close-button {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* 버튼 스타일 */
.board-btn {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.board-btn:hover {
    background: #e5e5e5;
}

.board-btn-primary {
    background: #00a884;
    color: white;
}

.board-btn-primary:hover {
    background: #008f6f;
}

.board-btn-danger {
    background: #ff4757;
    color: white;
}

.board-btn-danger:hover {
    background: #e33d49;
}

/* 게시판 목록 스타일 */
.board-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.board-list-table th {
    background-color: #f5f5f5;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.board-list-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.board-list-table .notice {
    background-color: rgba(0, 168, 132, 0.05);
}

.board-list-table .notice-tag {
    display: inline-block;
    padding: 3px 8px;
    background-color: #00a884;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.board-list-table .title {
    font-weight: 500;
    color: #2C3E50;
    text-decoration: none;
}

.board-list-table .title:hover {
    text-decoration: underline;
    color: #00a884;
}

.board-list-table .views:before {
    content: '👁️';
    margin-right: 3px;
    font-size: 14px;
}

/* 검색 및 필터 영역 */
.board-search-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.board-search-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
    max-width: 400px;
    margin-right: 10px;
}

.board-search-box select {
    border: none;
    border-right: 1px solid #ddd;
    padding: 10px;
    background-color: #f5f5f5;
    font-size: 14px;
}

.board-search-box input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
}

.board-search-box button {
    background-color: #00a884;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 600;
}

.board-filter-box {
    display: flex;
    align-items: center;
}

.board-filter-box select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    margin-left: 10px;
}

.board-write-button {
    float: right;
    margin-bottom: 20px;
}

/* 페이지네이션 */
.board-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.board-pagination a, 
.board-pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.board-pagination a:hover {
    background-color: #f5f5f5;
}

.board-pagination .current {
    background-color: #00a884;
    color: white;
    border-color: #00a884;
}

.board-pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* 게시물 보기 스타일 */
.board-view-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.board-view-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.board-view-meta {
    display: flex;
    align-items: center;
}

.board-view-meta .author {
    margin-right: 15px;
    font-weight: 600;
}

.board-view-meta .date {
    color: #888;
}

.board-view-stats {
    display: flex;
    align-items: center;
}

.board-view-stats .views {
    display: flex;
    align-items: center;
}

.board-view-stats .views:before {
    content: '👁️';
    margin-right: 5px;
}

.board-view-content {
    line-height: 1.8;
    color: #333;
    font-size: 16px;
    margin-bottom: 30px;
    min-height: 200px;
}

.board-button-area {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* 댓글 영역 */
.board-comments {
    margin-top: 40px;
}

.board-comments h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2C3E50;
}

.board-comment {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
}

.board-comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.board-comment-author {
    font-weight: 600;
    color: #333;
}

.board-comment-date {
    font-size: 12px;
    color: #888;
}

.board-comment-content {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.board-comment-form {
    margin-top: 20px;
}

.board-comment-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
}

.board-comment-submit {
    margin-top: 10px;
    float: right;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .board-container {
        margin: 80px 15px 40px;
        padding: 25px 15px;
    }
    
    .board-list-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .board-search-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .board-search-box {
        margin-right: 0;
        margin-bottom: 10px;
        max-width: 100%;
    }
    
    .board-filter-box {
        justify-content: space-between;
    }
    
    .board-filter-box select {
        margin-left: 0;
        margin-right: 10px;
    }
    
    .board-pagination a, 
    .board-pagination span {
        padding: 6px 10px;
        margin: 0 2px;
    }
    
    .board-list-table .author-column,
    .board-list-table .date-column {
        display: none;
    }
    
    .board-button-area {
        flex-direction: column;
        gap: 10px;
    }
    
    .board-button-area .board-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .board-view-header h1 {
        font-size: 20px;
    }
    
    .board-view-content {
        font-size: 15px;
    }
} 