/**
 * Bullion Subscription Market Watch Styles
 */

.bullion-market-watch {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 12px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    border-bottom: 2px solid #d4af37;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bullion-market-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
	padding-left: 5%;
	padding-right: 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.bullion-price-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 280px;
}

.bullion-price-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.bullion-price-item.gold {
    border-left: 3px solid #d4af37;
}

.bullion-price-item.silver {
    border-left: 3px solid #c0c0c0;
}

.bullion-metal-icon {
    font-size: 24px;
    line-height: 1;
}

.bullion-metal-name {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #cccccc;
}

.bullion-price {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-left: auto;
}

.bullion-price .loading {
    font-size: 14px;
    color: #999;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.bullion-change {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.bullion-change.positive {
    color: #00c853;
    background: rgba(0, 200, 83, 0.1);
}

.bullion-change.negative {
    color: #ff1744;
    background: rgba(255, 23, 68, 0.1);
}

.bullion-change::before {
    content: '';
    margin-right: 2px;
}

.bullion-change.positive::before {
    content: '▲ ';
}

.bullion-change.negative::before {
    content: '▼ ';
}

.bullion-last-update {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

#bullion-timestamp {
    color: #d4af37;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 968px) {
    .bullion-market-container {
        justify-content: center;
    }
    
    .bullion-price-item {
        min-width: 240px;
    }
}

@media (max-width: 640px) {
    .bullion-market-watch {
        padding: 10px 0;
    }
    
    .bullion-market-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .bullion-price-item {
        width: 100%;
        min-width: auto;
    }
    
    .bullion-last-update {
        width: 100%;
        text-align: center;
    }
}

/* Animation for price updates */
@keyframes priceUpdate {
    0%, 100% { background: rgba(255, 255, 255, 0.05); }
    50% { background: rgba(212, 175, 55, 0.2); }
}

.bullion-price-item.updating {
    animation: priceUpdate 0.6s ease-in-out;
}