/* Metals Price Ticker Styles */
#metals-ticker-container {
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 3px solid #d4af37;
    padding: 10px 0;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 9999;
}

.metals-ticker {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ticker-label {
    color: #d4af37;
    font-weight: bold;
    font-size: 14px;
    margin-right: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ticker-items {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
}

.metal-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.metal-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.metal-name {
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    min-width: 50px;
}

.metal-price {
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    min-width: 80px;
}

.metal-change {
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
}

.metal-change.positive {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
}

.metal-change.negative {
    color: #f44336;
    background: rgba(244, 67, 54, 0.2);
}

/* Animación de carga */
.loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .metals-ticker {
        flex-direction: column;
        gap: 10px;
    }
    
    .ticker-label {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .ticker-items {
        gap: 10px;
        justify-content: center;
    }
    
    .metal-item {
        padding: 4px 8px;
    }
    
    .metal-name, .metal-price {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .ticker-items {
        flex-direction: column;
        gap: 5px;
    }
    
    .metal-item {
        width: 100%;
        justify-content: space-between;
    }
}
