/**
 * 게시판 페이지 전용 스타일
 * 2025-10-22: board.html에서 분리
 */

.notice-page {
    background: var(--bg-white, #ffffff);
    padding: var(--spacing-4xl) 0 var(--spacing-5xl);
}

.notice-page .inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    padding-top: 0;
}

.notice-page .sub_contents_txt {
    border-radius: var(--spacing-xl);
    padding: var(--spacing-3xl);
    margin-top: 0;
}

.notice-page .board_search {
    margin-top: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--spacing-lg);
    background: var(--bg-white, #ffffff);
}

.notice-page .board_search select,
.notice-page .board_search_txt {
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    border-radius: 16px;
    border: 1px solid var(--accent-tertiary, #294579);
    font-size: var(--font-body);
    padding: 0 var(--spacing-md);
    box-sizing: border-box;
}

.notice-page .board_search_txt {
    transition: border-width 0.15s ease;
    flex: 1;
}

.notice-page .board_search select:focus {
    outline: none;
}

.notice-page .board_search_txt:focus {
    outline: none;
    border-width: 2px;
}

.notice-page .board_search_sumit {
    min-width: 120px;
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    border-radius: var(--spacing-md);
    background: var(--accent-tertiary);
    color: var(--bg-white);
    font-size: var(--font-small);
    font-weight: var(--weight-h4);
    border: none;
    box-sizing: border-box;
}

.notice-page .borad_zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--spacing-xl);
    color: var(--text-light);
    font-size: var(--font-small);
}

.notice-page .pagination-info-zone {
    justify-content: space-between;
    align-items: center;
}

.notice-page .pagination-info-text {
    margin: 0;
    font-size: var(--font-small);
    color: var(--muted);
}

.notice-page .items-per-page-select {
    padding: 6px 30px 6px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: var(--font-small);
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27%3E%3Cpath fill=%27%23666%27 d=%27M6 8L2 4h8z%27/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.notice-page .borad_zone_left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.notice-page .filter-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-gray);
    font-size: var(--font-small);
    font-weight: var(--weight-h4);
}

.notice-page .filter-label svg {
    color: var(--accent-tertiary);
}

.notice-page .borad_zone_right {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.notice-page .borad_zone span b,
.notice-page .borad_zone strong {
    color: var(--text-primary);
}

.notice-page .borad_zone select {
    min-width: 100px;
    min-height: 36px;
    padding: 0 var(--spacing-xl) 0 var(--spacing-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white) url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right var(--spacing-md) center;
    background-size: 12px 8px;
    color: var(--text-primary);
    font-size: var(--font-small);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.notice-page .borad_zone select:focus {
    outline: none;
    border-color: var(--accent-tertiary);
}

.notice-page .view-toggle {
    display: flex;
    gap: var(--spacing-xs);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2px;
    background: var(--bg-gray-light);
}

.notice-page .view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.notice-page .view-toggle-btn:hover {
    background: var(--bg-white);
    color: var(--text-primary);
}

.notice-page .view-toggle-btn.active {
    background: var(--bg-white);
    color: var(--accent-tertiary);
    box-shadow: var(--shadow-sm);
}

.notice-page .mobile-post-list {
    display: none;
}

/* 카드뷰 그리드 */
.notice-page #volumeListContainer.card-view {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.notice-page .borad_list {
    width: 100%;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.notice-page .no_list_board {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    flex: 1;
    width: 100%;
}

.notice-page .no_list_board ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: 0;
    margin: 0;
    list-style: none;
    flex: 1;
}

.notice-page .no_list_board ul li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--spacing-sm);
}

.notice-page .no_list_board ul li span {
    font-size: var(--font-small);
    font-weight: var(--weight-small);
    color: var(--text-light);
    letter-spacing: var(--spacing-small);
}

.notice-page .no_list_board ul li p {
    margin: 0;
    font-size: var(--font-body);
    font-weight: var(--weight-h4);
    line-height: var(--line-body);
    letter-spacing: var(--spacing-body);
    color: var(--text-primary);
}

.notice-page .no_list_board_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0 var(--spacing-md);
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--accent-tertiary);
    color: var(--bg-white);
    font-size: var(--font-small);
    font-weight: var(--weight-h4);
    line-height: 1;
    letter-spacing: var(--spacing-body);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}

