/* ========================================
   StarBuilder Default Board Skin
   ======================================== */
.sb-board-wrap { margin-bottom: 30px; }

/* Board top bar (total + search) */
.sb-board-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.sb-board-total { font-size: 14px; color: #666; }
.sb-board-total strong { color: var(--sb-primary, #FF6B35); font-weight: 700; }

/* Board search */
.sb-board-search { display: flex; gap: 6px; }
.sb-board-search select {
    padding: 7px 10px; border: 1px solid #ddd; border-radius: 4px;
    font-size: 13px; font-family: inherit; background: #fff;
}
.sb-board-search input[type=text] {
    padding: 7px 12px; border: 1px solid #ddd; border-radius: 4px;
    font-size: 13px; width: 180px; font-family: inherit;
}
.sb-board-search input[type=text]:focus { border-color: var(--sb-primary, #FF6B35); outline: none; }
.sb-board-search button {
    padding: 7px 16px; background: var(--sb-primary, #FF6B35); color: #fff;
    border: none; border-radius: 4px; font-size: 13px; cursor: pointer;
}
.sb-board-search button:hover { background: var(--sb-primary-dark, #e55a2b); }

/* Board list table */
.sb-board-list { width: 100%; border-collapse: collapse; border-top: 2px solid var(--sb-primary, #FF6B35); }
.sb-board-list thead th {
    padding: 12px 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
    color: #555;
    font-weight: 600;
    white-space: nowrap;
}
.sb-board-list tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}
.sb-board-list tbody tr:hover { background: #fafbfc; }
.sb-board-list tbody tr.sb-notice { background: #fffbf7; }
.sb-board-list tbody tr.sb-notice:hover { background: #fff5ed; }
.sb-board-list .sb-td-subject { word-break: break-all; }
.sb-board-list .sb-td-subject a { color: #333; text-decoration: none; font-weight: 500; }
.sb-board-list .sb-td-subject a:hover { color: var(--sb-primary, #FF6B35); }
.sb-board-list .sb-td-num,
.sb-board-list .sb-td-date,
.sb-board-list .sb-td-hit { text-align: center; color: #888; font-size: 13px; white-space: nowrap; }
.sb-board-list .sb-td-name { text-align: center; font-size: 13px; white-space: nowrap; }
.sb-board-list .sb-td-num { width: 60px; }
.sb-board-list .sb-td-name { width: 90px; }
.sb-board-list .sb-td-date { width: 90px; }
.sb-board-list .sb-td-hit { width: 60px; }

/* Notice badge */
.sb-badge {
    display: inline-block; padding: 2px 8px; border-radius: 3px;
    font-size: 11px; font-weight: 700; color: #fff;
    background: var(--sb-primary, #FF6B35);
}

/* Comment count & new icon */
.sb-comment-cnt { font-size: 12px; color: var(--sb-primary, #FF6B35); font-weight: 600; margin-left: 4px; }
.sb-icon-new {
    display: inline-block; width: 16px; height: 16px; line-height: 16px;
    text-align: center; font-size: 10px; font-weight: 700;
    color: #fff; background: #e74c3c; border-radius: 50%;
    margin-left: 4px; vertical-align: middle;
}

/* Category labels */
.sb-board-cate {
    display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 15px;
    flex-wrap: wrap;
}
.sb-board-cate li a {
    display: inline-block; padding: 5px 14px; border-radius: 20px;
    font-size: 13px; color: #555; background: #f0f0f0; text-decoration: none;
    transition: all 0.15s;
}
.sb-board-cate li a:hover,
.sb-board-cate li a#bo_cate_on {
    background: var(--sb-primary, #FF6B35); color: #fff;
}
.sb-cate-label {
    display: inline-block; padding: 1px 6px; border-radius: 3px;
    font-size: 11px; color: #888; background: #f0f0f0; margin-right: 4px;
    vertical-align: middle;
}

/* Board bottom (write button) */
.sb-board-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 15px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .sb-board-top { flex-direction: column; align-items: flex-start; }
    .sb-board-search { width: 100%; }
    .sb-board-search input[type=text] { flex: 1; min-width: 0; }
    .sb-board-list .sb-td-hit { display: none; }
    .sb-board-list .sb-td-date { width: 70px; font-size: 12px; }
    .sb-board-list .sb-td-num { width: 45px; font-size: 12px; }
    .sb-board-list .sb-td-name { width: 60px; font-size: 12px; }
    .sb-board-list thead th,
    .sb-board-list tbody td { padding: 10px 6px; font-size: 13px; }
}

@media (max-width: 480px) {
    .sb-board-list .sb-td-name { display: none; }
    .sb-board-list .sb-td-date { display: none; }
    .sb-board-list .sb-td-num { width: 40px; }
}
