﻿/* =====================================================================
   BID STREAM — Text-First Ticker Cards
   ===================================================================== */

.bid-stream-section {
    position: relative;
    max-width: 100%;
    padding: 5rem 0rem;
    background: linear-gradient(339deg,rgba(44, 57, 71, 1) 0%, rgba(249, 250, 250, 1) 100%, rgba(255, 255, 255, 1) 78%, rgba(255, 254, 250, 0.04) 28%);
}

/* ---------- Header ---------- */

.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width:95%;
}

.header-brand {
    max-width: 95%;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.live-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #2c3e50;
    margin-left:10%;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #FFB22C;
    border-radius: 50%;
    position: relative;
}

    .live-dot::after {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        border: 2px solid #FFB22C;
        animation: live-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    }

@keyframes live-ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.stream-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #2c3e50;
    margin: 0 0 0.5rem 2.9rem;
    line-height: 1.1;
}

.stream-tagline {
    font-size: 1.1rem;
    color: #353b48;
    margin: 0 0 0.5rem 2.9rem;
    font-weight: 300;
}

.stream-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #353b48;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

    .stream-link:hover {
        color: #34495e;
        border-color: #222831;
        background-color: #393E46;
    }

    .stream-link i {
        transition: transform 0.2s ease;
    }

    .stream-link:hover i {
        transform: translate(2px, -2px);
    }

/* ---------- Stream Grid — 3x2 Layout ---------- */

.stream-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0 5rem 0.5rem 2.9rem;
}

@media (max-width: 1199.98px) {
    .stream-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .stream-grid {
        grid-template-columns: 1fr;
    }

    .stream-title {
        font-size: 2rem;
    }
}

/* ---------- Stream Card ---------- */

.stream-card {
    position: relative;
    background: #2c3e50;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

    .stream-card:hover {
        background: #1a252f;
        border-color: rgba(255, 255, 255, 0.12);
        transform: translateY(-3px);
        box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
    }

/* Rank number */
.card-rank {
    font-size: 2rem;
    font-weight: 900;
    color: #f39c12;
    line-height: 1;
    font-style: italic;
    user-select: none;
    flex-shrink: 0;
    min-width: 2.5rem;
}

.stream-card:hover .card-rank {
    color: #ffaf33;
}

/* Core content */
.card-core {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.item-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2C3947;
    background: #FFA239;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
}

.item-teaser {
    font-size: 0.85rem;
    color: #E8EDF2;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bid bar */
.bid-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #FAF6E9;
    margin-top: auto;
}

.bidder-block {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
}

    .avatar::after {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 50%;
        border: 2px solid transparent;
        background: linear-gradient(135deg, #667eea, #764ba2) border-box;
        -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0.5;
    }

.bidder-id {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bidder-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #C9B59C;
}

.bidder-handle {
    font-size: 0.85rem;
    font-weight: 600;
    color: #EFE9E3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Price */
.price-block {
    text-align: right;
    flex-shrink: 0;
}

.price-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fbbf24;
    line-height: 1;
}

.price-unit {
    font-size: 0.75rem;
    color: #D9CFC7;
    font-weight: 500;
}

/* ---------- Action Edge ---------- */

.card-edge {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.edge-btn {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

    .edge-btn.bid {
        background: rgba(251, 191, 36, 0.1);
        color: #fbbf24;
        border: 1px solid rgba(251, 191, 36, 0.2);
    }

        .edge-btn.bid:hover {
            background: #fbbf24;
            color: #0f172a;
            transform: scale(1.1);
        }

    .edge-btn.login {
        background: rgba(255, 255, 255, 0.05);
        color: #94a3b8;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

        .edge-btn.login:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
        }

.edge-glow {
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    background: #fbbf24;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.3s ease;
    z-index: 1;
}

.stream-card:hover .edge-glow {
    opacity: 0.15;
}

/* ---------- Scanline Effect ---------- */

.scanline {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.03), transparent );
    transition: left 0.6s ease;
    pointer-events: none;
}

.stream-card:hover .scanline {
    left: 150%;
}

/* ---------- Empty State ---------- */

.empty {
    padding: 6rem 0;
}

.empty-orb {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.orb-core {
    position: absolute;
    inset: 25%;
    background: #334155;
    border-radius: 50%;
    animation: orb-breathe 3s ease-in-out infinite;
}

.orb-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: orb-spin 8s linear infinite;
}

    .orb-ring::before,
    .orb-ring::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .orb-ring::before {
        inset: 20%;
        animation: orb-spin 6s linear infinite reverse;
    }

    .orb-ring::after {
        inset: 40%;
        animation: orb-spin 4s linear infinite;
    }

@keyframes orb-breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes orb-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.empty-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.empty-caption {
    color: #475569;
    font-size: 1rem;
}
