/* ================================================
   사냥터 배치도 공유 갤러리
   팔레트: #3C3744, #B4C5E4, #FBFFF1  (skillrequest.css 와 동일 톤)
   ================================================ */

.hb-container { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }

.hb-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.hb-title { font-size: 26px; color: #3C3744; }
.hb-desc { color: #777; font-size: 14px; margin-top: 4px; max-width: 640px; }
.hb-create-btn {
    flex-shrink: 0;
    padding: 11px 20px;
    background: #3C3744;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}
.hb-create-btn:hover { background: #2c2833; }

/* ─── 필터 ─── */
.hb-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.hb-select {
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    color: #3C3744;
    background: #fff;
    cursor: pointer;
    max-width: 260px;
}
.hb-search { display: flex; gap: 6px; margin-left: auto; }
.hb-search input {
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    width: 230px;
}
.hb-search button {
    padding: 9px 16px;
    background: #B4C5E4;
    color: #2c2833;
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.hb-search button:hover { background: #9fb4da; }

/* ─── 카드 그리드 ─── */
.hb-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.hb-loading, .hb-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    padding: 50px 20px;
    font-size: 14px;
    line-height: 1.8;
}
.hb-empty a { color: #6a7fb0; font-weight: 700; text-decoration: none; }
.hb-empty a:hover { text-decoration: underline; }
.hb-empty b { color: #3C3744; }
.hb-empty a[data-reset] { display: inline-block; margin-top: 8px; }

.hb-card {
    background: #fff;
    border: 1px solid #e2dfe8;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, box-shadow 0.15s;
}
.hb-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(60, 55, 68, 0.12); }

.hb-card-thumb {
    position: relative;
    display: block;
    background: #171c26;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.hb-card-thumb img { width: 100%; height: 100%; object-fit: contain; }
.hb-thumb-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #5a6478; font-size: 32px; font-weight: 700;
}
.hb-cov-badge {
    position: absolute;
    right: 8px; bottom: 8px;
    background: rgba(28, 31, 39, 0.9);
    color: #6bd5ff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
}

.hb-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.hb-card-map { font-size: 15px; font-weight: 700; color: #3C3744; }
.hb-card-title { font-size: 13px; color: #6a7fb0; font-weight: 700; }
.hb-card-skills {
    font-size: 12.5px;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hb-card-meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 11.5px; color: #999; margin-top: 2px;
}
.hb-cov b { color: #3C3744; }
.hb-author { color: #777; font-weight: 700; }
.hb-author::before { content: '· '; color: #ccc; font-weight: 400; }
.hb-time::before { content: '· '; color: #ccc; }

.hb-card-actions {
    display: flex; align-items: center; gap: 8px;
    margin-top: auto; padding-top: 10px;
}
.hb-open {
    font-size: 12.5px;
    font-weight: 700;
    color: #6a7fb0;
    text-decoration: none;
    margin-right: auto;
}
.hb-open:hover { text-decoration: underline; }
.hb-rec {
    display: flex; align-items: center; gap: 4px;
    padding: 5px 11px;
    border: 1px solid #e2dfe8;
    border-radius: 20px;
    background: #fff;
    color: #999;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.hb-rec:hover:not(:disabled) { border-color: #ff6b8a; color: #ff6b8a; }
.hb-rec.on { background: #ff6b8a; border-color: #ff6b8a; color: #fff; }
.hb-rec:disabled { opacity: 0.6; cursor: default; }

/* 삭제 버튼: 본인 또는 관리자 카드에만 JS 가 렌더링한다 */
.hb-del {
    padding: 5px 9px;
    border: 1px solid #ffd0d0;
    border-radius: 8px;
    background: #fff;
    color: #ff6b6b;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.hb-del:hover { background: #ff6b6b; color: #fff; }

/* 내가 올린 배치도 표시 */
.hb-mine {
    background: #B4C5E4;
    color: #2c2833;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9px;
}

/* ─── 페이지네이션 ─── */
.hb-pagination { display: flex; justify-content: center; gap: 5px; margin-top: 26px; flex-wrap: wrap; }
.hb-page {
    min-width: 34px;
    padding: 7px 11px;
    border: 1px solid #e2dfe8;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.hb-page:hover:not(:disabled) { border-color: #B4C5E4; }
.hb-page.cur { background: #3C3744; border-color: #3C3744; color: #fff; }
.hb-page:disabled { cursor: default; }
.hb-page-dots { padding: 7px 4px; color: #bbb; }

/* ─── 반응형 ─── */
@media (max-width: 640px) {
    .hb-list { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hb-search { margin-left: 0; width: 100%; }
    .hb-search input { flex: 1; width: auto; }
    .hb-card-map { font-size: 13.5px; }
    .hb-card-actions { flex-wrap: wrap; }
}
@media (max-width: 400px) {
    .hb-list { grid-template-columns: 1fr; }
}
