/* 게시판 공통 스타일 */
.board-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Noto Sans KR', sans-serif;
}

.board-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.board-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.board-description {
    color: #6c757d;
    font-size: 1rem;
}

/* 검색 영역 */
.search-area {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-form select,
.search-form input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-form input[type="text"] {
    flex: 1;
    min-width: 200px;
}

.search-form button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.search-form button:hover {
    background: #0056b3;
}

/* 게시판 테이블 */
.board-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.board-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 15px 10px;
    text-align: center;
    border-bottom: 2px solid #dee2e6;
}

.board-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.board-table tbody tr:hover {
    background: #f8f9fa;
}

/* 게시글 제목 */
.post-title {
    text-align: left;
    max-width: 400px;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.post-title a:hover {
    color: #007bff;
    text-decoration: underline;
}

.notice-post {
    background: #ffe6e6;
    border-left: 4px solid #dc3545;
}

.notice-post .post-title a {
    color: #dc3545;
    font-weight: 600;
}

.notice-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 8px;
    font-weight: 600;
}

/* 작성자, 조회수, 날짜 */
.post-author,
.post-views,
.post-date {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 30px 0;
}

.page-btn {
    display: inline-block;
    padding: 8px 12px;
    background: white;
    color: #007bff;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.page-btn:hover {
    background: #e9ecef;
    color: #0056b3;
}

.page-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 버튼 영역 */
.board-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.write-btn {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.write-btn:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

/* 게시글 상세보기 */
.post-detail {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.post-detail-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.post-detail-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.post-detail-meta {
    display: flex;
    gap: 20px;
    color: #6c757d;
    font-size: 14px;
}

.post-detail-content {
    line-height: 1.6;
    color: #495057;
    min-height: 200px;
    white-space: pre-wrap;
}

.post-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    color: white;
    text-decoration: none;
}

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

.btn-danger:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

/* 폼 스타일 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

textarea.form-control {
    min-height: 200px;
    resize: vertical;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .board-container {
        padding: 10px;
    }
    
    .board-table {
        font-size: 14px;
    }
    
    .board-table th,
    .board-table td {
        padding: 10px 5px;
    }
    
    .post-title {
        max-width: 200px;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form input[type="text"] {
        min-width: auto;
    }
    
    .board-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .post-detail-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .post-detail-actions {
        flex-direction: column;
    }
}

/* 빈 게시판 메시지 */
.empty-board {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-board i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-board h3 {
    margin-bottom: 10px;
    color: #495057;
}

.empty-board p {
    margin-bottom: 20px;
}

/* 빈 행 스타일 */
.empty-row {
    padding: 0 !important;
    border: none !important;
}

.empty-row .empty-board {
    padding: 40px 20px;
    margin: 0;
}

.empty-row .empty-board i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.empty-row .empty-board h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.empty-row .empty-board p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 관리자 액션 버튼 */
.admin-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.admin-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 32px;
    transition: all 0.2s ease;
    gap: 4px;
}

.admin-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.admin-actions .btn-primary {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

.admin-actions .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white;
}

.admin-actions .btn-danger {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.admin-actions .btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
    color: white;
}
