@charset "utf-8";

/****************************************************************************************************************************************
ST10 board.css — ST02 board.css 베이스 + Earth 다크 테마 토큰 호환
(write-table th 가독성 패치, 아코디언 상태 배지 Earth 톤 조정)
*****************************************************************************************************************************************/

/****************************************************************************************************************************************
게시판 타이틀
*****************************************************************************************************************************************/
.bo-tit {
    position: relative;
    margin: 0 auto;
    padding: 15px 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--earth-text-muted);
}
.bo-tit > h3 {
    position: relative;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--earth-text);
    font-family: 'Orbitron', 'Noto Sans KR', sans-serif;
    letter-spacing: 0.02em;
}

.scroll-wrap {
    position: relative;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
}

/****************************************************************************************************************************************
list-table
*****************************************************************************************************************************************/
.list-table {
    position: relative;
    margin: 0 0 30px 0;
    padding: 0;
    width: 100%;
    border: 1px solid var(--border3-color);
    border-bottom: none;
    background: rgba(10, 22, 40, 0.4);
}
.list-table thead tr { background: var(--th-bg); }
.list-table tbody tr {
    background: rgba(10, 22, 40, 0.6);
    cursor: pointer;
    transition: 0.2s;
}
.list-table th,
.list-table td {
    padding: 12px 5px;
    text-align: center;
    font-weight: 600;
    color: var(--earth-text);
    border-bottom: 1px solid var(--border3-color);
}
.list-table th { color: var(--earth-text); }
.list-table td.td-left { text-align: left; }
.list-table td.td-cursor { cursor: pointer; }
.list-table td > p {
    width: 400px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 공지 목록(데스크톱): 번호/카테고리 좌측 고정폭 → 제목 컬럼이 남은 폭 차지 (타 스킨 동일 처리)
   min-width 768px 게이트 필수 — 스코프 특이성이 아래 모바일 44/90px 규칙보다 높아 게이트 없으면 모바일 회귀 */
@media (min-width: 768px) {
    .scroll-wrap[data-notice-page] .list-table th:nth-child(1),
    .scroll-wrap[data-notice-page] .list-table td:nth-child(1) { width: 100px; }
    .scroll-wrap[data-notice-page] .list-table th:nth-child(2),
    .scroll-wrap[data-notice-page] .list-table td:nth-child(2) { width: 120px; }
    /* 조회수/등록일 옵션 컬럼이 켜진 경우에도 제목이 최대 폭 유지 */
    .scroll-wrap[data-notice-page] .list-table th:nth-child(n+4),
    .scroll-wrap[data-notice-page] .list-table td:nth-child(n+4) { width: 110px; }
}

.answer-ing { font-weight: 600; color: var(--earth-primary); }
.answer-ok { font-weight: 600; color: var(--earth-text-muted); }
.message-notCheck { color: var(--earth-primary); }
.message-check { color: var(--earth-text-muted); }

@media (hover: hover) and (pointer: fine) {
    .list-table tbody tr:hover {
        background: rgba(0, 212, 170, 0.08);
    }
}

/****************************************************************************************************************************************
view-table
*****************************************************************************************************************************************/
.view-table {
    position: relative;
    margin: 0 0 30px 0;
    padding: 0;
    width: 100%;
    border: 1px solid var(--border3-color);
    border-bottom: none;
    background: rgba(10, 22, 40, 0.4);
}
.view-table thead tr { background: var(--th-bg); }
.view-table tbody tr { background: rgba(10, 22, 40, 0.6); }
.view-table th,
.view-table td {
    padding: 12px 5px;
    text-align: center;
    font-weight: 600;
    color: var(--earth-text);
    border-bottom: 1px solid var(--border3-color);
}
.view-table th {
    width: 150px;
    color: var(--earth-text);
    background: var(--th-bg);
    border-right: 1px solid var(--border3-color);
}
.view-table td { width: calc(100% - 150px); }

/* 내용 영역: 넉넉한 높이 + 가운데 정렬 (ST02 패턴)
   table-cell 은 min-height 를 무시하므로 height 로 지정 (table-cell 에선 최소높이로 동작) */
.view-table td.view-content {
    padding: 25px 20px;
    height: 200px;
    line-height: 1.7;
    word-break: break-word;
}
.view-table td.view-content,
.view-table td.view-content > *,
.view-table td.view-content p,
.view-table td.view-content div,
.view-table td.view-content ul,
.view-table td.view-content ol,
.view-table td.view-content span { text-align: center; }
.view-table td.view-content ul,
.view-table td.view-content ol {
    list-style-position: inside;
    padding-left: 0;
}

/****************************************************************************************************************************************
write-table
*****************************************************************************************************************************************/
.write-table {
    position: relative;
    margin: 0 0 30px 0;
    padding: 0;
    width: 100%;
    border-top: 2px solid var(--earth-primary);
    box-shadow: 0 -1px 0 rgba(0, 212, 170, 0.3), 0 -8px 20px rgba(0, 212, 170, 0.08);
}
.write-table th,
.write-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border3-color);
}
.write-table th {
    width: 150px;
    text-align: center;
    color: var(--earth-text);
    background: var(--bg-layer2);
    border-right: 1px solid var(--border3-color);
    font-weight: 600;
}
.write-table td {
    width: calc(100% - 150px);
    text-align: left;
    background: rgba(10, 22, 40, 0.5);
}
.write-table td > input,
.write-table td > textarea,
.write-table td > select {
    margin: 0 auto;
    padding: 10px 12px;
    width: 100%;
    text-align: left;
    color: var(--earth-text);
    background: rgba(5, 13, 26, 0.6);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 6px;
    transition: 0.2s;
}
.write-table td > input:focus,
.write-table td > textarea:focus,
.write-table td > select:focus {
    outline: none;
    border-color: var(--earth-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
}
.write-table td > input::placeholder,
.write-table td > textarea::placeholder { color: var(--placeholder-color); }

.write-table td > input + .unit-suffix {
    margin-left: 6px;
    font-size: 14px;
    color: var(--earth-text);
    vertical-align: middle;
}
.write-table td > input:has(+ .unit-suffix) {
    width: calc(100% - 30px);
    display: inline-block;
}
.write-table td > textarea { height: 150px; }

/* ul.moneyBtns */
ul.moneyBtns {
    position: relative;
    margin: 15px auto 0 auto;
    padding: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    align-items: center;
}
ul.moneyBtns > li {
    margin: 0 auto;
    padding: 10px 0;
    width: calc(100% / 6 - 5px);
    text-align: center;
    font-weight: 600;
    color: #fff;
    background: var(--bg-layer2);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
ul.moneyBtns > li.btn-reset {
    background: var(--earth-gradient);
    border-color: var(--earth-primary);
}
@media (hover: hover) and (pointer: fine) {
    ul.moneyBtns > li:hover {
        filter: brightness(115%);
        border-color: var(--earth-primary);
        box-shadow: 0 0 10px rgba(0, 212, 170, 0.3);
    }
}

/****************************************************************************************************************************************
게시판 가이드
*****************************************************************************************************************************************/
.bo-guide {
    position: relative;
    margin-bottom: 20px;
    padding: 20px;
    width: 100%;
    text-align: center;
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid rgba(0, 212, 170, 0.15);
    border-radius: 8px;
}
.guide-tit {
    position: relative;
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--earth-primary);
}
.guide-tit > svg {
    margin: 5px 5px 0 0;
    font-size: 20px;
}
ul.guide-list {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: left;
}
ul.guide-list > li {
    list-style: disc;
    display: list-item;
    margin-left: 40px;
    padding: 0;
    line-height: 1.8;
    font-weight: 500;
    color: var(--earth-text);
}

.account-btn {
    position: relative;
    margin: 0 5px;
    padding: 6px 12px;
    font-weight: 600;
    color: #fff;
    background: var(--earth-gradient);
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 212, 170, 0.3);
    transition: all 0.2s ease;
}
.account-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    .account-btn:hover:not(:disabled) {
        filter: brightness(115%);
        transform: translateY(-1px);
    }
}

