/**
 * 경매 목록 페이지 스타일
 */

.auction-list-container {
    padding: 24px;
    background-color: #fff;
    border-radius: 8px;
    width: 100%;
}

.auction-list-wrapper {
    display: flex;
    flex-direction: column;
}

/* 탭 메뉴 */
.auction-filter-wrap {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
    padding-bottom: 10px;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.auction-tab-btn {
    width: 150px;
    height: 44px;
    border-radius: 4px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #f8f9fa;
    color: #495057;
}

.auction-tab-btn:hover {
    background-color: #e9ecef;
}

.auction-tab-btn.active {
    background-color: var(--brand-color);
    color: #fff;
    font-weight: 700;
}

.auction-guide-link {
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
    line-height: 22px;
    height: 22px;
    text-decoration: underline;
    color: #6c757d;
    cursor: pointer;
    white-space: nowrap;
}

.auction-guide-link:hover {
    color: var(--brand-color);
}

/* 로딩 */
.auction-loading {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.auction-loading.show {
    display: flex;
}

/* 상품 리스트 */
.auction-product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, 270px);
    gap: 24px;
    margin-bottom: 24px;
}

.auction-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 16px;
}

/* 상품 아이템 */
.auction-product-item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #fff;
}

.auction-product-item:hover {
    border-color: var(--brand-color);
    box-shadow: 0 2px 8px rgba(118, 32, 246, 0.15);
}

/* 상품 헤더 */
.auction-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.auction-item-no {
    font-size: 11px;
    color: #6c757d;
}

.my-bid-pin {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-color);
}

.my-bid-pin i {
    font-size: 14px;
}

/* 썸네일 */
.auction-item-thumbnail {
    position: relative;
    padding-top: 100%;
    margin-bottom: 16px;
    background-color: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
}

.auction-item-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.partner-badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    background-color: var(--brand-color);
    border-radius: 0 4px 0 4px;
    font-size: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    height: 24px;
    font-weight: 700;
}

/* 제목 */
.auction-item-brand {
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 700;
    color: #212529;
}

.auction-item-title {
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: #495057;
}

/* 경매 정보 */
.auction-info {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f3f5;
    border-radius: 4px;
    margin-bottom: 8px;
}

.auction-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    height: 36px;
}

.auction-info-row.best-bidding-price {
    border-top: 1px solid #f1f3f5;
    background-color: #f8f9fa;
}

.auction-info-label {
    font-size: 12px;
    color: #6c757d;
}

.auction-info-value {
    font-size: 12px;
    color: #212529;
}

.auction-info-value.bold {
    font-weight: 700;
}

.auction-info-value.imminent {
    color: #dc3545;
    font-weight: 700;
}

.auction-info-value.disabled {
    color: #6c757d;
    background-color: #f1f3f5;
    padding: 8px;
    text-align: center;
    width: 100%;
}

/* 진행률 바 */
.auction-progress {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
}

.auction-progress::-webkit-progress-bar {
    background-color: #f1f3f5;
}

.auction-progress::-webkit-progress-value {
    background-color: #212529;
}

.auction-progress.imminent::-webkit-progress-value {
    background-color: #dc3545;
}

.auction-progress::-moz-progress-bar {
    background-color: #212529;
}

.auction-progress.imminent::-moz-progress-bar {
    background-color: #dc3545;
}

/* 배지 */
.auction-badges {
    display: flex;
    flex-direction: row;
    gap: 3px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.auction-badge {
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.badge-red {
    background-color: #fff5f5;
    color: #dc3545;
}

.badge-blue {
    background-color: #e7f5ff;
    color: #1971c2;
}

.badge-gray {
    background-color: #f1f3f5;
    color: #495057;
}

/* 버튼 */
.auction-btn {
    width: 100%;
    height: 44px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s;
}

.auction-btn.primary {
    background-color: var(--brand-color);
    color: #fff;
}

.auction-btn.primary:hover {
    background-color: var(--brand-color-dark);
}

.auction-btn.dark {
    background-color: #212529;
    color: #fff;
}

.auction-btn.dark:hover {
    background-color: #495057;
}

/* 페이지네이션 */
.auction-pagination-wrap {
    margin-top: 24px;
    min-height: 50px;
}

.auction-pagination-wrap:empty {
    display: none;
}

.auction-pagination-wrap .pagination {
    margin: 0;
}

.auction-pagination-wrap .page-link {
    color: var(--brand-color);
    border-color: #dee2e6;
}

.auction-pagination-wrap .page-link:hover {
    color: var(--brand-color-dark);
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.auction-pagination-wrap .page-item.active .page-link {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
    color: #fff;
}

.auction-pagination-wrap .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

/* 반응형 */
@media (max-width: 767.98px) {
    .auction-list-container {
        padding: 16px;
    }

    .auction-filter-wrap {
        gap: 8px;
        margin-bottom: 16px;
    }

    .auction-tab-btn {
        width: auto;
        flex: 1;
        min-width: 0;
        font-size: 14px;
        padding: 0 12px;
    }

    .auction-guide-link {
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    .auction-product-list {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }

    .auction-product-item {
        padding: 12px;
    }

    .auction-item-brand {
        font-size: 14px;
    }

    .auction-item-title {
        font-size: 13px;
    }

    .auction-btn {
        height: 40px;
        font-size: 13px;
    }
}

@media (max-width: 575.98px) {
    .auction-product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
