/* ============================================
   AUCTIONS LIST PAGE STYLES
   ============================================ */

:root {
    --primary-color: #009FE3;
    --primary-dark: #0d47a1;
    --accent-color: #00d4ff;
    --success-color: #00e676;
    --warning-color: #ff9800;
    --danger-color: #d32f2f;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.auctions-header {
    padding: 20px 0;
}

.auctions-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.auctions-subtitle {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   NO AUCTIONS MESSAGE
   ============================================ */
.no-auctions-container {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.no-auctions-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-auctions-container h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

/* ============================================
   AUCTION ITEM - DESKTOP (Quotes-style layout)
   ============================================ */
.auction-col {
    background: white;
    margin-bottom: 40px;
}

.auction-col a {
    text-decoration: none;
    color: #333;
}

/* Image styling - same as quotes */
.auctionItem {
    height: 250px;
    margin-top: -15px;
    margin-bottom: -15px;
    border-radius: 25px;
    object-fit: cover;
}

/* Odd item layout - reverse columns on desktop */
.oddItem {
    flex-direction: row-reverse;
}

/* Vehicle content area (quotes style) */
.auction-vehicle-content {
    display: flex;
    flex-direction: column;
}

.auction-vehicle-content h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Status Badge - inline with title */
.auction-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.auction-status.active {
    background: linear-gradient(135deg, #00e676, #00c853);
    color: white;
}

.auction-status.scheduled {
    background: linear-gradient(135deg, #ffd740, #ffc107);
    color: #333;
}

.auction-status i {
    font-size: 0.5rem;
}

/* Description area (quotes style) */
.auction-details-text {
    padding: 15px 0;
}

/* Bid row - horizontal layout */
.auction-bid-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

/* Timer positioned on right side */
.auction-timer-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 20px;
}

.timer-container-inline {
    position: relative;
    width: 150px;
    height: 150px;
}

.timer-svg-inline {
    width: 100%;
    height: 100%;
}

.timer-bg-inline {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 8;
}

.timer-progress-inline {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 4px rgba(0, 159, 227, 0.4));
}

.timer-progress-inline.urgent {
    filter: drop-shadow(0 0 6px rgba(211, 47, 47, 0.5));
}

.timer-text-inline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.time-display-inline {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-variant-numeric: tabular-nums;
}

.time-display-inline.urgent {
    color: var(--danger-color);
}

.time-label-inline {
    font-size: 0.5rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Bid Info - inline in row */
.bid-label-inline {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bid-amount-inline {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.bid-count-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
    margin-left: 10px;
}

.bid-count-inline i {
    color: var(--primary-color);
}

/* Action Row */
.auction-action-row {
    display: flex;
    align-items: center;
}

/* Participate Button */
.auction-participate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 159, 227, 0.3);
}

.auction-participate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 159, 227, 0.4);
    color: white;
    text-decoration: none;
}

/* Desktop layout visibility */
.auction-desktop {
    display: block;
}

.auction-mobile {
    display: none;
}

/* ============================================
   AUCTION ITEM - MOBILE (Image Inside Timer)
   ============================================ */
.auction-mobile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    text-align: center;
}

/* Timer with Vehicle Image Inside - Mobile */
.timer-vehicle-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin-bottom: 20px;
}

.vehicle-image-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.vehicle-image-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-image-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.timer-section-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.timer-container-mobile {
    position: relative;
    width: 100%;
    height: 100%;
}

.timer-svg-mobile {
    width: 100%;
    height: 100%;
}

.timer-bg-mobile {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 8;
}

.timer-progress-mobile {
    fill: none;
    stroke: url(#timerGradientMobile);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 6px rgba(0, 159, 227, 0.5));
}

.timer-progress-mobile.urgent {
    stroke: url(#timerUrgentGradientMobile);
    filter: drop-shadow(0 0 8px rgba(211, 47, 47, 0.6));
}

.timer-text-mobile {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
}

.time-display-mobile {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 0, 0, 0.5);
}

.time-display-mobile.urgent {
    color: #ff6b6b;
}

.time-label-mobile {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 3px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Mobile Vehicle Info */
.mobile-vehicle-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
}

.mobile-vehicle-year {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.mobile-vehicle-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

/* Mobile Bid Info */
.mobile-bid-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.mobile-bid-item {
    text-align: center;
}

.mobile-bid-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-bid-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Mobile Participate Button */
.auction-participate-btn-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 250px;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 159, 227, 0.3);
}

.auction-participate-btn-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 159, 227, 0.4);
    color: white;
    text-decoration: none;
}

/* ============================================
   PULSE ANIMATIONS
   ============================================ */
.timer-progress-inline.pulse,
.timer-progress-mobile.pulse {
    animation: circlePulse 1s ease-out;
}

@keyframes circlePulse {
    0% { filter: drop-shadow(0 0 4px rgba(0, 159, 227, 0.4)); }
    30% { filter: drop-shadow(0 0 12px rgba(0, 159, 227, 0.9)); }
    100% { filter: drop-shadow(0 0 4px rgba(0, 159, 227, 0.4)); }
}

.timer-progress-inline.urgent.pulse,
.timer-progress-mobile.urgent.pulse {
    animation: circlePulseUrgent 1s ease-out;
}

@keyframes circlePulseUrgent {
    0% { filter: drop-shadow(0 0 6px rgba(211, 47, 47, 0.5)); }
    30% { filter: drop-shadow(0 0 15px rgba(211, 47, 47, 1)); }
    100% { filter: drop-shadow(0 0 6px rgba(211, 47, 47, 0.5)); }
}

.time-display-inline.pulse {
    animation: numberPulse 1s ease-out;
}

@keyframes numberPulse {
    0% { transform: translate(0%, -7%) scale(1); }
    30% { transform: translate(0%, -7%) scale(1.05); }
    100% { transform: translate(0%, -7%) scale(1); }
}

.time-display-mobile.pulse {
    animation: numberPulseMobile 1s ease-out;
}

@keyframes numberPulseMobile {
    0% { transform: scale(1); }
    30% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Bid Flash Animation */
.bid-amount-inline.flash,
.mobile-bid-value.flash {
    animation: bidFlash 0.6s ease;
}

@keyframes bidFlash {
    0%, 100% { color: var(--primary-dark); transform: scale(1); }
    50% { color: var(--success-color); transform: scale(1.08); }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1199px) {
    /* Responsive layout for tablets */
    .oddItem {
        flex-direction: column-reverse;
    }

    .auctionItem {
        width: 100%;
        height: auto;
        margin: 0;
    }

    .auction-col .row {
        text-align: center;
    }

    .auction-col .col-xl-7 {
        flex-direction: column;
        align-items: center;
    }

    .auction-vehicle-content {
        align-items: center;
        text-align: center;
    }

    .auction-vehicle-content h2 {
        justify-content: center;
    }

    .auction-bid-row {
        justify-content: center;
    }

    .auction-action-row {
        justify-content: center;
    }

    .auction-timer-right {
        padding-left: 0;
        padding-top: 20px;
    }

    .line {
        margin: auto;
    }
}

@media (max-width: 991px) {
    /* Hide desktop, show mobile */
    .auction-desktop {
        display: none;
    }

    .auction-mobile {
        display: block;
    }

    .auction-col {
        margin-bottom: 25px;
    }

    .auctions-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .auctions-header {
        padding: 10px 0;
    }

    .auctions-title {
        font-size: 1.6rem;
    }

    .auctions-subtitle {
        font-size: 0.95rem;
    }

    .timer-vehicle-wrapper {
        width: 200px;
        height: 200px;
    }

    .vehicle-image-bg {
        width: 135px;
        height: 135px;
    }

    .time-display-mobile {
        font-size: 1.2rem;
    }

    .mobile-vehicle-info h3 {
        font-size: 1.1rem;
    }

    .mobile-bid-value {
        font-size: 1.15rem;
    }

    .auction-participate-btn-mobile {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}
