/* Board Skin: notice */

/* 에디터 사용을 위한 p 태그 margin 제거 */
p {
    margin: 0;
}

/* Header & General */
.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.board-header h1 {
    margin: 0;
    font-size: 1.6rem;
    color: #00256c;
    font-weight: 700;
}
.board-info {
    color: #666;
}
.board-info strong {
    color: #00256c;
}

/* List Table */
.board-table {
    width: 100%;
    border-collapse: collapse;
}
.board-table th, .board-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.board-table th {
    text-align: center;
    background-color: #f1f3f5;
    color: var(--text-muted);
    font-weight: 600;
}
.board-table td.subject {
    text-align: left;
}
.board-table td.center {
    text-align: center;
}
.board-table tr:hover {
    background-color: rgba(0,0,0, 0.02);
}
.board-table a {
    color: var(--text-main);
    text-decoration: none;
}
.board-table a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Buttons */
.btn-write {
    display: inline-block;
    background-color: transparent;
    color: #00256c;
    border: 1px solid #00256c;
    padding: 0.5rem 1rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-write:hover { 
    background-color: #00256c; 
    color: #fff;
}

/* Category Tabs */
.category-tabs {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.btn-cat {
    padding: 0.4rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    background: transparent;
    transition: all 0.2s;
}
.btn-cat:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-cat.active {
    background-color: #00256c;
    border-color: #00256c;
    color: #fff !important;
}

/* Search Area */
#bo_search {
    border: 1px solid #00256c;
    padding: 20px;
    background-color: #f7f7f8;
    margin-bottom: 1.5rem;
}
#bo_search h5 {
    margin: 0 0 1rem 0;
    color: #333;
}
.sch_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sch_input {
    width: 83%;
    height: 40px;
    margin: 0 !important;
    padding: 5px 10px;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    border-bottom: 1px dotted #00256c;
    color: #333;
}
.sch_input:focus {
    outline: none;
    border-bottom-style: solid;
}
.sch_btn {
    width: 15%;
    height: 40px;
    border: 0;
    background-color: #00256c;
    color: #fff;
    font-weight: 600;
    padding: 5px 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.sch_btn:hover {
    background-color: #001a4d;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 0.3rem;
}
.pagination a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    border-radius: 4px;
    background-color: #fff;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}
.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #f8f9fa;
}
.pagination a.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}
.pagination .page_numbers {
    display: flex;
    gap: 0.3rem;
}

/* View Page */
.view-header-table {
    width: 100%;
    border-top: 1px solid #ddd;
    border-collapse: collapse;
    margin-bottom: 2rem;
}
.view-header-table th {
    width: 140px;
    background-color: #f9f9f9;
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    color: #333;
    font-weight: 600;
}
.view-header-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: #666;
}
.view-header-table .view-title {
    color: #00256c;
    font-weight: 700;
}
.view-header-table .hit-wrap {
    float: right;
}
.view-header-table .hit-label {
    margin-right: 40px;
    color: #333;
}
.view-header-table .hit-count {
    font-weight: 700;
    color: #000;
}
.board-view-content {
    min-height: 200px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 3rem;
    white-space: pre-line;
    word-break: break-all;
}

.board-view-content img {
    max-width: 100%;
    height: auto;
}

/* Comments */
.comment-section {
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}
.comment-list {
    margin-bottom: 2rem;
}
.comment-item {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}
.comment-meta {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}
.comment-author {
    font-weight: 600;
    color: var(--primary-color);
}
.comment-content {
    color: var(--text-main);
    white-space: pre-wrap;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    color: var(--text-main);
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.btn-comment, .btn-reply-comment {
    align-self: flex-end;
    background-color: #00256c;
    color: #fff;
    border: 1px solid #00256c;
    padding: 0.8rem 1.6rem;
    border-radius: 0;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-comment:hover, .btn-reply-comment:hover {
    background-color: #001a4d;
    border-color: #001a4d;
    color: #fff;
}
.btn-list {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background-color: #fff;
    color: #00256c;
    border: 1px solid #00256c;
    text-decoration: none;
    border-radius: 0;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-list:hover {
    background-color: #f8f9fa;
    color: #001a4d;
    border-color: #001a4d;
}

/* Write Page */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
}
.form-control {
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    color: var(--text-main);
    font-family: inherit;
    box-sizing: border-box;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}
.btn-submit {
    display: inline-block;
    background-color: #00256c;
    color: #fff;
    border: 1px solid #00256c;
    padding: 0.8rem 1.6rem;
    border-radius: 0;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-submit:hover { 
    background-color: #001a4d; 
    border-color: #001a4d;
    color: #fff;
}
.btn-cancel {
    display: inline-block;
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    padding: 0.8rem 1.6rem;
    border-radius: 0;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-cancel:hover { 
    background-color: #f8f9fa; 
    border-color: #999;
}
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}
.parent-post-info {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.2rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 1.5rem;
}
.parent-post-info .label {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.parent-post-info .parent-title {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}
.parent-post-info .parent-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Secret Box */
.secret-box {
    max-width: 500px;
    margin: 5rem auto;
    padding: 3rem;
    background-color: #fff;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.secret-box h2 {
    color: var(--text-main);
    margin-bottom: 2rem;
}
.secret-input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    background-color: #fcfcfc;
    color: var(--text-main);
    border-radius: 6px;
    box-sizing: border-box;
}
.btn-secret {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}
.btn-secret:hover {
    background-color: var(--primary-hover);
}


/* Post Navigation */
.post-navigation {
    margin: 3rem 0;
    border-top: 2px solid #333;
    border-bottom: 1px solid var(--border-color);
    background-color: #fff;
}
.nav-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    transition: background 0.2s;
}
.nav-item:not(.disabled):hover {
    background-color: #f8f9fa;
}
.nav-label {
    font-weight: 700;
    min-width: 80px;
    padding: 2px 8px;
    border-radius: 3px;
    text-align: center;
    margin-right: 1.5rem;
}
.next-label {
    background-color: rgba(0, 37, 108, 0.05);
    color: var(--primary-color);
}
.prev-label {
    background-color: #f1f3f5;
    color: #666;
}
.nav-link {
    flex: 1;
    text-decoration: none;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-item:not(.disabled) .nav-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.nav-divider {
    height: 1px;
    background-color: #eee;
}
.nav-item.disabled {
    opacity: 0.6;
}
.disabled-label {
    background-color: #f8f9fa;
    color: #ccc;
}
.disabled-text {
    color: #bbb;
    cursor: default;
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .nav-label {
        min-width: 60px;
        margin-right: 1rem;
    }
}
