/* ============================================
   BINANCE LIVE PRICE ANIMATIONS
   ============================================ */

/* Price flash animations */
.live-price,
.market-price,
[class*="market-price-"],
[class*="market-percent-change-"] {
    transition: all 0.3s ease;
}

.price-flash-up {
    animation: flashGreenPrice 0.5s ease;
}

.price-flash-down {
    animation: flashRedPrice 0.5s ease;
}

@keyframes flashGreenPrice {
    0% { 
        color: inherit; 
        transform: scale(1);
    }
    50% { 
        color: #10b981; 
        transform: scale(1.08);
        font-weight: 700;
    }
    100% { 
        color: inherit; 
        transform: scale(1);
    }
}

@keyframes flashRedPrice {
    0% { 
        color: inherit; 
        transform: scale(1);
    }
    50% { 
        color: #ef4444; 
        transform: scale(1.08);
        font-weight: 700;
    }
    100% { 
        color: inherit; 
        transform: scale(1);
    }
}

/* Color change with smooth transition */
.color-change {
    transition: color 0.3s ease, transform 0.2s ease;
}

/* Live indicator badge */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.live-indicator.connected .live-dot {
    background: #10b981;
    animation: blink 2s ease-in-out infinite;
}

.live-indicator.connecting .live-dot {
    background: #f59e0b;
    animation: pulse 1s ease-in-out infinite;
}

.live-indicator.disconnected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.live-indicator.disconnected .live-dot {
    background: #ef4444;
    animation: none;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* Price movement indicators */
.price-up {
    color: #10b981 !important;
}

.price-down {
    color: #ef4444 !important;
}

.price-up::before {
    content: '▲ ';
    font-size: 0.8em;
}

.price-down::before {
    content: '▼ ';
    font-size: 0.8em;
}

/* Enhanced percentage display */
.live-percent {
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.text--success.live-percent {
    background: rgba(16, 185, 129, 0.1);
}

.text--danger.live-percent {
    background: rgba(239, 68, 68, 0.1);
}

/* Binance data badge (optional - can be added to UI) */
.binance-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    background: #f0b90b;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.binance-badge::before {
    content: '⚡';
    font-size: 11px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .live-indicator {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .live-dot {
        width: 5px;
        height: 5px;
    }
}
