﻿/* ─── ENDING SOON ───────────────────────── */
/********************section the big countdown Listing*********************/
/* --- 1. Main Card Container --- */
.ending-soon {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between cards */
    padding: 20px;
    background: linear-gradient(12deg,rgba(44, 57, 71, 1) 0%, rgba(249, 250, 250, 1) 68%, rgba(255, 255, 255, 1) 60%, rgba(255, 254, 250, 0.04) 34%);
}

/* Container for the text section */
.auction-hero-content {
    font-family: 'Inter', 'Roboto', sans-serif;
}

    /* Main Heading */
    .auction-hero-content h1 {
        color: #333333; /* Matching the darkest part of your gradient */
        letter-spacing: -1px;
        line-height: 1.1;
    }

        /* The "Highlighted" word in the span */
        .auction-hero-content h1 span.text-accent {
            color: #D65A31; /* A lighter, sophisticated slate-blue */
            /* If this sits on the dark background, use #ffffff instead */
        }

    /* Paragraph text */
    .auction-hero-content p.lead {
        color: #ffffff;
        font-weight: 400;
        max-width: 90%;
    }

    /* The Modern Button */
    .auction-hero-content .btn-modern {
        background-color: #2c3947;
        color: #ffffff;
        border: none;
        padding: 14px 35px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-radius: 8px;
        transition: all 0.3s ease;
        box-shadow: 0 10px 20px rgba(44, 57, 71, 0.15);
    }

        .auction-hero-content .btn-modern:hover {
            background-color: #3e4f61;
            transform: translateY(-2px);
            box-shadow: 0 15px 25px rgba(44, 57, 71, 0.25);
            color: #fff;
        }


.social-proof-text {
    font-family: 'Inter', sans-serif;
    color: #EEEEEE; /* Muted slate */
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

    .social-proof-text .highlight-number {
        color: #F5B553; /* Deep slate from your gradient */
        font-weight: 800;
        border-bottom: 2px solid rgba(44, 57, 71, 0.2);
    }





.CardbgImage {
    position: relative;
    width: 100%;
    min-height: 500px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-color: #000; /* Fallback color */
    font-family: system-ui, -apple-system, sans-serif;
}

/* --- 2. Background Layers (Image & Gradients) --- */
.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.5s ease;
}

/* Optional: Slight zoom on hover for the image */
.CardbgImage:hover .card-bg {
    transform: scale(1.05);
}

/* Dark gradient at the bottom for text readability */
.card-gradient-EndAuction {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Increased coverage slightly */
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Hover Overlay (The colorful gradient) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Base dark tint */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

    /* The colorful expansion effect */
    .overlay::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        width: 100%;
        height: 100%;
        border-radius: 50%; /* Circular expansion looks smoother */
        background-image: linear-gradient(-45deg, rgba(39, 62, 71, 1) 0%, rgba(255, 254, 250, 0.08) 100%);
        transition: transform 0.5s ease;
    }

.CardbgImage:hover .overlay {
    opacity: 1;
}

    .CardbgImage:hover .overlay::after {
        transform: translate(-50%, -50%) scale(2.5);
    }

/* --- 3. Card Content (Text & Timer) --- */
.card-content-EndAuction {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 70px;
    z-index: 3; /* Above background and overlay */
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Space between elements */
}

.current-bid-title {
    color: rgba(255, 255, 255, 0.8);
    font-family: Roboto;
    font-size: 0.9rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-bid-price {
    color: #ff8000; /* Mint Green */
    font-family: Roboto;
    font-size: 5rem;
    margin: 0;
    font-weight: 700;
}

.current-bid-DisplayCurrency {
    color: #EFEEEA;
    font-family: Roboto;
    font-size: 2.5rem;
    margin-top: 25px;
    font-weight: 500;
}


.listing-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 5px 0 15px 0;
    line-height: 1.2;
}

.ending-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

/* --- 4. Timer Styling --- */
.countdown-timer {
    width: 100%;
    /* Removed fixed top positioning/margins to let Flexbox handle layout */
    margin-top: 10px;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-value {
    background-color: f1f5f2;
    color: #313e47;
    backdrop-filter: blur(5px);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.3rem;
    font-family: Roboto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timer-label {
    font-size: 0.7rem;
    margin-top: 5px;
    opacity: 0.8;
    text-transform: uppercase;
}


.CardbgImage:hover .card-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-btn:hover {
    background-color: #f0f0f0;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.3);
}

.card-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* --- 6. Responsive Adjustments --- */

/* Tablet */
@media (max-width: 768px) {
    .CardbgImage {
        min-height: 380px;
    }

    .listing-title {
        font-size: 1.2rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .CardbgImage {
        min-height: 320px;
    }

    .card-content {
        padding: 15px;
    }

    .timer-value {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    /* On mobile, sometimes we want the button visible always, 
       or simpler interactions. Currently keeping hover for consistency. */
}


.trust-item {
    padding: 15px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.trust-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #F5B553;
    margin-bottom: 5px;
    line-height: 1;
}

.trust-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #F7F7F7;
    margin-bottom: 3px;
}

.trust-subtext {
    font-size: 0.9rem;
    color: #F3F3F3;
    margin: 0;
}


/* --- 4. Timer Styling --- */
.countdown-timer {
    width: 100%;
    margin-top: 10px;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-value {
    background-color: #f1f5f2;
    color: #313e47;
    backdrop-filter: blur(5px);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.3rem;
    font-family: Roboto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timer-label {
    font-size: 0.7rem;
    margin-top: 5px;
    opacity: 0.8;
    text-transform: uppercase;
}

