﻿/* =============================================================
   LISTING STATUS BADGES
   Covers: base badge, live, ending-soon, winner, upcoming
           variants, and their card glow/tint effects.
   ============================================================= */

/* ─── BASE ─────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    margin: 0 0 0.5rem;
}

.badge-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.badge-text {
    position: relative;
    z-index: 1;
}

.badge-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: relative;
}

    .badge-pulse::before,
    .badge-pulse::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        animation: pulse-ring 2s ease-out infinite;
    }

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* ─── LIVE ──────────────────────────────── */
.badge--live {
    color: #FFF6F6;
    background: rgba(255, 44, 44, 0.9);
    border: 1px solid rgba(255, 44, 44, 0.4);
    box-shadow: 0 0 20px rgba(255, 44, 44, 0.2);
}

    .badge--live .badge-pulse {
        background: #FFF6F6;
    }

        .badge--live .badge-pulse::before {
            background: #FFF6F6;
            animation-delay: 0s;
        }

        .badge--live .badge-pulse::after {
            background: #FFF6F6;
            animation-delay: 1s;
        }

.card--live {
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
    animation: live-glow 3s ease-in-out infinite;
}

@keyframes live-glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
    }

    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.2);
    }
}

/* ─── ENDING SOON ───────────────────────── */
.badge--ending {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

    .badge--ending .badge-icon {
        animation: clock-tick 1.5s ease-in-out infinite;
    }

    .badge--ending .badge-pulse {
        background: #dc2626;
        animation: urgent-pulse 1s ease-in-out infinite;
    }

@keyframes clock-tick {
    0%, 100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    75% {
        transform: rotate(15deg);
    }
}

@keyframes urgent-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

.countdown--urgent {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.2);
}

    .countdown--urgent .number {
        color: #dc2626;
        font-weight: 800;
        animation: number-pulse 1s ease-in-out infinite;
    }

@keyframes number-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* ─── WINNER ─────────────────────────────── */
.badge--winner {
    color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

    .badge--winner .badge-icon {
        animation: crown-shine 2s ease-in-out infinite;
    }

@keyframes crown-shine {
    0%, 100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }
}

.card--winner {
    border: 2px solid rgba(245, 158, 11, 0.4);
    background: linear-gradient(180deg, #fff 0%, rgba(245, 158, 11, 0.03) 100%);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.15);
    position: relative;
    overflow: hidden;
}

    .card--winner::before {
        content: '👑';
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
        opacity: 0.3;
        animation: float-crown 3s ease-in-out infinite;
    }

@keyframes float-crown {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.winner-banner {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #fff;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

    .winner-banner::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        animation: winner-shine 3s infinite;
    }

@keyframes winner-shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.high-bidder {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    animation: high-bidder-glow 2s ease-in-out infinite;
}

@keyframes high-bidder-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    }
}

/* ─── UPCOMING ───────────────────────────── */
.badge--upcoming {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.35);
}

    .badge--upcoming .badge-icon {
        animation: calendar-bounce 2s ease-in-out infinite;
    }

@keyframes calendar-bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.card--upcoming {
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.02);
    opacity: 0.9;
}

    .card--upcoming .card-img-top {
        filter: grayscale(20%) brightness(0.95);
        transition: all 0.3s ease;
    }

    .card--upcoming:hover .card-img-top {
        filter: grayscale(0%) brightness(1);
    }

.start-time {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #3b82f6;
    font-weight: 600;
}

.start-time-icon {
    animation: spin-slow 8s linear infinite;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ─── ENDED ──────────────────────────────── */
.badge--ended {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
    .status-badge {
        padding: 5px 12px;
        font-size: 0.7rem;
    }

    .badge-icon {
        font-size: 0.85rem;
    }

    .winner-banner {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .status-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
}
