/* DANE 게시판 스타일 */

/* 페이지 헤더 */
.page_header {
    text-align: center;
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 3rem;
}

.page_header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page_header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* 게시판 탭 */
.board_tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.board_tabs a {
    padding: 0.8rem 1.5rem;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.board_tabs a:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-2px);
}

.board_tabs a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 게시글 목록 */
.board_list {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.list_header {
    display: grid;
    grid-template-columns: 80px 120px 1fr 120px 120px 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    font-weight: 600;
    text-align: center;
    gap: 1rem;
}

.list_item {
    display: grid;
    grid-template-columns: 80px 120px 1fr 120px 120px 80px;
    padding: 1rem;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    gap: 1rem;
    align-items: center;
}

.list_item:hover {
    background: #f8f9ff;
    transform: translateX(5px);
}

.list_item:last-child {
    border-bottom: none;
}

.col_no, .col_hit {
    text-align: center;
    font-weight: 500;
    color: #6c757d;
}

.col_category {
    text-align: center;
}

.col_category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col_subject {
    font-weight: 500;
}

.col_subject a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.col_subject a:hover {
    color: #667eea;
}

.col_subject i {
    margin-left: 0.5rem;
    color: #28a745;
}

.col_name, .col_date {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* 게시글 없음 */
.no_posts {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.no_posts p {
    font-size: 1.1rem;
    margin: 0;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.page_btn, .page_num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.page_btn {
    background: #f8f9fa;
    color: #6c757d;
}

.page_btn:hover {
    background: #e9ecef;
    color: #495057;
    transform: scale(1.1);
}

.page_num {
    background: #f8f9fa;
    color: #6c757d;
}

.page_num:hover {
    background: #e9ecef;
    color: #495057;
    transform: scale(1.1);
}

.page_num.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 게시판 정보 */
.board_info {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* 게시글 보기 */
.view_wrap {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.view_header {
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.view_header .category {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.view_header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.view_info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.view_info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.view_info i {
    font-size: 0.8rem;
}

/* 첨부파일 */
.view_files {
    padding: 1.5rem 2rem;
    background: #f8f9ff;
    border-bottom: 1px solid #f1f3f4;
}

.view_files h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #495057;
}

.view_files ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.view_files li {
    margin-bottom: 0.5rem;
}

.view_files a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view_files a:hover {
    color: #764ba2;
}

/* 게시글 내용 */
.view_content {
    padding: 2rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    min-height: 200px;
}

/* 이전글/다음글 */
.view_navigation {
    border-top: 1px solid #f1f3f4;
    background: #f8f9ff;
}

.nav_item {
    padding: 1rem 2rem;
    border-bottom: 1px solid #f1f3f4;
    transition: background 0.3s ease;
}

.nav_item:hover {
    background: #f0f2ff;
}

.nav_item:last-child {
    border-bottom: none;
}

.nav_label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.nav_item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav_item a:hover {
    color: #667eea;
}

/* 버튼 */
.view_buttons {
    padding: 1.5rem 2rem;
    text-align: center;
    background: #f8f9ff;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn_list {
    background: #6c757d;
    color: white;
}

.btn_list:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.btn_print {
    background: #28a745;
    color: white;
}

.btn_print:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .page_header {
        padding: 2rem 0 1rem;
    }
    
    .page_header h2 {
        font-size: 2rem;
    }
    
    .list_header, .list_item {
        grid-template-columns: 60px 1fr 80px 80px;
        gap: 0.5rem;
    }
    
    .col_category, .col_name {
        display: none;
    }
    
    .view_info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .view_content {
        padding: 1.5rem;
    }
    
    .view_buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .board_tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .board_tabs a {
        width: 200px;
        text-align: center;
    }
    
    .list_header, .list_item {
        grid-template-columns: 1fr 80px;
        gap: 0.5rem;
    }
    
    .col_no, .col_hit {
        display: none;
    }
    
    .view_header {
        padding: 1.5rem;
    }
    
    .view_header h3 {
        font-size: 1.4rem;
    }
} 