/* Precious Metals Ticker Styles */
.pmt-ticker-container {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
}

.pmt-ticker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pmt-ticker-item {
    background: rgba(55, 65, 81, 0.5);
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.pmt-ticker-item:hover {
    background: rgba(75, 85, 99, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pmt-ticker-item.updating {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    background: rgba(75, 85, 99, 0.7);
}

.pmt-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pmt-icon-wrapper {
    flex-shrink: 0;
}

.pmt-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.pmt-ticker-item:hover .pmt-icon {
    transform: scale(1.1);
}

.pmt-icon.gold {
    color: #fbbf24;
}

.pmt-icon.silver {
    color: #e5e7eb;
}

.pmt-icon.platinum {
    color: #9ca3af;
}

.pmt-icon.diamond {
    color: #3b82f6;
}

.pmt-content {
    flex: 1;
    min-width: 0;
}

.pmt-main-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.pmt-metal-name {
    color: #d1d5db;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.pmt-price {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.pmt-change-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pmt-change {
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.pmt-change.positive {
    color: #10b981;
}

.pmt-change.negative {
    color: #ef4444;
}

.pmt-change-amount {
    font-size: 12px;
    opacity: 0.8;
}

.pmt-change-amount.positive {
    color: #10b981;
}

.pmt-change-amount.negative {
    color: #ef4444;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pmt-ticker-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .pmt-ticker-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .pmt-ticker-container {
        padding: 16px;
    }
    
    .pmt-ticker-item {
        padding: 12px;
    }
    
    .pmt-price {
        font-size: 16px;
    }
}

/* Animation for price updates */
@keyframes priceUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pmt-price.updating {
    animation: priceUpdate 0.5s ease-in-out;
}

/* Loading state */
.pmt-ticker-item.loading {
    opacity: 0.7;
}

.pmt-ticker-item.loading .pmt-price,
.pmt-ticker-item.loading .pmt-change {
    opacity: 0.5;
}