/****************************************************************************************************************************************
게시판 버튼
*****************************************************************************************************************************************/
.board-btn {
    position: relative;
    margin: 30px auto 50px auto;
    padding: 0;
    width: 100%;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}
.board-btn > button {
    margin: 0;
    padding: 12px 24px;
    width: 140px;
    text-align: center;
    font-weight: 700;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', 'Noto Sans KR', sans-serif;
    letter-spacing: 0.03em;
    transition: 0.2s;
}
.board-btn > button:nth-child(1) {
    background: var(--earth-gradient);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}
.board-btn > button:nth-child(2) {
    background: var(--earth-secondary);
    box-shadow: 0 4px 15px rgba(0, 153, 255, 0.3);
}
.board-btn > button:nth-child(3) {
    background: var(--earth-accent);
    color: var(--earth-darker);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}
@media (hover: hover) and (pointer: fine) {
    .board-btn > button:hover {
        filter: brightness(115%);
        transform: translateY(-1px);
    }
}

/****************************************************************************************************************************************
페이지네이션
*****************************************************************************************************************************************/
.pagination,
.pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 20px 0;
}
.pagination button,
.pager > a,
.pager > span {
    padding: 8px 14px;
    min-width: 36px;
    text-align: center;
    font-weight: 600;
    color: var(--earth-text);
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid var(--border3-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.pagination button.active,
.pager > .pager-current {
    background: var(--earth-gradient);
    color: #fff;
    border-color: var(--earth-primary);
    box-shadow: 0 2px 10px rgba(0, 212, 170, 0.3);
}
.pagination button:disabled,
.pager > .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
@media (hover: hover) and (pointer: fine) {
    .pagination button:not(.active):not(:disabled):hover,
    .pager > a:hover {
        border-color: var(--earth-primary);
        color: var(--earth-primary);
    }
}

/****************************************************************************************************************************************
빈 데이터 / 로딩 상태
*****************************************************************************************************************************************/
.empty-row td,
.event-empty td,
.notice-empty td,
.loading-row td {
    padding: 40px;
    text-align: center;
    color: var(--placeholder-color);
    background: rgba(10, 22, 40, 0.6);
}

.event-image-wrap,
.notice-image-wrap {
    margin: 0 0 15px 0;
    padding: 12px;
    width: 100%;
    text-align: center;
    background: rgba(10, 22, 40, 0.55);
    border: 1px solid var(--border3-color);
    border-radius: 8px;
}
.event-image-wrap img,
.notice-image-wrap img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.list-table input[type="checkbox"] { cursor: pointer; accent-color: var(--earth-primary); }
.list-table tbody tr { cursor: pointer; }

/****************************************************************************************************************************************
아코디언 (고객센터)
*****************************************************************************************************************************************/
.accordion-container { position: relative; width: 100%; }
.accordion-loading,
.accordion-empty {
    padding: 40px;
    text-align: center;
    color: var(--placeholder-color);
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid var(--border3-color);
    border-radius: 6px;
}
.accordion-item {
    position: relative;
    margin-bottom: 10px;
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid var(--border3-color);
    border-radius: 6px;
    overflow: hidden;
    transition: 0.2s;
}
.accordion-item.active {
    border-color: var(--earth-primary);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.15);
}
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background: var(--bg-layer2);
    transition: background 0.2s;
}
.accordion-header:hover { background: rgba(0, 212, 170, 0.08); }
.accordion-title-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}
.accordion-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--earth-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.accordion-status {
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    white-space: nowrap;
}
.accordion-status.answer-ok {
    background: rgba(0, 255, 136, 0.2);
    color: var(--earth-accent);
}
.accordion-status.answer-ing {
    background: rgba(0, 212, 170, 0.2);
    color: var(--earth-primary);
}
.accordion-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}
.accordion-date {
    font-size: 13px;
    color: var(--placeholder-color);
}
.accordion-arrow {
    font-size: 12px;
    color: var(--placeholder-color);
    transition: transform 0.2s;
}
.accordion-content {
    padding: 0;
    background: rgba(10, 22, 40, 0.4);
}
.accordion-section {
    padding: 20px;
    border-bottom: 1px solid var(--border3-color);
}
.accordion-section:last-of-type { border-bottom: none; }
.accordion-section-title {
    padding: 10px 15px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--th-bg);
    text-align: center;
    border-radius: 4px;
}
.accordion-section-body {
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--earth-text);
    word-break: break-word;
}
.accordion-answer .accordion-section-title {
    background: var(--earth-gradient);
}
.accordion-actions {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid var(--border3-color);
}
.accordion-actions .btn-view {
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--earth-gradient);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 212, 170, 0.3);
    transition: filter 0.2s, transform 0.2s;
}
@media (hover: hover) and (pointer: fine) {
    .accordion-actions .btn-view:hover {
        filter: brightness(115%);
        transform: translateY(-1px);
    }
}

