@charset "UTF-8";

/* ============================================================
   COMPAS HUB - 갤러리 목록 (gallery)
   ============================================================ */

#hub-gallery-list {
    --hub-list-accent: #369367;
    --hub-list-accent-hover: #2f815b;
}

.gallery-tab-nav {
    display: flex;
    gap: 0;
    width: 1400px;
    max-width: calc(100% - 40px);
    margin: 0 auto 24px;
    border-bottom: 2px solid #e5e7eb;
}
.gallery-tab-btn {
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -2px;
}
.gallery-tab-btn.active {
    color: var(--hub-list-accent);
    border-bottom-color: var(--hub-list-accent);
}
.gallery-tab-btn em {
    margin-left: 4px;
    font-style: normal;
    font-weight: 600;
    color: #9ca3af;
}
.gallery-tab-btn.active em {
    color: var(--hub-list-accent);
}
.gallery-tab-btn:hover:not(.active) {
    color: #374151;
}
.gallery-tab-pane { display: none; }
.gallery-tab-pane.active { display: block; }

/* My 갤러리 목록 */
.my-gallery-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 16px;
}
.btn-new-gallery {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--hub-list-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-new-gallery:hover { background: var(--hub-list-accent-hover); }

/* 갤러리 카드 목록 (전체 / My 공통, dashboard-list 확장) */
.my-gallery-card-list { list-style: none; padding: 0; margin: 0; }
.my-gallery-card-list .dashboard-item {
    height: 100%;
}
.my-gallery-card-list .ugv-gallery-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
}
.my-gallery-card-list .ugv-gallery-thumb-placeholder i {
    font-size: 48px;
    color: #9ca3af;
}
.my-gallery-card-list .dashboard-item .content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
}
/* 전체 목록도 My 목록의 상태 배지 행(28px)과 같은 높이를 유지한다. */
#hub-gallery-ul .content::before {
    content: "";
    display: block;
    width: 100%;
    min-height: 28px;
    flex: 0 0 28px;
}
.my-gallery-card-list .title {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}
.my-gallery-card-list .title:hover { color: var(--hub-list-accent); }
.my-gallery-card-list .description {
    flex-shrink: 0;
    width: 100%;
    margin-top: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
    line-height: 24px;
    color: #666;
}
.my-gallery-card-list .data-util {
    flex: 0 0 auto;
    width: 100%;
    margin-top: auto;
}
.my-gallery-card-list .data-util .author {
    font-size: 16px;
    line-height: 21px;
    font-weight: 600;
    color: #666;
}
.my-gallery-card-list .data-util .author .fa { margin-right: 4px; }
.my-gallery-card-list .data-util .date {
    font-size: 16px;
    line-height: 21px;
    font-weight: 600;
    color: #666;
}
.my-gallery-card-list .data-util .date .fa { margin-right: 4px; }
.my-gallery-card-list .data-util .view-num {
    font-size: 16px;
    line-height: 21px;
    font-weight: 600;
    color: #666;
}
.my-gallery-card-list .data-util .view-num .fa { margin-right: 4px; }

/* 전체 / My 갤러리: 메타 정보 좌측 정렬, 8px 간격 */
#hub-gallery-ul .data-util,
#my-gallery-ul .data-util {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}
#hub-gallery-ul .data-util .author,
#my-gallery-ul .data-util .date {
    margin-right: 0;
}
#hub-gallery-ul .data-util .author {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#hub-gallery-ul .data-util .view-num,
#my-gallery-ul .data-util .view-num {
    margin-left: 0;
    padding-left: 0;
    background: none;
}
#hub-gallery-ul .data-util .view-num {
    flex: 0 0 auto;
}
#hub-gallery-ul .data-util .author + .view-num {
    margin-left: 4px;
}
.my-gallery-status-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
    flex-shrink: 0;
}
.my-gallery-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-sizing: border-box;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
}
.my-gallery-status-badge .fa {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1;
}
.badge-none  { background: #cbd5e1; color: #1e293b; }
.badge-wait  { background: #fef3c7; color: #92400e; }
.badge-aprv  { background: #d1fae5; color: #065f46; }
.badge-rjct  { background: #fee2e2; color: #991b1b; }
.badge-edited { background: #dbeafe; color: #1e40af; }
/* 내 갤러리 카드는 공개 여부와 신청 상태를 동일한 규격의 비대화형 배지로 구분한다. */
#my-gallery-ul .my-gallery-status-badges { gap: 6px; }
#my-gallery-ul .badge-none {
    background: #f1f5f3;
    border-color: #d8e1dc;
    color: #3f5360;
}
#my-gallery-ul .badge-aprv {
    background: #e9f3ec;
    border-color: #cfe3d5;
    color: #08783e;
}
#my-gallery-ul .badge-state {
    background: #f4f6f8;
    border-color: #dde3e8;
    color: #475569;
}
#my-gallery-ul .badge-state-wait {
    background: #fff5df;
    border-color: #f5d99d;
    color: #8a4b00;
}
#my-gallery-ul .badge-state-attention {
    background: #fff0ee;
    border-color: #f2c7c3;
    color: #a91d24;
}
#my-gallery-ul .badge-state-restricted {
    background: #ecfeff;
    border-color: #bae6fd;
    color: #155e75;
}
#my-gallery-ul .badge-state-pending {
    background: #edf3ff;
    border-color: #cddcff;
    color: #2147a6;
}

.my-gallery-empty {
    text-align: center;
    padding: 60px 0;
    color: #9ca3af;
}
.my-gallery-empty i { font-size: 40px; display: block; margin-bottom: 12px; }
.my-gallery-login p { margin-bottom: 20px; color: #6b7280; font-size: 15px; }
.btn-my-gallery-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 10px 28px;
    background: var(--hub-list-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-my-gallery-login:hover { background: var(--hub-list-accent-hover); }

/* 갤러리 페이지네이션 (vendor.css .pagination 전역 스타일 재정의) */
.gallery-pagination {
    position: static;
    left: auto;
    transform: none;
    float: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 28px auto 8px;
    gap: 6px;
    width: 100%;
    font-size: 14px;
    text-align: center;
}
.gallery-pagination li {
    display: inline-flex;
    margin: 0;
}
.gallery-pagination .page-link,
.gallery-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: auto;
    min-width: 36px;
    height: 36px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.gallery-pagination .page-link:hover,
.gallery-pagination a:hover {
    background: #f3f4f6;
    color: #374151;
    font-weight: 400;
}
.gallery-pagination li.active .page-link,
.gallery-pagination li.page-item.active .page-link,
.gallery-pagination .page-link.active,
.gallery-pagination a.active {
    background: var(--hub-list-accent);
    border-color: var(--hub-list-accent);
    color: #fff;
    font-weight: 700;
}
.gallery-pagination li.active .page-link:hover,
.gallery-pagination li.page-item.active .page-link:hover,
.gallery-pagination .page-link.active:hover,
.gallery-pagination a.active:hover {
    background: var(--hub-list-accent);
    border-color: var(--hub-list-accent);
    color: #fff;
    font-weight: 700;
}
.gallery-pagination li.disabled .page-link,
.gallery-pagination li.disabled a {
    color: #d1d5db;
    pointer-events: none;
    cursor: default;
}
