﻿/* NOTE: Fix for diagnostic: replace any accidental occurrences of
   "lay: fl" (e.g. a broken "disp\nlay: fl\nex;") with the correct
   property "display: flex;". This file is unchanged otherwise. */

/* =============================================================
   LIVE AUCTION CARDS
   Covers: card grid layout, card images, countdown timer,
           price display, card badges, trust bar, card button.
   Used in: .auction-section
   ============================================================= */

/*───Auction sections ─────────────────────*/
.auction-section {
    padding: 5px 50px;
    background-color: #f8f9fa;
}

    /* ─── live section header ─────────────────────── */
    .auction-section .auction-header {
        font-weight: 700;
        color: #2c3e50;
        margin: 0 10px 0 5px;
    }
/* ─── CARD IMAGES ─────────────────────── */
.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ─── CARD BODY PRICES ─────────────────── */
.card-body .description-limit {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 3;
    text-overflow: ellipsis;
}

.card-body .start-price,
.card-body .last-price {
    display: flex;
    align-items: center;
}

.card-body .start-price {
    color: #28a745;
    font-weight: bold;
}

.card-body .last-price {
    color: #dc3545;
    font-weight: bold;
}

.card-body i {
    margin-right: 8px;
    font-size: 1.5rem;
}

.card-body .price-amount {
    font-size: 1.2rem;
    font-weight: bold;
}

.card-body .start-price:hover,
.card-body .last-price:hover {
    opacity: 0.8;
    cursor: pointer;
}

/* ─── BADGES ─────────────────────────── */
.card .badge {
    font-size: 1rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
}

.card .badge-success {
    background-color: #c0392b;
    color: #ecf0f1;
}

.card .badge-warning {
    background-color: #ffc107;
}

/* ─── COUNTDOWN TIMER ─────────────────── */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
}

.time-segment {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 5px 10px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-width: 45px;
}

    .time-segment .number {
        display: block;
        font-size: 1.1rem;
        font-weight: 600;
        color: #343a40;
        line-height: 1.1;
    }

    .time-segment .label {
        font-size: 0.5rem;
        text-transform: uppercase;
        color: #6c757d;
        margin-top: 3px;
    }

.separator {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6c757d;
    padding-bottom: 15px;
}

.countdown-container.ending-soon .time-segment .number {
    color: #dc3545;
}

/* ─── START PRICE ANIMATION ─────────────── */
.start-price i {
    animation: bounce 1s ease-in-out infinite alternate;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* ─── TRUST BAR (stats row) ─────────────── */
.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: #2c3e50;
    margin-bottom: 5px;
    line-height: 1;
}

.trust-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 3px;
}

.trust-subtext {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0;
}

/* ─── CARD ACTION BUTTON ─────────────────── */
.btn-action {
    padding: 8px 16px;
    background: #f39c12;
    border: none;
    color: #ffffff;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .btn-action:hover {
        background: #e67e22;
    }
/********************** psychologically optimized version designed to trigger urgency, */
.neuro-ribbon {
    position: relative;
    padding: 0.5rem 0 0.5rem 1rem;
    /* The hook: asymmetric border that "grows" with bid intensity */
    border-left: 4px solid #10b981;
    background: linear-gradient(90deg, rgba(16,185,129,0.04) 0%, transparent 100%);
    border-radius: 0 8px 8px 0;
}

    /* Animated "heartbeat" line at top — subconscious urgency */
    .neuro-ribbon::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, #10b981, transparent);
        opacity: 0;
        animation: heartbeat 4s ease-in-out infinite;
    }

@keyframes heartbeat {
    0%, 90%, 100% {
        opacity: 0;
        width: 0%;
        left: 50%;
    }

    45% {
        opacity: 0.6;
        width: 100%;
        left: 0%;
    }
}

/* The Hero Number — oversized, tight tracking, "expensive" feel */
.bid-hero {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #064e3b; /* Deepest green — authority, money */
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    position: relative;
    display: inline-block;
}

    /* Subtle "glow" behind the number — draws the eye without asking */
    .bid-hero::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 0;
        right: 0;
        height: 8px;
        background: rgba(16,185,129,0.15);
        z-index: -1;
        border-radius: 2px;
    }

    .bid-hero .currency {
        font-size: 0.7rem;
        font-weight: 700;
        color: #10b981;
        margin-left: 0.2rem;
        vertical-align: super;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

/* The "Live" cluster — social proof in 2 lines */
.live-cluster {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.live-pip {
    width: 7px;
    height: 7px;
    background: #ef4444; /* Red = alert, action */
    border-radius: 50%;
    position: relative;
}

    /* Double-ring pulse — more organic than single */
    .live-pip::before {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: 50%;
        border: 1.5px solid #ef4444;
        animation: pipRing 2s ease-out infinite;
    }

@keyframes pipRing {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.live-text {
    font-size: 0.65rem;
    font-weight: 800;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.bid-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-left: auto; /* Push to right — creates tension */
}

/* The Anchor — start price as "defeated" information */
.anchor-whisper {
    margin-top: 0.4rem;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.anchor-line {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    position: relative;
    text-decoration: none;
}

    /* Hand-drawn strikethrough — feels organic, not robotic */
    .anchor-line::after {
        content: '';
        position: absolute;
        left: -2px;
        right: -2px;
        top: 55%;
        height: 1.5px;
        background: #ef4444;
        transform: rotate(-1.5deg);
        opacity: 0.7;
    }

.anchor-tag {
    font-size: 0.6rem;
    font-weight: 700;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Micro "savings" signal — the hidden hook */
.savings-ghost {
    position: absolute;
    right: 0.5rem;
    top: 25%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 800;
    color: #10b981;
    background: rgba(16,185,129,0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.neuro-ribbon:hover .savings-ghost {
    opacity: 1;
}