/****************************************************************************************************************************************
상세보기 (고객센터)
*****************************************************************************************************************************************/
.detail-container {
    position: relative;
    width: 100%;
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid var(--border3-color);
    border-radius: 8px;
    overflow: hidden;
}
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--bg-layer2);
    border-bottom: 1px solid var(--border3-color);
}
.detail-title-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}
.detail-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--earth-text);
    font-family: 'Orbitron', 'Noto Sans KR', sans-serif;
}
.detail-status {
    padding: 5px 15px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
}
.detail-status .answer-ok {
    background: rgba(0, 255, 136, 0.2);
    color: var(--earth-accent);
}
.detail-status .answer-ing {
    background: rgba(0, 212, 170, 0.2);
    color: var(--earth-primary);
}
.detail-date {
    font-size: 14px;
    color: var(--placeholder-color);
    flex-shrink: 0;
}
.detail-section {
    padding: 0;
    margin: 20px;
}
.detail-section-title {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    border-radius: 6px 6px 0 0;
}
.detail-section-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--earth-text);
    background: rgba(5, 13, 26, 0.5);
    border: 1px solid var(--border3-color);
    border-top: none;
    border-radius: 0 0 6px 6px;
    word-break: break-word;
    min-height: 100px;
}
.detail-inquiry .detail-section-title { background: var(--th-bg); }
.detail-answer .detail-section-title { background: var(--earth-gradient); }

