/* Shared styles for live price tables (gold, gold bullion, silver bullion). */

.price-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    height: 24px;
    min-height: 24px;
    max-height: 24px;
    line-height: 24px;
}

.price-number {
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: inline-block;
    position: relative;
    line-height: 1.2;
}

.price-flash-green { animation: flashGreen 0.6s ease-out; color: #02a845 !important; font-weight: bold; }
.price-flash-red { animation: flashRed 0.6s ease-out; color: #FF3547 !important; font-weight: bold; }

@keyframes flashGreen {
    0% { color: #02a845; }
    70% { color: #259940; }
    100% { color: inherit; }
}

@keyframes flashRed {
    0% { color: #FF3547; }
    70% { color: #dc3545; }
    100% { color: inherit; }
}

.number-change-up { animation: numberSlideUp 0.5s ease-out; }
.number-change-down { animation: numberSlideDown 0.5s ease-out; }

@keyframes numberSlideUp {
    0% { transform: translateY(10px); opacity: 0.6; }
    50% { transform: translateY(-2px); }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes numberSlideDown {
    0% { transform: translateY(-10px); opacity: 0.6; }
    50% { transform: translateY(2px); }
    100% { transform: translateY(0); opacity: 1; }
}

.trend-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    width: 14px;
    min-width: 14px;
    flex-shrink: 0;
    height: 24px;
    line-height: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    order: 1;
}

.trend-arrow.show { opacity: 1; }
.trend-up { color: #28a745; }
.trend-down { color: #dc3545; }
.trend-neutral { color: #6c757d; }

.live-price-table td {
    position: relative;
    padding: 8px;
    height: 50px;
    vertical-align: middle;
}

.currency-symbol {
    display: inline-flex;
    align-items: center;
    margin-inline-start: 2px;
    font-size: 18px;
    color: inherit;
    font-weight: 500;
}

/* Stats cards (Open / High / Low / Range) */
.live-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.live-stats-card {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.live-stats-card .label {
    font-size: 10px;
    color: #757575;
    font-weight: 600;
    margin-bottom: 4px;
}

.live-stats-card .value {
    font-size: 13px;
    font-weight: bold;
    color: #424242;
}

/* Last-updated bar */
.live-last-updated {
    margin-bottom: 10px;
    padding: 6px;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
}

.status-pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } }
