/* Bike Auction Test Page Styles */

.bike-auction-page {
    min-height: 100vh;
    background: #f5f7fa;
    padding-bottom: 2rem;
}

/* Breadcrumbs */
.bike-auction-page .breadcrumbs.block {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .bike-auction-page .breadcrumbs.block {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Filter Section */
.filter-section {
    background: #ffffff;
    padding: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.filter-form {
    max-width: 100%;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.range-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.range-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
}

.range-separator {
    color: #999;
    font-weight: 600;
}

.filter-action {
    grid-column: span 1;
}

.search-button {
    height: 100%;
    min-height: 38px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Results Header */
.results-header {
    background: linear-gradient(135deg, #fe4847 0%, #b21e1e 100%);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.results-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.results-title .count {
    font-weight: 700;
    font-size: 1.75rem;
}

/* Listing Section */
.listing-section {
    margin-bottom: 2rem;
}

.bike-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0;
}

/* Bike Card */
.bike-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bike-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.bike-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image Section */
.bike-image-section {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bike-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.bike-images {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.bike-image {
    flex: 1;
    width: 50%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    background: #f8f8f8;
}

.bike-image-primary {
    border-right: 2px solid #fff;
}

.bike-card:hover .bike-image {
    transform: scale(1.02);
}

.bike-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bike-card:hover .bike-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.bike-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    pointer-events: auto;
}

.status-green {
    background: #10b981;
}

.status-blue {
    background: #fe4847;
}

.status-yellow {
    background: #f59e0b;
}

.status-red {
    background: #ef4444;
}

/* Content Section */
.bike-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bike-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.bike-lot-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bike-auction-name {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bike-lot-number {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.bike-date {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.bike-title {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.bike-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bike-title a:hover {
    color: #d13035;
}

/* Specs Grid */
.bike-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.spec-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.spec-value {
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 600;
}

.serial-value {
    font-size: 0.75rem;
    color: #6b7280;
}

.rating-green {
    color: #10b981;
    font-weight: 700;
}

.rating-blue {
    color: #fe4847;
    font-weight: 700;
}

.rating-yellow {
    color: #f59e0b;
    font-weight: 700;
}

.rating-red {
    color: #ef4444;
    font-weight: 700;
}

/* Price Section */
.bike-price-section {
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fe4847 0%, #b21e1e 100%);
    border-radius: 8px;
    color: white;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.price-value {
    font-size: 1.125rem;
    font-weight: 700;
}

.end-price {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.3);
}

/* Actions */
.bike-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.bike-bid-section {
    margin-bottom: 0.75rem;
}

.bike-bid-section .ui.form {
    margin: 0;
}

.bike-bid-section .field {
    margin-bottom: 0.5rem;
}

.bike-bid-section .ui.button {
    width: 100%;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bike-watchlist {
    text-align: center;
}

.watchlist-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    cursor: pointer;
}

.watchlist-link:hover {
    color: #fbbf24;
}

.watchlist-link .icon.yellow {
    color: #fbbf24;
}

/* Pagination */
.pagination-section {
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 100px;
}

.page-selector {
    min-width: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filter-action {
        grid-column: span 1;
    }

    .bike-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bike-image-section {
        height: 180px;
    }

    .bike-specs {
        grid-template-columns: 1fr;
    }

    .results-title {
        font-size: 1.25rem;
    }

    .results-title .count {
        font-size: 1.5rem;
    }

    .pagination-wrapper {
        flex-direction: column;
    }

    .pagination-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .filter-section {
        padding: 1.5rem 0;
    }

    .bike-content {
        padding: 1rem;
    }

    .bike-image-section {
        height: 160px;
    }

    .bike-title {
        font-size: 1rem;
    }
}

/* Loading State */
.bike-card.loading {
    pointer-events: none;
    opacity: 0.6;
}

.bike-card.loading .bike-image-section {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