/****************************************************************************************************************************************
미디어쿼리
*****************************************************************************************************************************************/
@media (max-width: 992px) {
    .list-table td > p { width: 300px; }
}

@media (max-width: 767px) {
    .bo-tit { padding: 10px 15px; }
    .bo-tit > img { height: 40px; }

    /* 모바일: 테이블이 화면 폭에 맞게 자동 적응 (이전 min-width:767px 가 강제 가로 스크롤 + 잘림 유발) */
    .list-table { margin-bottom: 10px; min-width: 0; table-layout: fixed; }
    /* 셀 자체에도 ellipsis — 카테고리 값이 길면 (예: 다국어 "Maintenance") 잘림 방지 */
    .list-table th, .list-table td {
        padding: 8px 4px; font-size: 12px;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    /* 번호 좁게, 카테고리 90px (다국어 영문/긴 한글 라벨 안전 마진) → 제목 컬럼이 남은 공간 확장 */
    .list-table th:nth-child(1), .list-table td:nth-child(1) { width: 44px; }
    .list-table th:nth-child(2), .list-table td:nth-child(2) { width: 90px; }
    /* td > p 의 데스크톱 고정 width:400px 풀어주어 모바일에선 자기 셀 폭에 맞춤 */
    .list-table td > p { width: auto; max-width: 100%; font-size: 12px; }
    .bo-mo-hid { display: none; }

    .write-table th { width: 70px; }
    .write-table td { width: calc(100% - 70px); }

    /* 상세 라벨 컬럼: 데스크톱 150px 가 모바일에선 과대 → 축소 */
    .view-table th { width: 100px; }
    .view-table td { width: calc(100% - 100px); }
    .view-table td.view-content { padding: 18px 12px; }

    ul.guide-list > li { margin-left: 20px; }
    .account-btn { display: block; margin: 10px auto; width: 100%; }
    ul.moneyBtns > li { width: calc(100% / 3 - 5px); }

    .accordion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .accordion-title-wrap { width: 100%; }
    .accordion-meta {
        width: 100%;
        justify-content: space-between;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .detail-title-wrap { width: 100%; }
    .detail-title { font-size: 16px; }
    .detail-date { width: 100%; }
    .detail-section { margin: 15px; }
    .detail-section-body { padding: 15px; }
}

@media (max-width: 639px) {
    .list-table th { font-size: 12px; }
    .list-table td { font-size: 13px; }
    .list-table td > p { width: 150px; }

    .view-table th,
    .view-table td { font-size: 13px; }

    .write-table th {
        padding: 10px 5px;
        width: 20%;
        font-size: 12px;
    }
    .write-table td {
        padding: 10px 5px;
        width: 80%;
        font-size: 13px;
    }
    .write-table td > input,
    .write-table td > textarea,
    .write-table td > select { font-size: 13px; }

    .board-btn > button {
        padding: 10px 0;
        width: 100%;
        font-size: 13px;
    }
}