.notice-page .no_list_board_btn:hover {
    background: var(--accent-navy);
}

/* ========== div 기반 게시판 레이아웃 (PC: Grid) ========== */
.notice-page .post-list {
    width: 100%;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* PC: Grid 헤더 */
.notice-page .post-header {
    display: grid;
    grid-template-columns: 1fr 120px 120px 120px;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-gray-light);
    border-bottom: 1px solid var(--border-light);
    font-size: var(--font-small);
    font-weight: var(--weight-h4);
    color: var(--text-gray);
}

.notice-page .post-header .col-title {
    text-align: left;
}

.notice-page .post-header .col-author,
.notice-page .post-header .col-date,
.notice-page .post-header .col-views {
    text-align: center;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

/* PC: Grid 게시글 행 */
.notice-page .post-item {
    display: grid;
    grid-template-columns: 1fr 120px 120px 120px;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: var(--font-body);
    color: var(--text-primary);
}

.notice-page .post-item:hover {
    background: var(--bg-gray-light);
}

.notice-page .post-item.last {
    border-bottom: 2px solid var(--accent-tertiary);
}

.notice-page .post-item .col-title {
    text-align: left;
}

.notice-page .post-item .col-author {
    text-align: center;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-page .post-item .col-date,
.notice-page .post-item .col-views {
    text-align: center;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

/* ========== 반응형 ========== */
@media (max-width: 1024px) {
    .notice-page {
        padding: 0 0 var(--spacing-5xl);
    }

    .notice-page .inner {
        gap: var(--spacing-2xl);
    }

    .notice-page .sub_contents_txt {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-xl);
        gap: var(--spacing-xl);
    }

    .notice-page .board_search {
        flex-direction: column;
        align-items: stretch;
    }

    .notice-page .board_search select,
    .notice-page .board_search_txt,
    .notice-page .board_search_sumit {
        width: 100%;
    }

    .notice-page #volumeListContainer.card-view {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .notice-page #volumeListContainer.card-view {
        grid-template-columns: repeat(2, 1fr);
    }

    .notice-page .post-header {
        display: none;
    }

    .notice-page .post-item {
        display: flex;
        flex-wrap: wrap;
        gap: var(--spacing-sm);
        padding: var(--spacing-md) 0;
        align-items: baseline;
    }

    .notice-page .post-item .col-title {
        flex-basis: 100%;
        font-size: var(--font-body);
        font-weight: 500;
        text-align: left;
        padding: 0;
    }

    .notice-page .post-item .col-author::after {
        content: ' • ';
        margin: 0 4px;
    }

    .notice-page .post-item .col-author,
    .notice-page .post-item .col-date,
    .notice-page .post-item .col-views {
        font-size: var(--font-small);
        color: var(--text-gray);
        text-align: left;
        padding: 0;
        overflow: visible;
        white-space: normal;
    }

    .notice-page .post-item .col-views {
        margin-left: auto;
    }

    .notice-page {
        padding: var(--spacing-2xl) 0 var(--spacing-4xl);
    }

    .notice-page .sub_title {
        gap: var(--spacing-lg);
    }

    .notice-page .board_search {
        padding: var(--spacing-lg) 0;
        gap: var(--spacing-md);
    }

    .notice-page .borad_list {
        padding: var(--spacing-md);
    }

    .notice-page #volumeListContainer.card-view {
        grid-template-columns: 1fr;
    }

    .notice-page .borad_zone {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
    }

    .notice-page .pagination-info-zone {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .notice-page .pagination-info-text {
        flex-shrink: 0;
    }

    .notice-page .items-per-page-select {
        flex-shrink: 0;
    }

    .notice-page .borad_zone_right {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: var(--spacing-md);
    }

    .notice-page .view-toggle {
        width: 100%;
        justify-content: center;
    }
}

.notice-page .authors-section {
    margin-bottom: var(--spacing-sm);
}

.notice-page .author-line {
    margin-bottom: var(--spacing-xs);
}

.notice-page .author-line:last-child {
    margin-bottom: 0;
}

.notice-page .affiliation {
    color: var(--text-gray);
    font-size: var(--font-small);
}

.notice-page .paper-info:last-child {
    margin-top: var(--spacing-sm);
}
