/* Bike Details Test Page Styles */

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

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

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

/* A little breathing room above breadcrumbs on mobile so they don't tuck
   under the fixed header. */
@media (max-width: 767px) {
    .bike-details-page .breadcrumbs.block {
        margin-top: 14px;
    }
}

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

.bike-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-button:hover:not(.disabled) {
    background: #fe4847;
    color: white;
    border-color: #fe4847;
}

.nav-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-button.back {
    margin: 0 auto;
}

/* Details Grid */
.bike-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Images Column */
.bike-images-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bike-main-image {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.bike-main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #f8f8f8;
}

.bike-main-image .bike-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    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);
}

.bike-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
}

.thumbnail-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.thumbnail-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.thumbnail-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.bike-auction-sheet {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.auction-sheet-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Info Column */
.bike-info-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

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

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

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

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

.bike-details-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

.bike-grade {
    display: block;
    font-size: 1.25rem;
    font-weight: 400;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Price Card */
.bike-price-card {
    background: linear-gradient(135deg, #fe4847 0%, #b21e1e 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

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

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

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

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

.avg-price {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.875rem;
}

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

/* Specs Card */
.bike-specs-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.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: 1rem;
    color: #1f2937;
    font-weight: 600;
}

.serial-value {
    font-size: 0.875rem;
    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;
}

/* Bidding Card */
.bike-bidding-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.bike-bidding-card .ui.form .field {
    margin-bottom: 1rem;
}

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

/* Watchlist */
.bike-watchlist-section {
    text-align: center;
    padding: 1rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.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;
}

/* Info Cards */
.bike-info-card,
.bike-video-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.info-content {
    color: #4b5563;
    line-height: 1.6;
}

.info-content h4 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
}

.info-content p {
    margin: 0 0 1rem 0;
}

.info-content p:last-child {
    margin-bottom: 0;
}

.bike-rate-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.bike-rate-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.bike-rate-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.bike-rate-images a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
    transition: transform 0.2s ease;
}

.bike-rate-images a:hover {
    transform: scale(1.05);
}

.bike-rate-images .rate-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.video-content {
    margin-top: 1rem;
}

/* Status Badge Colors */
.status-green {
    background: #10b981;
}

.status-blue {
    background: #fe4847;
}

.status-yellow {
    background: #f59e0b;
}

.status-red {
    background: #ef4444;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .bike-details-grid {
        grid-template-columns: 1fr;
    }

    .bike-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

@media (max-width: 768px) {
    .bike-nav {
        flex-wrap: wrap;
    }

    .nav-button {
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }

    .bike-details-title {
        font-size: 1.5rem;
    }

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

    .bike-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    .thumbnail-item img {
        height: 70px;
    }
}

